chsvlib
chsv helper source code

◆ equal_matrix()

bool Chusov::Math::equal_matrix ( const ValueType *  left_column_matrix,
const ValueType *  right_column_matrix,
std::size_t  columns,
std::size_t  rows 
)

Tests two matrices, represented by two-dimensional arrays, for equality using elementwise equality comparison.

Template Parameters
ValueTypeA type of a matrix element.
Parameters
[in]left_column_matrixA pointer to a two-dimensional array which represents the left matrix to compare.
[in]right_column_matrixA pointer to a two-dimensional array which represents the right matrix to compare.
columnsA number of columns in the matrices to compare.
rowsA number of rows in the matrices to compare.
Returns
true, if the matrices are elementwise equal, and false otherwise.
Exceptions
Anyexceptions resulting from comparison of ValueType scalars which constitute the matrices.