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

static FloatMatrix org::jblas::la::FloatMatrix::concatHorizontally ( FloatMatrix  A,
FloatMatrix  B 
) [inline, static]

Concatenates two matrices horizontally. Matrices must have identical numbers of rows.

Definition at line 483 of file FloatMatrix.java.

References columns, data, FloatMatrix(), length, and rows.

                                                                               {
        if (A.rows != B.rows) {
            throw new SizeException("Matrices don't have same number of rows.");
        }

        FloatMatrix result = new FloatMatrix(A.rows, A.columns + B.columns);
        SimpleBlas.copy(A, result);
        JavaBlas.rcopy(B.length, B.data, 0, 1, result.data, A.length, 1);
        return result;
    }


Generated by  Doxygen 1.6.0   Back to index