Vocabulary

math.matrices

Inputs

Outputs

Word description

Tests if the object is a regular (well-formed, rectangular, etc) matrix. A regular matrix is a sequence with an equal number of elements in every row, and an equal number of elements in every column, such that there are no empty slots.

Notes

The null-matrix is considered regular, because of semantic requirements of the matrix implementation.

Examples

The example is an irregular matrix, because the rows have an unequal number of elements.

The example is a regular matrix, because the rows have an equal number of elements.

Definition

math.matrices

Inputs

object | an object |

Outputs

? | a boolean |

Word description

Tests if the object is a regular (well-formed, rectangular, etc) matrix. A regular matrix is a sequence with an equal number of elements in every row, and an equal number of elements in every column, such that there are no empty slots.

Notes

The null-matrix is considered regular, because of semantic requirements of the matrix implementation.

Examples

The example is an irregular matrix, because the rows have an unequal number of elements.

USING: math.matrices prettyprint ;
{ { 1 } { } } regular-matrix? .

f

f

The example is a regular matrix, because the rows have an equal number of elements.

USING: math.matrices prettyprint ;
{ { 1 } { 2 } } regular-matrix? .

t

t

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)