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

DoubleMatrix org::jblas::la::DoubleMatrix::put ( Range  rs,
Range  cs,
DoubleMatrix  x 
) [inline]

Put a matrix into specified indices.

Definition at line 773 of file DoubleMatrix.java.

References checkColumns(), checkRows(), columns, get(), org::jblas::la::ranges::Range::hasMore(), org::jblas::la::ranges::Range::index(), org::jblas::la::ranges::Range::init(), org::jblas::la::ranges::Range::length(), org::jblas::la::ranges::Range::next(), put(), rows, and org::jblas::la::ranges::Range::value().

        rs.init(0, rows - 1);
        cs.init(0, columns - 1);


        for (; rs.hasMore(); rs.next()) {
            for (; cs.hasMore(); cs.next()) {
                put(rs.value(), cs.value(), x.get(rs.index(), cs.index()));

        return this;

Generated by  Doxygen 1.6.0   Back to index