chsvlib
chsv helper source code

◆ is_upper_triangular_matrix()

bool Chusov::Math::is_upper_triangular_matrix ( const ValueType *  column_matrix,
std::size_t  columns,
std::size_t  rows 
)
noexcept

Checks whether a matrix given by an array of columns is an upper-triangular matrix.

Template Parameters
ValueTypeA type of a matrix element.
Parameters
[in]column_matrixA pointer to an array of columns * rows elements, specifying a set of column vectors composing the matrix.
columnsA number of columns in the matrix column_matrix.
rowsA number of rows in the matrix.
Returns
true if the matrix is upper-triangular. Otherwise, false.