2.2.3.9.1 matrixbase::AllNANUM

Contents

Description

Indicates whether or not an entire row or column of this matrix is comprised of all NANUM(missing value) elements.

Syntax

int AllNANUM( vector<BOOL> & vAllNANUM, int nDim = 1 )

Parameters

vAllNANUM
[output] The result vector
nDim
[input] The AllNANUM test can occur row wise (relative to the first dimension when nDim=1) or column wise (relative to the second dimension when nDim=2)

Return

Returns 0 on success and a non-zero error code on failure.

Examples

EX1

void test_ALLNANUM()
{
    vector<BOOL> vRowHasALLNANUM;
	matrix<double> mat1 = {
        {1, 1, 0,  1,  1,  0, NANUM},
        {1, 1, 0,  1, NANUM, NANUM, NANUM},
        {1, 0, 0, NANUM, NANUM, NANUM, NANUM}
    };
    int rc=mat1.AllNANUM(vRowHasALLNANUM);

Remark

See Also

matrixbase::AnyNonZero, matrixbase::AllNonZero, matrixbase::AnyNANUM

Header to Include

origin.h