public class Array2DRowRealMatrix extends AbstractRealMatrix
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
v as the data for the unique column of the
created matrix. |
Array2DRowRealMatrix(double[][] d)
Create a new
RealMatrix using 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)
Returns the result of adding a matrix M to this matrix.
|
void |
addToEntry(int row,
int column,
double increment)
Adds (in place) a given value to the specified entry of this matrix.
|
RealMatrix |
copy()
Returns a deep copy of this matrix.
|
void |
copySubMatrix(int[] selectedRows,
int[] selectedColumns,
double[][] destination)
Copies a submatrix into a given 2D array.
|
void |
copySubMatrix(int startRow,
int endRow,
int startColumn,
int endColumn,
double[][] destination)
Copies a submatrix into a given 2D array.
|
RealMatrix |
createMatrix(int rowDimension,
int columnDimension)
Creates a new matrix of the same type as this matrix.
|
int |
getColumnDimension()
Returns the dimension of the domain of this operator.
|
double[][] |
getData()
Returns a 2D array containing the entries of the matrix.
|
double[][] |
getData(boolean forceCopy)
Returns a 2D array containing the entries of the matrix.
|
double[][] |
getDataRef()
Gets a direct reference to the underlying data array storing the entries of the matrix.
|
double |
getEntry(int row,
int column)
Gets the entry at the specified row and column.
|
int |
getRowDimension()
Returns the dimension of the codomain of this operator.
|
RealMatrix |
getSubMatrix(int[] selectedRows,
int[] selectedColumns)
Gets a submatrix.
|
RealMatrix |
getSubMatrix(int startRow,
int endRow,
int startColumn,
int endColumn)
Gets a submatrix.
|
Array2DRowRealMatrix |
multiply(Array2DRowRealMatrix m)
Returns the result of postmultiplying this matrix by a matrix M.
|
Array2DRowRealMatrix |
multiply(Array2DRowRealMatrix m,
boolean toTranspose)
Returns the result of postmultiplying this matrix by a matrix M or by its transpose
MT.
|
Array2DRowRealMatrix |
multiply(Array2DRowRealMatrix m,
boolean toTranspose,
double d)
Returns the result of postmultiplying this matrix by a matrix M or by its transpose
MT, then by a scalar
d . |
RealMatrix |
multiply(RealMatrix m,
boolean toTranspose,
double d)
Returns the result of postmultiplying this matrix by the matrix
m or its transpose
m T, then by the scalar d . |
void |
multiplyEntry(int row,
int column,
double factor)
Multiplies (in place) the specified entry of
this matrix by a given value. |
double[] |
operate(double[] v)
Returns the result of postmultiplying this matrix by the vector
v . |
double[] |
preMultiply(double[] v)
Returns the result of premultiplying this matrix by the vector
v . |
void |
setEntry(int row,
int column,
double value)
Sets the entry at the specified row and column to a new value.
|
void |
setSubMatrix(double[][] subMatrix,
int row,
int column)
Replaces part of the matrix with a given submatrix, starting at the specified row and column.
|
Array2DRowRealMatrix |
subtract(Array2DRowRealMatrix m)
Returns the result of subtracting a matrix M from this matrix.
|
RealMatrix |
transpose()
Returns the transpose of this matrix.
|
double |
walkInColumnOrder(RealMatrixChangingVisitor visitor)
Visits (and possibly change) all matrix entries in column order.
|
double |
walkInColumnOrder(RealMatrixChangingVisitor visitor,
int startRow,
int endRow,
int startColumn,
int endColumn)
Visits (and possibly change) some matrix entries in column order.
|
double |
walkInColumnOrder(RealMatrixPreservingVisitor visitor)
Visits (but don't change) all matrix entries in column order.
|
double |
walkInColumnOrder(RealMatrixPreservingVisitor visitor,
int startRow,
int endRow,
int startColumn,
int endColumn)
Visits (but don't change) some matrix entries in column order.
|
double |
walkInRowOrder(RealMatrixChangingVisitor visitor)
Visits (and possibly change) all matrix entries in row order.
|
double |
walkInRowOrder(RealMatrixChangingVisitor visitor,
int startRow,
int endRow,
int startColumn,
int endColumn)
Visits (and possibly change) some matrix entries in row order.
|
double |
walkInRowOrder(RealMatrixPreservingVisitor visitor)
Visits (but don't change) all matrix entries in row order.
|
double |
walkInRowOrder(RealMatrixPreservingVisitor visitor,
int startRow,
int endRow,
int startColumn,
int endColumn)
Visits (but don't change) some matrix entries in row order.
|
add, checkDestinationArray, checkSquare, concatenateDiagonally, concatenateDiagonally, concatenateDiagonally, concatenateHorizontally, concatenateHorizontally, concatenateVertically, concatenateVertically, copySubMatrix, copySubMatrix, equals, equals, getAbs, getColumn, getColumnMatrix, getColumnVector, getDefaultDecomposition, getDiagonal, getFrobeniusNorm, getInverse, getInverse, getMax, getMin, getNorm, getRow, getRowMatrix, getRowVector, getTrace, hashCode, isAntisymmetric, isDiagonal, isInvertible, isOrthogonal, isSquare, isSymmetric, isSymmetric, isSymmetric, multiply, multiply, multiply, operate, power, preMultiply, preMultiply, scalarAdd, scalarMultiply, setColumn, setColumnMatrix, setColumnVector, setDefaultDecomposition, setRow, setRowMatrix, setRowVector, subtract, toString, toString, transpose, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder, walkInOptimizedOrder
isTransposable, operateTranspose
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getMax, getMin
public Array2DRowRealMatrix()
public Array2DRowRealMatrix(int rowDimension, int columnDimension)
rowDimension
- Number of rows in the new matrixcolumnDimension
- Number of columns in the new matrixNotStrictlyPositiveException
- if the row or column dimension is not positivepublic Array2DRowRealMatrix(double[][] d)
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 matrixDimensionMismatchException
- if d
is not rectangularNoDataException
- if d
row or column dimension is zeroNullArgumentException
- if d
is null
Array2DRowRealMatrix(double[][], boolean)
public Array2DRowRealMatrix(double[][] d, boolean copyArray)
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 matrixcopyArray
- if true
, the input array will be copied, otherwise it will be referenced.DimensionMismatchException
- if d
is not rectangularNoDataException
- if d
row or column dimension is zeroNullArgumentException
- 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 matrixpublic RealMatrix createMatrix(int rowDimension, int columnDimension)
The returned matrix is filled with zeros. Its size is determined by the specified row and column dimensions, which must both be strictly positive. Additional constraints on the dimensions may apply depending on the implementation (for example, symmetric matrices must be square, which implies that the row and column dimensions must be equal).
createMatrix
in interface RealMatrix
createMatrix
in class AbstractRealMatrix
rowDimension
- the number of rows in the new matrixcolumnDimension
- the number of columns in the new matrixpublic RealMatrix copy()
copy
in interface RealMatrix
copy
in class AbstractRealMatrix
public Array2DRowRealMatrix add(Array2DRowRealMatrix m)
m
- the matrix M to be addedthis
+ MMatrixDimensionMismatchException
- if the matrix M is not the same size as this matrixpublic Array2DRowRealMatrix subtract(Array2DRowRealMatrix m)
m
- matrix to be subtractedthis
- MMatrixDimensionMismatchException
- if the matrix M is not the same size as this matrixpublic RealMatrix multiply(RealMatrix m, boolean toTranspose, double d)
m
or its transpose
m
T, then by the scalar d
.multiply
in interface RealMatrix
multiply
in class AbstractRealMatrix
m
- the matrix by which to multiply this matrix bytoTranspose
- whether to compute the product this
×m
×d
(
toTranspose=false
), or the product this
×m
T×d
(toTranspose=true
)d
- the scalar by which to multiply the resulting matrix bythis
×m
×d
or
this
×m
T×d
public Array2DRowRealMatrix multiply(Array2DRowRealMatrix m)
m
- the matrix M by which to multiply this matrix bythis
× MDimensionMismatchException
- if the matrices are not multiplication compatiblepublic Array2DRowRealMatrix multiply(Array2DRowRealMatrix m, boolean toTranspose)
m
- the matrix M by which to multiply this matrix bytoTranspose
- whether to compute the product this
× M (toTranspose=false
), or
the product this
× MT (toTranspose=true
)this
× M or this
×
MTDimensionMismatchException
- if the matrices are not multiplication compatiblepublic Array2DRowRealMatrix multiply(Array2DRowRealMatrix m, boolean toTranspose, double d)
d
.m
- the matrix M by which to multiply this matrix bytoTranspose
- whether to compute the product this
× M ×d
(
toTranspose=false
), or the product this
× MT ×
d
(toTranspose=true
)d
- the scalar by which to multiply the resulting matrix bythis
× M × d
or
this
× MT × d
DimensionMismatchException
- if the matrices are not multiplication compatiblepublic double[][] getData()
getData
in interface RealMatrix
getData
in class AbstractRealMatrix
public double[][] getData(boolean forceCopy)
If forceCopy
is true
, the returned array is guaranteed to be free of
references to any internal data array (thus, can be safely modified). Otherwise, the returned
array may contain references to internal data arrays (for optimization purposes). Note that
setting forceCopy
to false
does not guarantee the returned array references
an internal data array. For instance, implementations that do not store the entries of the
matrix in a 2D array have to rebuild a new array each time this method is called, regardless
of this parameter.
getData
in interface RealMatrix
getData
in class AbstractRealMatrix
forceCopy
- if true
, the entries of the matrix are systematically stored in a new array;
otherwise the returned array may reference internal data arrayspublic double[][] getDataRef()
public void setSubMatrix(double[][] subMatrix, int row, int column)
Rows and columns are indicated counting from 0 to n-1.
Usage example:
// Initial matrix matrix = [a00, a10, a20] [a10, a11, a21] [a20, a21, a22] // Submatrix subMatrix = [b00, b01] [b10, b11] // Replace part of the initial matrix matrix.setSubMatrix(subMatrix, 1, 1) =>[a00, a10, a20] [a10, b00, b01] [a20, b10, b11]
setSubMatrix
in interface RealMatrix
setSubMatrix
in class AbstractRealMatrix
subMatrix
- the array containing the submatrix replacement datarow
- the row coordinate of the top, left element to be replacedcolumn
- the column coordinate of the top, left element to be replacedpublic RealMatrix getSubMatrix(int startRow, int endRow, int startColumn, int endColumn)
Rows and columns are indicated counting from 0 to n-1.
getSubMatrix
in interface RealMatrix
getSubMatrix
in class AbstractRealMatrix
startRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column index (inclusive)public RealMatrix getSubMatrix(int[] selectedRows, int[] selectedColumns)
Rows and columns are indicated counting from 0 to n-1.
getSubMatrix
in interface RealMatrix
getSubMatrix
in class AbstractRealMatrix
selectedRows
- the selected row indicesselectedColumns
- the selected column indicespublic void copySubMatrix(int startRow, int endRow, int startColumn, int endColumn, double[][] destination)
Rows and columns are indicated counting from 0 to n-1. The submatrix data is copied in the upper-left part of the destination array. Elements which are not overwritten by the submatrix data are left unchanged (for example, if the destination array is larger than the size of the extracted submatrix).
copySubMatrix
in interface RealMatrix
copySubMatrix
in class AbstractRealMatrix
startRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column index (inclusive)destination
- the 2D array where the submatrix data should be copiedpublic void copySubMatrix(int[] selectedRows, int[] selectedColumns, double[][] destination)
Rows and columns are indicated counting from 0 to n-1. The submatrix data is copied in the upper-left part of the destination array. Elements which are not overwritten by the submatrix data are left unchanged (for example, if the destination array is larger than the size of the extracted submatrix).
copySubMatrix
in interface RealMatrix
copySubMatrix
in class AbstractRealMatrix
selectedRows
- the selected row indicesselectedColumns
- the selected column indicesdestination
- the 2D array where the submatrix data should be copiedpublic double getEntry(int row, int column)
Row and column indices start at 0.
getEntry
in interface RealMatrix
getEntry
in class AbstractRealMatrix
row
- the row index of entry to be fetchedcolumn
- the column index of entry to be fetchedpublic void setEntry(int row, int column, double value)
Row and column indices start at 0.
setEntry
in interface RealMatrix
setEntry
in class AbstractRealMatrix
row
- the row index of entry to be setcolumn
- the column index of entry to be setvalue
- the new value of the entrypublic void addToEntry(int row, int column, double increment)
Row and column indices start at 0.
addToEntry
in interface RealMatrix
addToEntry
in class AbstractRealMatrix
row
- the row index of the entry to be modifiedcolumn
- the column index of the entry to be modifiedincrement
- the value to add to the matrix entrypublic void multiplyEntry(int row, int column, double factor)
this
matrix by a given value.
Row and column indices start at 0.
multiplyEntry
in interface RealMatrix
multiplyEntry
in class AbstractRealMatrix
row
- the row index of the entry to be modifiedcolumn
- the column index of the entry to be modifiedfactor
- the multiplication factor for the matrix entrypublic int getRowDimension()
getRowDimension
in interface AnyMatrix
getRowDimension
in class AbstractRealMatrix
public int getColumnDimension()
getColumnDimension
in interface AnyMatrix
getColumnDimension
in class AbstractRealMatrix
public double[] operate(double[] v)
v
.operate
in interface RealMatrix
operate
in class AbstractRealMatrix
v
- the vector by which to multiply this matrix bythis
×v
public double[] preMultiply(double[] v)
v
.preMultiply
in interface RealMatrix
preMultiply
in class AbstractRealMatrix
v
- the row vector by which to premultiply this matrix byv
×this
public double walkInRowOrder(RealMatrixChangingVisitor visitor)
Row order starts at upper left element, iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder
in interface RealMatrix
walkInRowOrder
in class AbstractRealMatrix
visitor
- the 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 element, iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder
in interface RealMatrix
walkInRowOrder
in class AbstractRealMatrix
visitor
- the 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)
Row order starts at upper left element, iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder
in interface RealMatrix
walkInRowOrder
in class AbstractRealMatrix
visitor
- the visitor used to process all matrix entriesstartRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column indexRealMatrixChangingVisitor.end()
at the end of the walkRealMatrix.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)
Row order starts at upper left element, iterating through all elements of a row from left to right before going to the leftmost element of the next row.
walkInRowOrder
in interface RealMatrix
walkInRowOrder
in class AbstractRealMatrix
visitor
- the visitor used to process all matrix entriesstartRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column indexRealMatrixPreservingVisitor.end()
at the end of the
walkRealMatrix.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 element, iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder
in interface RealMatrix
walkInColumnOrder
in class AbstractRealMatrix
visitor
- the 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 element, iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder
in interface RealMatrix
walkInColumnOrder
in class AbstractRealMatrix
visitor
- the 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)
Column order starts at upper left element, iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder
in interface RealMatrix
walkInColumnOrder
in class AbstractRealMatrix
visitor
- the visitor used to process all matrix entriesstartRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column indexRealMatrixChangingVisitor.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(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)
Column order starts at upper left element, iterating through all elements of a column from top to bottom before going to the topmost element of the next column.
walkInColumnOrder
in interface RealMatrix
walkInColumnOrder
in class AbstractRealMatrix
visitor
- the visitor used to process all matrix entriesstartRow
- the initial row indexendRow
- the final row index (inclusive)startColumn
- the initial column indexendColumn
- the final column indexRealMatrixPreservingVisitor.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(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 final RealMatrix transpose()
transpose
in interface RealMatrix
transpose
in class AbstractRealMatrix
Copyright © 2023 CNES. All rights reserved.