In file DVector.cpp:

DIVAMatrixExport void CDVector::Eq(const double B, CDVector& C ) const

Equal - compares a vector and a double.

Documentation

Compares of a vector and a double and returns the result as a binary vector i.e.:

C(i) = 1 if A(i) == B C(i) = 0 else

Corresponding MatLab function EQ()

Returns:
Nothing.
Parameters:
B - Input double.
C - Output result vector.
Author:
Lars Pedersen
Version:
7-12-2000


Back DIVA Reference Manual The DIVA-Site