Package | Description |
---|---|
cern.colt.matrix.tobject |
Matrix interfaces and factories holding elements of Object data type.
|
cern.colt.matrix.tobject.algo |
Object matrix algorithms such as print formatting, sorting, partitioning and statistics.
|
cern.colt.matrix.tobject.impl |
Efficient and flexible dense and sparse 1, 2 and 3-dimensional matrices holding elements of Object data type.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix2D |
ObjectFactory2D.appendColumns(ObjectMatrix2D A,
ObjectMatrix2D B)
C = A||B; Constructs a new matrix which is the column-wise concatenation
of two other matrices.
|
ObjectMatrix2D |
ObjectFactory2D.appendRows(ObjectMatrix2D A,
ObjectMatrix2D B)
C = A||B; Constructs a new matrix which is the row-wise concatenation of
two other matrices.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(Object value)
Sets all cells to the state specified by value.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(Object[] values)
Sets all cells to the state specified by values.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(Object[][] values)
Sets all cells to the state specified by values.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col]).
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList)
Assigns the result of a function to all cells with a given indexes
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectProcedure cond,
Object value)
Assigns a value to all cells that satisfy a condition.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectProcedure cond,
ObjectFunction f)
Assigns the result of a function to all cells that satisfy a condition.
|
ObjectMatrix2D |
ObjectFactory2D.compose(ObjectMatrix2D[][] parts)
Constructs a block matrix made from the given parts.
|
ObjectMatrix2D |
ObjectFactory2D.composeDiagonal(ObjectMatrix2D A,
ObjectMatrix2D B)
Constructs a diagonal block matrix from the given parts (the direct
sum of two matrices).
|
ObjectMatrix2D |
ObjectFactory2D.composeDiagonal(ObjectMatrix2D A,
ObjectMatrix2D B,
ObjectMatrix2D C)
Constructs a diagonal block matrix from the given parts.
|
ObjectMatrix2D |
ObjectMatrix2D.copy()
Constructs and returns a deep copy of the receiver.
|
ObjectMatrix2D |
ObjectFactory2D.diagonal(ObjectMatrix1D vector)
Constructs a new diagonal matrix whose diagonal elements are the elements
of vector.
|
ObjectMatrix2D |
ObjectMatrix2D.forEachNonZero(IntIntObjectFunction function)
Assigns the result of a function to each non-zero cell;
x[row,col] = function(x[row,col]).
|
ObjectMatrix2D |
ObjectMatrix2D.like()
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the same number of rows and columns.
|
abstract ObjectMatrix2D |
ObjectMatrix2D.like(int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of rows and columns.
|
abstract ObjectMatrix2D |
ObjectMatrix3D.like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, sharing the same cells.
|
abstract ObjectMatrix2D |
ObjectMatrix1D.like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix2D |
ObjectFactory2D.make(int rows,
int columns)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
ObjectMatrix2D |
ObjectFactory2D.make(int rows,
int columns,
Object initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
ObjectMatrix2D |
ObjectFactory2D.make(Object[][] values)
Constructs a matrix with the given cell values.
|
ObjectMatrix2D |
ObjectFactory2D.make(Object[] values,
int rows)
Construct a matrix from a one-dimensional column-major packed array, ala
Fortran.
|
ObjectMatrix2D |
ObjectFactory2D.repeat(ObjectMatrix2D A,
int rowRepeat,
int columnRepeat)
C = A||A||..||A; Constructs a new matrix which is duplicated both along
the row and column dimension.
|
abstract ObjectMatrix2D |
ObjectMatrix1D.reshape(int rows,
int columns)
Returns new ObjectMatrix2D of size rows x columns whose elements are taken
column-wise from this matrix.
|
ObjectMatrix2D |
ObjectMatrix3D.viewColumn(int column)
Constructs and returns a new 2-dimensional slice view representing
the slices and rows of the given column.
|
ObjectMatrix2D |
ObjectMatrix2D.viewColumnFlip()
Constructs and returns a new flip view along the column axis.
|
ObjectMatrix2D |
ObjectMatrix2D.viewDice()
Constructs and returns a new dice (transposition) view; Swaps
axes; example: 3 x 4 matrix --> 4 x 3 matrix.
|
ObjectMatrix2D |
ObjectMatrix2D.viewPart(int row,
int column,
int height,
int width)
Constructs and returns a new sub-range view that is a
height x width sub matrix starting at [row,column].
|
ObjectMatrix2D |
ObjectMatrix3D.viewRow(int row)
Constructs and returns a new 2-dimensional slice view representing
the slices and columns of the given row.
|
ObjectMatrix2D |
ObjectMatrix2D.viewRowFlip()
Constructs and returns a new flip view along the row axis.
|
ObjectMatrix2D |
ObjectMatrix2D.viewSelection(int[] rowIndexes,
int[] columnIndexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
ObjectMatrix2D |
ObjectMatrix2D.viewSelection(ObjectMatrix1DProcedure condition)
Constructs and returns a new selection view that is a matrix
holding all rows matching the given condition.
|
ObjectMatrix2D |
ObjectMatrix3D.viewSlice(int slice)
Constructs and returns a new 2-dimensional slice view representing
the rows and columns of the given slice.
|
ObjectMatrix2D |
ObjectMatrix2D.viewSorted(int column)
Sorts the matrix rows into ascending order, according to the natural
ordering of the matrix values in the given column.
|
ObjectMatrix2D |
ObjectMatrix2D.viewStrides(int rowStride,
int columnStride)
Constructs and returns a new stride view which is a sub matrix
consisting of every i-th cell.
|
Modifier and Type | Method and Description |
---|---|
Object |
ObjectMatrix2D.aggregate(ObjectMatrix2D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f)
Applies a function to each corresponding cell of two matrices and
aggregates the results.
|
ObjectMatrix2D |
ObjectFactory2D.appendColumns(ObjectMatrix2D A,
ObjectMatrix2D B)
C = A||B; Constructs a new matrix which is the column-wise concatenation
of two other matrices.
|
ObjectMatrix2D |
ObjectFactory2D.appendRows(ObjectMatrix2D A,
ObjectMatrix2D B)
C = A||B; Constructs a new matrix which is the row-wise concatenation of
two other matrices.
|
boolean |
ObjectMatrix2DProcedure.apply(ObjectMatrix2D element)
Applies a procedure to an argument.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix2D |
ObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList)
Assigns the result of a function to all cells with a given indexes
|
ObjectMatrix2D |
ObjectFactory2D.compose(ObjectMatrix2D[][] parts)
Constructs a block matrix made from the given parts.
|
ObjectMatrix2D |
ObjectFactory2D.composeDiagonal(ObjectMatrix2D A,
ObjectMatrix2D B)
Constructs a diagonal block matrix from the given parts (the direct
sum of two matrices).
|
ObjectMatrix2D |
ObjectFactory2D.composeDiagonal(ObjectMatrix2D A,
ObjectMatrix2D B,
ObjectMatrix2D C)
Constructs a diagonal block matrix from the given parts.
|
void |
ObjectFactory2D.decompose(ObjectMatrix2D[][] parts,
ObjectMatrix2D matrix)
Splits a block matrix into its constituent blocks; Copies blocks of a
matrix into the given parts.
|
void |
ObjectFactory2D.decompose(ObjectMatrix2D[][] parts,
ObjectMatrix2D matrix)
Splits a block matrix into its constituent blocks; Copies blocks of a
matrix into the given parts.
|
ObjectMatrix1D |
ObjectFactory2D.diagonal(ObjectMatrix2D A)
Constructs a new vector consisting of the diagonal elements of A
.
|
ObjectMatrix2D |
ObjectFactory2D.repeat(ObjectMatrix2D A,
int rowRepeat,
int columnRepeat)
C = A||A||..||A; Constructs a new matrix which is duplicated both along
the row and column dimension.
|
Modifier and Type | Method and Description |
---|---|
static ObjectMatrix2D |
ObjectPartitioning.partition(ObjectMatrix2D matrix,
int column,
Object[] splitters,
int[] splitIndexes)
Same as
Partitioning.partition(int[],int,int,int[],int,int,int[])
except that it synchronously partitions the rows of the given
matrix by the values of the given matrix column; This is essentially the
same as partitioning a list of composite objects by some instance
variable; In other words, two entire rows of the matrix are swapped,
whenever two column values indicate so. |
ObjectMatrix2D |
ObjectSorting.sort(ObjectMatrix2D matrix,
int column)
Sorts the matrix rows into ascending order, according to the natural
ordering of the matrix values in the given column.
|
ObjectMatrix2D |
ObjectSorting.sort(ObjectMatrix2D matrix,
ObjectMatrix1DComparator c)
Sorts the matrix rows according to the order induced by the specified
comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
ObjectMatrix2DComparator.compare(ObjectMatrix2D o1,
ObjectMatrix2D o2)
Compares its two arguments for order.
|
static void |
ObjectPartitioning.partition(ObjectMatrix2D matrix,
int[] rowIndexes,
int rowFrom,
int rowTo,
int column,
Object[] splitters,
int splitFrom,
int splitTo,
int[] splitIndexes)
Same as
Partitioning.partition(int[],int,int,int[],int,int,int[])
except that it synchronously partitions the rows of the given
matrix by the values of the given matrix column; This is essentially the
same as partitioning a list of composite objects by some instance
variable; In other words, two entire rows of the matrix are swapped,
whenever two column values indicate so. |
static ObjectMatrix2D |
ObjectPartitioning.partition(ObjectMatrix2D matrix,
int column,
Object[] splitters,
int[] splitIndexes)
Same as
Partitioning.partition(int[],int,int,int[],int,int,int[])
except that it synchronously partitions the rows of the given
matrix by the values of the given matrix column; This is essentially the
same as partitioning a list of composite objects by some instance
variable; In other words, two entire rows of the matrix are swapped,
whenever two column values indicate so. |
ObjectMatrix2D |
ObjectSorting.sort(ObjectMatrix2D matrix,
int column)
Sorts the matrix rows into ascending order, according to the natural
ordering of the matrix values in the given column.
|
ObjectMatrix2D |
ObjectSorting.sort(ObjectMatrix2D matrix,
ObjectMatrix1DComparator c)
Sorts the matrix rows according to the order induced by the specified
comparator.
|
String |
ObjectFormatter.toSourceCode(ObjectMatrix2D matrix)
Returns a string s such that Object[] m = s is a legal
Java statement.
|
String |
ObjectFormatter.toString(ObjectMatrix2D matrix)
Returns a string representation of the given matrix.
|
String |
ObjectFormatter.toTitleString(ObjectMatrix2D matrix,
String[] rowNames,
String[] columnNames,
String rowAxisName,
String columnAxisName,
String title)
Returns a string representation of the given matrix with axis as well as
rows and columns labeled.
|
Modifier and Type | Class and Description |
---|---|
class |
DenseColumnObjectMatrix2D
Dense 2-d matrix holding Object elements.
|
class |
DenseLargeObjectMatrix2D
Dense 2-d matrix holding Object elements.
|
class |
DenseObjectMatrix2D
Dense 2-d matrix holding Object elements.
|
class |
DiagonalObjectMatrix2D
Diagonal 2-d matrix holding Object elements.
|
class |
SparseCCMObjectMatrix2D
Sparse column-compressed-modified 2-d matrix holding Object elements.
|
class |
SparseCCObjectMatrix2D
Sparse column-compressed 2-d matrix holding Object elements.
|
class |
SparseObjectMatrix2D
Sparse hashed 2-d matrix holding Object elements.
|
class |
SparseRCMObjectMatrix2D
Sparse row-compressed-modified 2-d matrix holding Object elements.
|
class |
SparseRCObjectMatrix2D
Sparse row-compressed 2-d matrix holding Object elements.
|
class |
WrapperObjectMatrix2D
2-d matrix holding Object elements; either a view wrapping another
matrix or a matrix whose views are wrappers.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix2D |
WrapperObjectMatrix2D.assign(int[] values) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.assign(Object value) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.assign(Object value) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(Object value) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(Object value) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(Object value) |
ObjectMatrix2D |
WrapperObjectMatrix2D.assign(Object[] values) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(Object[] values) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(Object[] values) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(Object[] values) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(Object[][] values)
Sets all cells to the state specified by values.
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(Object[][] values) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(Object[][] values) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.assign(ObjectFunction function) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.assign(ObjectFunction function) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col]).
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectFunction function) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(ObjectFunction function) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
WrapperObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectProcedure cond,
Object value) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectProcedure cond,
Object value) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectProcedure cond,
ObjectFunction function) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectProcedure cond,
ObjectFunction function) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.forEachNonZero(IntIntObjectFunction function) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.forEachNonZero(IntIntObjectFunction function) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.forEachNonZero(IntIntObjectFunction function) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.forEachNonZero(IntIntObjectFunction function) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
WrapperObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
SparseCCMObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
DenseObjectMatrix2D.like(int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of rows and columns.
|
ObjectMatrix2D |
DenseLargeObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
SparseObjectMatrix2D.like(int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of rows and columns.
|
ObjectMatrix2D |
SparseRCMObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.like(int rows,
int columns) |
ObjectMatrix2D |
WrapperObjectMatrix3D.like2D(int rows,
int columns) |
ObjectMatrix2D |
SparseObjectMatrix3D.like2D(int rows,
int columns) |
ObjectMatrix2D |
SparseObjectMatrix1D.like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix2D |
DenseObjectMatrix3D.like2D(int rows,
int columns) |
ObjectMatrix2D |
DenseObjectMatrix1D.like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix2D |
WrapperObjectMatrix1D.like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix2D |
SparseObjectMatrix1D.reshape(int rows,
int columns) |
ObjectMatrix2D |
DenseObjectMatrix1D.reshape(int rows,
int columns) |
ObjectMatrix2D |
WrapperObjectMatrix1D.reshape(int rows,
int columns) |
ObjectMatrix2D |
WrapperObjectMatrix3D.viewColumn(int column) |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewColumnFlip() |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewDice() |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewPart(int row,
int column,
int height,
int width) |
ObjectMatrix2D |
WrapperObjectMatrix3D.viewRow(int row) |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewRowFlip() |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewSelection(int[] rowIndexes,
int[] columnIndexes) |
ObjectMatrix2D |
WrapperObjectMatrix3D.viewSlice(int slice) |
ObjectMatrix2D |
WrapperObjectMatrix2D.viewStrides(int _rowStride,
int _columnStride) |
Modifier and Type | Method and Description |
---|---|
Object |
DenseObjectMatrix2D.aggregate(ObjectMatrix2D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f) |
Object |
DenseColumnObjectMatrix2D.aggregate(ObjectMatrix2D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f) |
ObjectMatrix2D |
SparseCCObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
SparseRCObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(ObjectMatrix2D source) |
ObjectMatrix2D |
WrapperObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DiagonalObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function) |
ObjectMatrix2D |
DenseObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList) |
ObjectMatrix2D |
DenseColumnObjectMatrix2D.assign(ObjectMatrix2D y,
ObjectObjectFunction function,
IntArrayList rowList,
IntArrayList columnList) |
Constructor and Description |
---|
WrapperObjectMatrix2D(ObjectMatrix2D newContent) |
Jump to the Parallel Colt Homepage