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

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

Elementwise multiplication (in-place).

Definition at line 1392 of file FloatMatrix.java.

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

Referenced by mmuli(), mul(), muli(), org::jblas::la::Geometry::pairwiseSquaredDistances(), and org::jblas::la::MatrixFunctions::powi().

                                                                   {
        if (other.isScalar()) {
            return muli(other.scalar(), result);
        }
        if (isScalar()) {
            return other.muli(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