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

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

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

Definition at line 2726 of file FloatMatrix.java.

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

Referenced by ge(), and gei().

                                                                  {
    if (other.isScalar())
    return gei(other.scalar(), result);

    assertSameLength(other);
    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