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

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

Elementwise division (in-place).

Definition at line 1467 of file DoubleMatrix.java.

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

Referenced by columnMeans(), div(), divi(), org::jblas::la::Geometry::normalize(), rdivi(), and rowMeans().

                                                                      {
        if (other.isScalar()) {
            return divi(other.scalar(), result);
        }
        if (isScalar()) {
            return other.rdivi(scalar(), result);
        }

        assertSameLength(other);
        ensureResultLength(other, result);

        for (int i = 0; i < length; i++) {
            result.put(i, get(i) / other.get(i));
        }
        return result;
    }


Generated by  Doxygen 1.6.0   Back to index