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

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

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

Definition at line 2644 of file DoubleMatrix.java.

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

Referenced by gt(), and gti().

    if (other.isScalar())
    return gti(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