Mat

BMat – matrix data type

Calling sequence

A=[a11, a12, ..., a1n;  
   a21, a22, ..., a2n;  
   ...  
   am1, am2, ...; amn]

Parameters

Description
The Bmat data type is a matrix made of boolean numbers. A boolean number is either T (true) or F (false). T is the nsp variable \%t (same as 1==1) and F is the nsp variable \%t (same as 1~=1). In conditional expressions T is equivalent to any nonzero number and F is equivalent to zero.

Operations on boolean matrices

Methods from the matint interface

Extraction, insertion, deletion

Compatibility with numerical matrices
Boolean matrices are converted into numerical matices with T converted to 1 and F converted to 0.
Example of boolean function

See also

Authors jpc, bp