public class UpperTriangular extends AbstractMatrix
Matrix methods
over packed upper triangular matrix.AbstractMatrix.TransposeViewVectorCOL, columnLabelBindings, columns, ROW, rowLabelBindings, rows| Constructor and Description |
|---|
UpperTriangular(double[] data,
boolean shallow) |
UpperTriangular(int n)
represents n x n upper triangular matrix
|
UpperTriangular(UpperTriangular mx) |
UpperTriangular(Vector data) |
| Modifier and Type | Method and Description |
|---|---|
Matrix |
assignColumn(int column,
Vector other)
Assign the other vector values to the column of the receiver
|
Matrix |
assignNonZeroElementsInRow(int row,
double[] other) |
Matrix |
assignRow(int row,
Vector other)
Assign the other vector values to the row of the receiver
|
double[] |
getData() |
MatrixFlavor |
getFlavor()
Get matrix structural flavor (operations performance hints).
|
int[] |
getNumNondefaultElements()
Return the number of values in the recipient
|
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
|
Matrix |
viewPart(int[] offset,
int[] size)
Return a view into part of a matrix.
|
aggregate, aggregateColumns, aggregateRows, asFormatString, assign, assign, assign, assign, assign, clone, columnSize, determinant, divide, get, get, getColumnLabelBindings, 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, viewColumn, viewDiagonal, viewPart, viewRow, zSumpublic UpperTriangular(int n)
n - public UpperTriangular(double[] data,
boolean shallow)
public UpperTriangular(Vector data)
public UpperTriangular(UpperTriangular mx)
public Matrix assignColumn(int column, Vector other)
Matrixcolumn - the int row to assignother - a Vectorpublic Matrix assignRow(int row, Vector other)
Matrixrow - the int row to assignother - a Vectorpublic Matrix assignNonZeroElementsInRow(int row, double[] other)
public double getQuick(int row,
int column)
Matrixrow - an int row indexcolumn - an int column indexpublic Matrix like()
Matrixpublic Matrix like(int rows, int columns)
Matrixrows - the int number of rowscolumns - the int number of columnspublic void setQuick(int row,
int column,
double value)
Matrixrow - an int row index into the receivercolumn - an int column index into the receivervalue - a double value to setpublic int[] getNumNondefaultElements()
MatrixgetNumNondefaultElements in interface MatrixgetNumNondefaultElements in class AbstractMatrixpublic Matrix viewPart(int[] offset, int[] size)
MatrixviewPart in interface MatrixviewPart in class AbstractMatrixoffset - an int[2] offset into the receiversize - the int[2] size of the desired resultpublic double[] getData()
public MatrixFlavor getFlavor()
MatrixUnsupportedOperationException.getFlavor in interface MatrixgetFlavor in class AbstractMatrixCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.