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

DoubleMatrix org::jblas::la::DoubleMatrix::rankOneUpdate ( double  alpha,
DoubleMatrix  x,
DoubleMatrix  y 
) [inline]

Computes a rank-1-update A = A + alpha * x * y'.

Definition at line 1555 of file DoubleMatrix.java.

References columns, length, and rows.

Referenced by rankOneUpdate().

                                                                                    {
        if (rows != x.length) {
            throw new SizeException("Vector x has wrong length (" + x.length + " != " + rows + ").");
        }
        if (columns != y.length) {
            throw new SizeException("Vector y has wrong length (" + x.length + " != " + columns + ").");
        }

        SimpleBlas.ger(alpha, x, y, this);
        return this;
    }


Generated by  Doxygen 1.6.0   Back to index