Checks whether a matrix given by an array of columns is a diagonal matrix.
- Template Parameters
-
ValueType | A type of a matrix element. |
- Parameters
-
[in] | column_matrix | A pointer to an array of columns * rows elements, specifying a set of column vectors composing the matrix. |
| columns | A number of columns in the matrix column_matrix . |
| rows | A number of rows in the matrix. |
- Returns
true
if the matrix all elements, except for perhaps elements on the main diagonal, equal to a default-constructed element of type ValueType()
. Otherwise, false
.