Logo Search packages:      
Sourcecode: jblas version File versions  Download package

DoubleMatrix org::jblas::la::DoubleMatrix::lti ( DoubleMatrix  other,
DoubleMatrix  result 
) [inline]

Test for "less than" (in-place).

Definition at line 2603 of file DoubleMatrix.java.

References assertSameLength(), ensureResultLength(), get(), isScalar(), put(), and scalar().

Referenced by lt(), and lti().

    if (other.isScalar())
    return lti(other.scalar(), result);

    ensureResultLength(other, result);

    for (int i = 0; i < length; i++)
    result.put(i, get(i) < other.get(i) ? 1.0 : 0.0);
    return result;

Generated by  Doxygen 1.6.0   Back to index