public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializable
RealMatrix using a double[][] array to
 store entries.| Constructor and Description | 
|---|
| Array2DRowRealMatrix()Creates a matrix with no data | 
| Array2DRowRealMatrix(double[] v)Create a new (column) RealMatrix using  vas the
 data for the unique column of the created matrix. | 
| Array2DRowRealMatrix(double[][] d)Create a new  RealMatrixusing the input array as the underlying
 data array. | 
| Array2DRowRealMatrix(double[][] d,
                    boolean copyArray)Create a new RealMatrix using the input array as the underlying
 data array. | 
| Array2DRowRealMatrix(int rowDimension,
                    int columnDimension)Create a new RealMatrix with the supplied row and column dimensions. | 
| Modifier and Type | Method and Description | 
|---|---|
| Array2DRowRealMatrix | add(Array2DRowRealMatrix m)Compute the sum of  thisandm. | 
| void | addToEntry(int row,
          int column,
          double increment)Adds (in place) the specified value to the specified entry of
  thismatrix. | 
| RealMatrix | copy()Returns a (deep) copy of this. | 
| RealMatrix | createMatrix(int rowDimension,
            int columnDimension)Create a new RealMatrix of the same type as the instance with the
 supplied
 row and column dimensions. | 
| int | getColumnDimension()Returns the number of columns of this matrix. | 
| double[][] | getData()Returns matrix entries as a two-dimensional array. | 
| double[][] | getDataRef()Get a reference to the underlying data array. | 
| double | getEntry(int row,
        int column)Get the entry in the specified row and column. | 
| double[] | getRow(int row)Get the entries at the given row index. | 
| int | getRowDimension()Returns the number of rows of this matrix. | 
| RealMatrix | getSubMatrix(int startRow,
            int endRow,
            int startColumn,
            int endColumn)Gets a submatrix. | 
| RealMatrix | kroneckerProduct(RealMatrix b)Kronecker product of the current matrix and the parameter matrix. | 
| Array2DRowRealMatrix | multiply(Array2DRowRealMatrix m)Returns the result of postmultiplying  thisbym. | 
| void | multiplyEntry(int row,
             int column,
             double factor)Multiplies (in place) the specified entry of  thismatrix by the
 specified value. | 
| RealMatrix | multiplyTransposed(Array2DRowRealMatrix m)Returns the result of postmultiplying  thisbym^T. | 
| RealMatrix | multiplyTransposed(RealMatrix m)Returns the result of postmultiplying  thisbym^T. | 
| double[] | operate(double[] v)Returns the result of multiplying this by the vector  v. | 
| double[] | preMultiply(double[] v)Returns the (row) vector result of premultiplying this by the vector  v. | 
| void | setEntry(int row,
        int column,
        double value)Set the entry in the specified row and column. | 
| void | setRow(int row,
      double[] array)Sets the specified  rowofthismatrix to the entries
 of the specifiedarray. | 
| void | setSubMatrix(double[][] subMatrix,
            int row,
            int column)Replace the submatrix starting at  row, columnusing data in the
 inputsubMatrixarray. | 
| RealMatrix | stack()Transforms a matrix in a vector (Vectorization). | 
| Array2DRowRealMatrix | subtract(Array2DRowRealMatrix m)Returns  thisminusm. | 
| RealMatrix | transposeMultiply(Array2DRowRealMatrix m)Returns the result of postmultiplying  this^Tbym. | 
| RealMatrix | transposeMultiply(RealMatrix m)Returns the result of postmultiplying  this^Tbym. | 
| RealMatrix | unstackSquare()Transforms a one-column stacked matrix into a squared matrix (devectorization). | 
| double | walkInColumnOrder(RealMatrixChangingVisitor visitor)Visit (and possibly change) all matrix entries in column order. | 
| double | walkInColumnOrder(RealMatrixChangingVisitor visitor,
                 int startRow,
                 int endRow,
                 int startColumn,
                 int endColumn)Visit (and possibly change) some matrix entries in column order. | 
| double | walkInColumnOrder(RealMatrixPreservingVisitor visitor)Visit (but don't change) all matrix entries in column order. | 
| double | walkInColumnOrder(RealMatrixPreservingVisitor visitor,
                 int startRow,
                 int endRow,
                 int startColumn,
                 int endColumn)Visit (but don't change) some matrix entries in column order. | 
| double | walkInRowOrder(RealMatrixChangingVisitor visitor)Visit (and possibly change) all matrix entries in row order. | 
| double | walkInRowOrder(RealMatrixChangingVisitor visitor,
              int startRow,
              int endRow,
              int startColumn,
              int endColumn)Visit (and possibly change) some matrix entries in row order. | 
| double | walkInRowOrder(RealMatrixPreservingVisitor visitor)Visit (but don't change) all matrix entries in row order. | 
| double | walkInRowOrder(RealMatrixPreservingVisitor visitor,
              int startRow,
              int endRow,
              int startColumn,
              int endColumn)Visit (but don't change) some matrix entries in row order. | 
add, copySubMatrix, copySubMatrix, equals, getColumn, getColumnMatrix, getColumnVector, getFrobeniusNorm, getRowMatrix, getRowVector, getSubMatrix, getTrace, hashCode, isSquare, multiply, operate, power, preMultiply, preMultiply, scalarAdd, scalarMultiply, setColumn, setColumnMatrix, setColumnVector, setRowMatrix, setRowVector, subtract, toString, transpose, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrderclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNorm, getNorm1, getNormInfty, map, mapToSelfisTransposable, operateTransposepublic Array2DRowRealMatrix()
public Array2DRowRealMatrix(int rowDimension,
                            int columnDimension)
                     throws MathIllegalArgumentException
rowDimension - Number of rows in the new matrix.columnDimension - Number of columns in the new matrix.MathIllegalArgumentException - if the row or column dimension is
 not positive.public Array2DRowRealMatrix(double[][] d)
                     throws MathIllegalArgumentException,
                            NullArgumentException
RealMatrix using the input array as the underlying
 data array.
 The input array is copied, not referenced. This constructor has
 the same effect as calling Array2DRowRealMatrix(double[][], boolean)
 with the second argument set to true.
d - Data for the new matrix.MathIllegalArgumentException - if d is not rectangular.MathIllegalArgumentException - if d row or column dimension is zero.NullArgumentException - if d is null.Array2DRowRealMatrix(double[][], boolean)public Array2DRowRealMatrix(double[][] d,
                            boolean copyArray)
                     throws MathIllegalArgumentException,
                            NullArgumentException
copyArray may be
 set to false. This will prevent the copying and improve
 performance as no new array will be built and no data will be copied.d - Data for new matrix.copyArray - if true, the input array will be copied,
 otherwise it will be referenced.MathIllegalArgumentException - if d is not rectangular.MathIllegalArgumentException - if d row or column dimension is zero.NullArgumentException - if d is null.Array2DRowRealMatrix(double[][])public Array2DRowRealMatrix(double[] v)
v as the
 data for the unique column of the created matrix.
 The input array is copied.v - Column vector holding data for new matrix.public RealMatrix createMatrix(int rowDimension, int columnDimension) throws MathIllegalArgumentException
createMatrix in interface RealMatrixcreateMatrix in class AbstractRealMatrixrowDimension - the number of rows in the new matrixcolumnDimension - the number of columns in the new matrixMathIllegalArgumentException - if row or column dimension is not
 positive.public RealMatrix copy()
copy in interface RealMatrixcopy in class AbstractRealMatrixpublic Array2DRowRealMatrix add(Array2DRowRealMatrix m) throws MathIllegalArgumentException
this and m.m - Matrix to be added.this + m.MathIllegalArgumentException - if m is not the same
 size as this.public Array2DRowRealMatrix subtract(Array2DRowRealMatrix m) throws MathIllegalArgumentException
this minus m.m - Matrix to be subtracted.this - mMathIllegalArgumentException - if m is not the same
 size as this.public Array2DRowRealMatrix multiply(Array2DRowRealMatrix m) throws MathIllegalArgumentException
this by m.m - matrix to postmultiply bythis * mMathIllegalArgumentException - if
 columnDimension(this) != rowDimension(m)public RealMatrix multiplyTransposed(Array2DRowRealMatrix m) throws MathIllegalArgumentException
this by m^T.m - matrix to first transpose and second postmultiply bythis * m^TMathIllegalArgumentException - if
 columnDimension(this) != columnDimension(m)public RealMatrix multiplyTransposed(RealMatrix m)
this by m^T.
 
 This is equivalent to call multiply(m.RealMatrix.transpose()),
 but some implementations may avoid building the intermediate transposed matrix.
 
multiplyTransposed in interface RealMatrixm - matrix to first transpose and second postmultiply bythis * m^Tpublic RealMatrix transposeMultiply(Array2DRowRealMatrix m) throws MathIllegalArgumentException
this^T by m.m - matrix to postmultiply bythis^T * mMathIllegalArgumentException - if
 columnDimension(this) != columnDimension(m)public RealMatrix transposeMultiply(RealMatrix m)
this^T by m.
 
 This is equivalent to call RealMatrix.transpose().multiply(m),
 but some implementations may avoid building the intermediate transposed matrix.
 
transposeMultiply in interface RealMatrixm - matrix to postmultiply bythis^T * mpublic double[][] getData()
getData in interface RealMatrixgetData in class AbstractRealMatrixpublic double[][] getDataRef()
public void setSubMatrix(double[][] subMatrix,
                         int row,
                         int column)
                  throws MathIllegalArgumentException,
                         NullArgumentException
row, column using data in the
 input subMatrix array. Indexes are 0-based.
 
 Example:
 Starting with 
1 2 3 4 5 6 7 8 9 0 1 2and
subMatrix = {{3, 4} {5,6}}, invoking
 setSubMatrix(subMatrix,1,1)) will result in 1 2 3 4 5 3 4 8 9 5 6 2
setSubMatrix in interface RealMatrixsetSubMatrix in class AbstractRealMatrixsubMatrix - array containing the submatrix replacement datarow - row coordinate of the top, left element to be replacedcolumn - column coordinate of the top, left element to be replacedMathIllegalArgumentException - if subMatrix is empty.NullArgumentException - if subMatrix is null.public double getEntry(int row,
                       int column)
                throws MathIllegalArgumentException
getEntry in interface RealMatrixgetEntry in class AbstractRealMatrixrow - Row index of entry to be fetched.column - Column index of entry to be fetched.(row, column).MathIllegalArgumentException - if the row or column index is not valid.public void setEntry(int row,
                     int column,
                     double value)
              throws MathIllegalArgumentException
setEntry in interface RealMatrixsetEntry in class AbstractRealMatrixrow - Row index of entry to be set.column - Column index of entry to be set.value - the new value of the entry.MathIllegalArgumentException - if the row or column index is not validpublic void addToEntry(int row,
                       int column,
                       double increment)
                throws MathIllegalArgumentException
this matrix. Row and column indices start at 0.addToEntry in interface RealMatrixaddToEntry in class AbstractRealMatrixrow - Row index of the entry to be modified.column - Column index of the entry to be modified.increment - value to add to the matrix entry.MathIllegalArgumentException - if the row or column index is not valid.public void multiplyEntry(int row,
                          int column,
                          double factor)
                   throws MathIllegalArgumentException
this matrix by the
 specified value. Row and column indices start at 0.multiplyEntry in interface RealMatrixmultiplyEntry in class AbstractRealMatrixrow - Row index of the entry to be modified.column - Column index of the entry to be modified.factor - Multiplication factor for the matrix entry.MathIllegalArgumentException - if the row or column index is not valid.public int getRowDimension()
getRowDimension in interface AnyMatrixgetRowDimension in interface RealLinearOperatorgetRowDimension in class AbstractRealMatrixpublic int getColumnDimension()
getColumnDimension in interface AnyMatrixgetColumnDimension in interface RealLinearOperatorgetColumnDimension in class AbstractRealMatrixpublic double[] operate(double[] v)
                 throws MathIllegalArgumentException
v.operate in interface RealMatrixoperate in class AbstractRealMatrixv - the vector to operate onthis * vMathIllegalArgumentException - if the length of v does not
 match the column dimension of this.public double[] preMultiply(double[] v)
                     throws MathIllegalArgumentException
v.preMultiply in interface RealMatrixpreMultiply in class AbstractRealMatrixv - the row vector to premultiply byv * thisMathIllegalArgumentException - if the length of v does not
 match the row dimension of this.public RealMatrix getSubMatrix(int startRow, int endRow, int startColumn, int endColumn) throws MathIllegalArgumentException
getSubMatrix in interface RealMatrixgetSubMatrix in class AbstractRealMatrixstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column index (inclusive)MathIllegalArgumentException - if the indices are not valid.public double walkInRowOrder(RealMatrixChangingVisitor visitor)
Row order starts at upper left and iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder in interface RealMatrixwalkInRowOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesRealMatrixChangingVisitor.end() at the end
 of the walkRealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInRowOrder(RealMatrixPreservingVisitor visitor)
Row order starts at upper left and iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder in interface RealMatrixwalkInRowOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesRealMatrixPreservingVisitor.end() at the end
 of the walkRealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInRowOrder(RealMatrixChangingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn) throws MathIllegalArgumentException
Row order starts at upper left and iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder in interface RealMatrixwalkInRowOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column indexRealMatrixChangingVisitor.end() at the end
 of the walkMathIllegalArgumentException - if the indices are not valid.RealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInRowOrder(RealMatrixPreservingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn) throws MathIllegalArgumentException
Row order starts at upper left and iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder in interface RealMatrixwalkInRowOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column indexRealMatrixPreservingVisitor.end() at the end
 of the walkMathIllegalArgumentException - if the indices are not valid.RealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInColumnOrder(RealMatrixChangingVisitor visitor)
Column order starts at upper left and iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder in interface RealMatrixwalkInColumnOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesRealMatrixChangingVisitor.end() at the end
 of the walkRealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInColumnOrder(RealMatrixPreservingVisitor visitor)
Column order starts at upper left and iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder in interface RealMatrixwalkInColumnOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesRealMatrixPreservingVisitor.end() at the end
 of the walkRealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInColumnOrder(RealMatrixChangingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn) throws MathIllegalArgumentException
Column order starts at upper left and iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder in interface RealMatrixwalkInColumnOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column indexRealMatrixChangingVisitor.end() at the end
 of the walkMathIllegalArgumentException - if the indices are not valid.RealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double walkInColumnOrder(RealMatrixPreservingVisitor visitor, int startRow, int endRow, int startColumn, int endColumn) throws MathIllegalArgumentException
Column order starts at upper left and iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder in interface RealMatrixwalkInColumnOrder in class AbstractRealMatrixvisitor - visitor used to process all matrix entriesstartRow - Initial row indexendRow - Final row index (inclusive)startColumn - Initial column indexendColumn - Final column indexRealMatrixPreservingVisitor.end() at the end
 of the walkMathIllegalArgumentException - if the indices are not valid.RealMatrix.walkInRowOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInColumnOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor), 
RealMatrix.walkInOptimizedOrder(RealMatrixChangingVisitor, int, int, int, int), 
RealMatrix.walkInOptimizedOrder(RealMatrixPreservingVisitor, int, int, int, int)public double[] getRow(int row)
                throws MathIllegalArgumentException
getRow in interface RealMatrixgetRow in class AbstractRealMatrixrow - Row to be fetched.MathIllegalArgumentException - if the specified row index is not valid.public void setRow(int row,
                   double[] array)
            throws MathIllegalArgumentException
row of this matrix to the entries
 of the specified array. Row indices start at 0.setRow in interface RealMatrixsetRow in class AbstractRealMatrixrow - Row to be set.array - Row matrix to be copied (must have the same number of
 columns as the instance)MathIllegalArgumentException - if the specified row index is invalid.public RealMatrix kroneckerProduct(RealMatrix b)
b - matrix to post Kronecker-multiply bypublic RealMatrix stack()
public RealMatrix unstackSquare()
Copyright © 2016–2020 Hipparchus.org. All rights reserved.