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 |
---|---|
ObjectMatrix3D |
ObjectMatrix3D.assign(Object value)
Sets all cells to the state specified by value.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(Object[] values)
Sets all cells to the state specified by values.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(Object[][][] values)
Sets all cells to the state specified by values.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectFunction function)
Assigns the result of a function to each cell;
x[slice,row,col] = function(x[slice,row,col]).
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList)
Assigns the result of a function to all cells with a given indexes
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectProcedure cond,
Object value)
Assigns a value to all cells that satisfy a condition.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectProcedure cond,
ObjectFunction f)
Assigns the result of a function to all cells that satisfy a condition.
|
ObjectMatrix3D |
ObjectMatrix3D.copy()
Constructs and returns a deep copy of the receiver.
|
ObjectMatrix3D |
ObjectMatrix3D.like()
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the same number of slices, rows and columns.
|
abstract ObjectMatrix3D |
ObjectMatrix3D.like(int slices,
int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of slices, rows and columns.
|
ObjectMatrix3D |
ObjectFactory3D.make(int slices,
int rows,
int columns)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
ObjectMatrix3D |
ObjectFactory3D.make(int slices,
int rows,
int columns,
Object initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
ObjectMatrix3D |
ObjectFactory3D.make(Object[][][] values)
Constructs a matrix with the given cell values.
|
abstract ObjectMatrix3D |
ObjectMatrix1D.reshape(int slices,
int rows,
int columns)
Returns new ObjectMatrix3D of size slices x rows x columns, whose elements
are taken column-wise from this matrix.
|
ObjectMatrix3D |
ObjectMatrix3D.viewColumnFlip()
Constructs and returns a new flip view along the column axis.
|
ObjectMatrix3D |
ObjectMatrix3D.viewDice(int axis0,
int axis1,
int axis2)
Constructs and returns a new dice view; Swaps dimensions (axes);
Example: 3 x 4 x 5 matrix --> 4 x 3 x 5 matrix.
|
ObjectMatrix3D |
ObjectMatrix3D.viewPart(int slice,
int row,
int column,
int depth,
int height,
int width)
Constructs and returns a new sub-range view that is a
depth x height x width sub matrix starting at
[slice,row,column]; Equivalent to
view().part(slice,row,column,depth,height,width); Provided for
convenience only.
|
ObjectMatrix3D |
ObjectMatrix3D.viewRowFlip()
Constructs and returns a new flip view along the row axis.
|
ObjectMatrix3D |
ObjectMatrix3D.viewSelection(int[] sliceIndexes,
int[] rowIndexes,
int[] columnIndexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
ObjectMatrix3D |
ObjectMatrix3D.viewSelection(ObjectMatrix2DProcedure condition)
Constructs and returns a new selection view that is a matrix
holding all slices matching the given condition.
|
ObjectMatrix3D |
ObjectMatrix3D.viewSliceFlip()
Constructs and returns a new flip view along the slice axis.
|
ObjectMatrix3D |
ObjectMatrix3D.viewSorted(int row,
int column)
Sorts the matrix slices into ascending order, according to the natural
ordering of the matrix values in the given [row,column]
position.
|
ObjectMatrix3D |
ObjectMatrix3D.viewStrides(int sliceStride,
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 |
ObjectMatrix3D.aggregate(ObjectMatrix3D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f)
Applies a function to each corresponding cell of two matrices and
aggregates the results.
|
boolean |
ObjectMatrix3DProcedure.apply(ObjectMatrix3D element)
Applies a procedure to an argument.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
ObjectMatrix3D |
ObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList)
Assigns the result of a function to all cells with a given indexes
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
ObjectSorting.sort(ObjectMatrix3D matrix,
int row,
int column)
Sorts the matrix slices into ascending order, according to the natural
ordering of the matrix values in the given [row,column]
position.
|
ObjectMatrix3D |
ObjectSorting.sort(ObjectMatrix3D matrix,
ObjectMatrix2DComparator c)
Sorts the matrix slices according to the order induced by the specified
comparator.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
ObjectSorting.sort(ObjectMatrix3D matrix,
int row,
int column)
Sorts the matrix slices into ascending order, according to the natural
ordering of the matrix values in the given [row,column]
position.
|
ObjectMatrix3D |
ObjectSorting.sort(ObjectMatrix3D matrix,
ObjectMatrix2DComparator c)
Sorts the matrix slices according to the order induced by the specified
comparator.
|
String |
ObjectFormatter.toSourceCode(ObjectMatrix3D matrix)
Returns a string s such that Object[] m = s is a legal
Java statement.
|
String |
ObjectFormatter.toString(ObjectMatrix3D matrix)
Returns a string representation of the given matrix.
|
String |
ObjectFormatter.toTitleString(ObjectMatrix3D matrix,
String[] sliceNames,
String[] rowNames,
String[] columnNames,
String sliceAxisName,
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 |
DenseLargeObjectMatrix3D
Dense 3-d matrix holding Object elements.
|
class |
DenseObjectMatrix3D
Dense 3-d matrix holding Object elements.
|
class |
SparseObjectMatrix3D
Sparse hashed 3-d matrix holding Object elements.
|
class |
WrapperObjectMatrix3D
3-d matrix holding Object elements; either a view wrapping another
matrix or a matrix whose views are wrappers.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(Object value) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(Object[] values) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(Object[][][] values)
Sets all cells to the state specified by values.
|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectFunction function) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectProcedure cond,
Object value) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectProcedure cond,
ObjectFunction f) |
ObjectMatrix3D |
WrapperObjectMatrix3D.like(int slices,
int rows,
int columns) |
ObjectMatrix3D |
SparseObjectMatrix3D.like(int slices,
int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of slices, rows and columns.
|
ObjectMatrix3D |
DenseLargeObjectMatrix3D.like(int slices,
int rows,
int columns) |
ObjectMatrix3D |
DenseObjectMatrix3D.like(int slices,
int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of slices, rows and columns.
|
ObjectMatrix3D |
SparseObjectMatrix1D.reshape(int slices,
int rows,
int columns) |
ObjectMatrix3D |
DenseObjectMatrix1D.reshape(int slices,
int rows,
int columns) |
ObjectMatrix3D |
WrapperObjectMatrix1D.reshape(int slices,
int rows,
int columns) |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewColumnFlip() |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewDice(int axis0,
int axis1,
int axis2) |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewPart(int slice,
int row,
int column,
int depth,
int height,
int width) |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewRowFlip() |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewSelection(int[] sliceIndexes,
int[] rowIndexes,
int[] columnIndexes) |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewSliceFlip() |
ObjectMatrix3D |
WrapperObjectMatrix3D.viewStrides(int _sliceStride,
int _rowStride,
int _columnStride) |
Modifier and Type | Method and Description |
---|---|
Object |
DenseObjectMatrix3D.aggregate(ObjectMatrix3D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function) |
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D y,
ObjectObjectFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList) |
Constructor and Description |
---|
WrapperObjectMatrix3D(ObjectMatrix3D newContent) |
Jump to the Parallel Colt Homepage