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

FloatMatrix org::jblas::la::FloatMatrix::subiRowVector ( FloatMatrix  x  )  [inline]

Subtract a row vector from all rows of the matrix (in-place).

Definition at line 2148 of file FloatMatrix.java.

References checkLength(), columns, data, index(), and rows.

Referenced by subRowVector().

        // This is a bit crazy, but a row vector must have as length as the columns of the matrix.
        for (int r = 0; r < rows; r++) {
            JavaBlas.raxpy(columns, -1.0f, x.data, 0, 1, data, index(r, 0), rows);
        return this;

Generated by  Doxygen 1.6.0   Back to index