api / koma.util.validation / dim

dim

funValidationContext.dim(rows:Int, cols:Int):ValidationContext

Require the current matrix to have exactly the given number of rows and columns.

Parameters

rows - Fixed number of rows to require.

cols - Fixed number of columns to require.funValidationContext.dim(rows:Int, cols:Char):ValidationContext

Require the current matrix to have exactly the given number of rows and match the number of columns with other dimensions in other matrices based on the cols variable name.

Parameters

rows - Fixed number of rows to require.

cols - Variable name for the number of cols in the matrixfunValidationContext.dim(rows:Char, cols:Int):ValidationContext

Require the current matrix to have exactly the given number of columns and match the number of rows with other dimensions in other matrices based on the rows variable name.

Parameters

rows - Variable name for the number of rows in the matrix

cols - Fixed number of columns to require.funValidationContext.dim(rows:Char, cols:Char):ValidationContext

Require the current matrix's dimensions to correspond to the given variable names. Compares with other dimensions in other matrices in the context that are assigned the same variable name and raises an error if they don't all match.

Parameters

rows - Variable name for the number of rows in the matrix

cols - Variable name for the number of cols in the matrix