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

FloatMatrix org::jblas::la::FloatMatrix::lei ( FloatMatrix  other,
FloatMatrix  result 
) [inline]

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

Definition at line 2685 of file FloatMatrix.java.

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

Referenced by le(), and lei().

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

    ensureResultLength(other, result);

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

Generated by  Doxygen 1.6.0   Back to index