public class SparseColumnMatrix extends AbstractMatrix
AbstractMatrix.TransposeViewVectorCOL, columnLabelBindings, columns, ROW, rowLabelBindings, rows| Constructor and Description |
|---|
SparseColumnMatrix(int rows,
int columns)
Deprecated.
Construct a matrix of the given cardinality
|
SparseColumnMatrix(int rows,
int columns,
Vector[] columnVectors)
Deprecated.
Construct a matrix of the given cardinality with the given data columns
|
SparseColumnMatrix(int rows,
int columns,
Vector[] columnVectors,
boolean shallow)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Matrix |
assignColumn(int column,
Vector other)
Deprecated.
Assign the other vector values to the column of the receiver
|
Matrix |
assignRow(int row,
Vector other)
Deprecated.
Assign the other vector values to the row of the receiver
|
Matrix |
clone()
Deprecated.
Return a copy of the recipient
|
int[] |
getNumNondefaultElements()
Deprecated.
Return the number of values in the recipient
|
double |
getQuick(int row,
int column)
Deprecated.
Return the value at the given indexes, without checking bounds
|
Matrix |
like()
Deprecated.
Return an empty matrix of the same underlying class as the receiver
|
Matrix |
like(int rows,
int columns)
Deprecated.
Returns an empty matrix of the same underlying class as the receiver and of the specified size.
|
int |
numSlices()
Deprecated.
Abstracted out for the iterator
|
void |
setQuick(int row,
int column,
double value)
Deprecated.
Set the value at the given index, without checking bounds
|
String |
toString()
Deprecated.
|
Matrix |
transpose()
Deprecated.
Return a new matrix that is the transpose of the receiver
|
Vector |
viewColumn(int column)
Deprecated.
Returns a view of a row.
|
Matrix |
viewPart(int[] offset,
int[] size)
Deprecated.
Return a view into part of a matrix.
|
aggregate, aggregateColumns, aggregateRows, asFormatString, assign, assign, assign, assign, assign, columnSize, determinant, divide, get, get, getColumnLabelBindings, getFlavor, getRowLabelBindings, iterateAll, iterateNonEmpty, iterator, minus, numCols, numRows, plus, plus, rowSize, set, set, set, set, set, set, setColumnLabelBindings, setRowLabelBindings, times, times, times, timesSquared, viewDiagonal, viewPart, viewRow, zSumpublic SparseColumnMatrix(int rows,
int columns,
Vector[] columnVectors)
columns - a RandomAccessSparseVector[] array of columnscolumnVectors - public SparseColumnMatrix(int rows,
int columns,
Vector[] columnVectors,
boolean shallow)
public SparseColumnMatrix(int rows,
int columns)
rows - # of rowscolumns - # of columnspublic Matrix clone()
Matrixclone in interface Matrixclone in class AbstractMatrixpublic int numSlices()
numSlices in interface VectorIterablenumSlices in class AbstractMatrixAbstractMatrix.numCols()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 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 Vector viewColumn(int column)
AbstractMatrixviewColumn in interface MatrixviewColumn in class AbstractMatrixcolumn - Which column to return.public Matrix transpose()
Matrixtranspose in interface Matrixtranspose in class AbstractMatrixpublic String toString()
toString in class AbstractMatrixCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.