The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_matrix
Class: TIntMatrix
Declaration: function CountMaskedZeros (LowCol, HighCol, LowRow, HighRow: integer; Bitmask: longword): integer;

The method CountMaskedZeros presumes the integer values of the matrix cells to be bit combinations instead of integer numbers. It counts all cells which evaluate as zero when performing a logical AND of the cell value and the bit mask specified by the parameter BitMask. The matrix is searched within the region specified by LowCol, HighCol, LowRow and HighRow.

Hint: Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension.

Last Update: 2016-Oct-02