api / koma.util.validation / testMatrix

testMatrix

fun testMatrix(matrix:Matrix<Double>):ValidationContext

Return a validation context that can be used to validate the given matrix with the default name of "matrix".

In general it is preferable to use the other verison of this function that lets you specify a name. All matrices that are validated with this method will appear in the error message with the name "matrix"

Parameters

matrix - A matrix to validate.

Returns A validation context that can be used to validate the given matrix.

fun testMatrix(matrix:Matrix<Double>, name:String):ValidationContext

Return a validation context that can be used to validate the given matrix with the given name.

Parameters

matrix - A matrix to validate.

name - The name of the matrix (used in displayed errors)

Returns A validation context that can be used to validate the given matrix.