public class TransposedMatrixView extends AbstractMatrix
IntIntFunction
AbstractMatrix.TransposeViewVector
COL, columnLabelBindings, columns, ROW, rowLabelBindings, rows
Constructor and Description |
---|
TransposedMatrixView(Matrix m) |
Modifier and Type | Method and Description |
---|---|
Matrix |
assign(double value)
Assign the value to all elements of the receiver
|
Matrix |
assign(DoubleFunction function)
Apply the function to each element of the receiver
|
Matrix |
assign(Matrix other)
Assign the other vector values to the receiver
|
Matrix |
assign(Matrix other,
DoubleDoubleFunction function)
Apply the function to each element of the receiver and the corresponding element of the other argument
|
Matrix |
assignColumn(int column,
Vector other)
Assign the other vector values to the column of the receiver
|
Matrix |
assignRow(int row,
Vector other)
Assign the other vector values to the row of the receiver
|
MatrixFlavor |
getFlavor()
Get matrix structural flavor (operations performance hints).
|
double |
getQuick(int row,
int column)
Return the value at the given indexes, without checking bounds
|
Matrix |
like()
Return an empty matrix of the same underlying class as the receiver
|
Matrix |
like(int rows,
int columns)
Returns an empty matrix of the same underlying class as the receiver and of the specified size.
|
void |
setQuick(int row,
int column,
double value)
Set the value at the given index, without checking bounds
|
Vector |
viewColumn(int column)
Returns a view of a row.
|
Vector |
viewRow(int row)
Returns a view of a row.
|
aggregate, aggregateColumns, aggregateRows, asFormatString, assign, clone, columnSize, determinant, divide, get, get, getColumnLabelBindings, getNumNondefaultElements, getRowLabelBindings, iterateAll, iterateNonEmpty, iterator, minus, numCols, numRows, numSlices, plus, plus, rowSize, set, set, set, set, set, set, setColumnLabelBindings, setRowLabelBindings, times, times, times, timesSquared, toString, transpose, viewDiagonal, viewPart, viewPart, zSum
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TransposedMatrixView(Matrix m)
public Matrix assignColumn(int column, Vector other)
Matrix
column
- the int row to assignother
- a Vectorpublic Matrix assignRow(int row, Vector other)
Matrix
row
- the int row to assignother
- a Vectorpublic double getQuick(int row, int column)
Matrix
row
- an int row indexcolumn
- an int column indexpublic Matrix like()
Matrix
public Matrix like(int rows, int columns)
Matrix
rows
- the int number of rowscolumns
- the int number of columnspublic void setQuick(int row, int column, double value)
Matrix
row
- an int row index into the receivercolumn
- an int column index into the receivervalue
- a double value to setpublic Vector viewRow(int row)
AbstractMatrix
viewRow
in interface Matrix
viewRow
in class AbstractMatrix
row
- Which row to return.public Vector viewColumn(int column)
AbstractMatrix
viewColumn
in interface Matrix
viewColumn
in class AbstractMatrix
column
- Which column to return.public Matrix assign(double value)
Matrix
assign
in interface Matrix
assign
in class AbstractMatrix
value
- a double valuepublic Matrix assign(Matrix other, DoubleDoubleFunction function)
Matrix
assign
in interface Matrix
assign
in class AbstractMatrix
other
- a Matrix containing the second arguments to the functionfunction
- a DoubleDoubleFunction to applypublic Matrix assign(Matrix other)
Matrix
assign
in interface Matrix
assign
in class AbstractMatrix
other
- a Matrixpublic Matrix assign(DoubleFunction function)
Matrix
assign
in interface Matrix
assign
in class AbstractMatrix
function
- a DoubleFunction to applypublic MatrixFlavor getFlavor()
Matrix
UnsupportedOperationException
.getFlavor
in interface Matrix
getFlavor
in class AbstractMatrix
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.