Package | Description |
---|---|
cern.colt.matrix.tint |
Matrix interfaces and factories holding elements of int data type.
|
cern.colt.matrix.tint.algo |
Algorithms operating on integer matrices.
|
cern.colt.matrix.tint.impl |
Efficient and flexible dense and sparse 1, 2 and 3-dimensional matrices holding elements of int data type.
|
Modifier and Type | Method and Description |
---|---|
IntMatrix3D |
IntFactory3D.ascending(int slices,
int rows,
int columns)
Constructs a matrix with cells having ascending values.
|
IntMatrix3D |
IntMatrix3D.assign(int value)
Sets all cells to the state specified by value.
|
IntMatrix3D |
IntMatrix3D.assign(int[] values)
Sets all cells to the state specified by values.
|
IntMatrix3D |
IntMatrix3D.assign(int[][][] values)
Sets all cells to the state specified by values.
|
IntMatrix3D |
IntMatrix3D.assign(IntFunction function)
Assigns the result of a function to each cell;
x[slice,row,col] = function(x[slice,row,col]).
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList)
Assigns the result of a function to all cells with a given indexes
|
IntMatrix3D |
IntMatrix3D.assign(IntProcedure cond,
int value)
Assigns a value to all cells that satisfy a condition.
|
IntMatrix3D |
IntMatrix3D.assign(IntProcedure cond,
IntFunction f)
Assigns the result of a function to all cells that satisfy a condition.
|
IntMatrix3D |
IntMatrix3D.copy()
Constructs and returns a deep copy of the receiver.
|
IntMatrix3D |
IntFactory3D.descending(int slices,
int rows,
int columns)
Constructs a matrix with cells having descending values.
|
IntMatrix3D |
IntMatrix3D.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 IntMatrix3D |
IntMatrix3D.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.
|
IntMatrix3D |
IntFactory3D.make(int[][][] values)
Constructs a matrix with the given cell values.
|
IntMatrix3D |
IntFactory3D.make(int slices,
int rows,
int columns)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
IntMatrix3D |
IntFactory3D.make(int slices,
int rows,
int columns,
int initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
IntMatrix3D |
IntFactory3D.random(int slices,
int rows,
int columns)
Constructs a matrix with uniformly distributed values in (0,1)
(exclusive).
|
abstract IntMatrix3D |
IntMatrix1D.reshape(int slices,
int rows,
int columns)
Returns new IntMatrix3D of size slices x rows x columns, whose elements
are taken column-wise from this matrix.
|
IntMatrix3D |
IntMatrix3D.viewColumnFlip()
Constructs and returns a new flip view aint the column axis.
|
IntMatrix3D |
IntMatrix3D.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.
|
IntMatrix3D |
IntMatrix3D.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.
|
IntMatrix3D |
IntMatrix3D.viewRowFlip()
Constructs and returns a new flip view aint the row axis.
|
IntMatrix3D |
IntMatrix3D.viewSelection(int[] sliceIndexes,
int[] rowIndexes,
int[] columnIndexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
IntMatrix3D |
IntMatrix3D.viewSelection(IntMatrix2DProcedure condition)
Constructs and returns a new selection view that is a matrix
holding all slices matching the given condition.
|
IntMatrix3D |
IntMatrix3D.viewSliceFlip()
Constructs and returns a new flip view aint the slice axis.
|
IntMatrix3D |
IntMatrix3D.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.
|
IntMatrix3D |
IntMatrix3D.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 |
---|---|
int |
IntMatrix3D.aggregate(IntMatrix3D other,
IntIntFunction aggr,
IntIntFunction f)
Applies a function to each corresponding cell of two matrices and
aggregates the results.
|
boolean |
IntMatrix3DProcedure.apply(IntMatrix3D element)
Applies a procedure to an argument.
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function)
Assigns the result of a function to each cell;
x[row,col] = function(x[row,col],y[row,col]).
|
IntMatrix3D |
IntMatrix3D.assign(IntMatrix3D y,
IntIntFunction 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 |
---|---|
IntMatrix3D |
IntSorting.sort(IntMatrix3D 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.
|
IntMatrix3D |
IntSorting.sort(IntMatrix3D matrix,
IntMatrix2DComparator c)
Sorts the matrix slices according to the order induced by the specified
comparator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IntProperty.equals(IntMatrix3D A,
int value)
Returns whether all cells of the given matrix A are equal to the
given value.
|
boolean |
IntProperty.equals(IntMatrix3D A,
IntMatrix3D B)
Returns whether both given matrices A and B are equal.
|
IntMatrix3D |
IntSorting.sort(IntMatrix3D 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.
|
IntMatrix3D |
IntSorting.sort(IntMatrix3D matrix,
IntMatrix2DComparator c)
Sorts the matrix slices according to the order induced by the specified
comparator.
|
String |
IntFormatter.toSourceCode(IntMatrix3D matrix)
Returns a string s such that Object[] m = s is a legal
Java statement.
|
String |
IntFormatter.toString(IntMatrix3D matrix)
Returns a string representation of the given matrix.
|
Modifier and Type | Class and Description |
---|---|
class |
DenseIntMatrix3D
Dense 3-d matrix holding int elements.
|
class |
DenseLargeIntMatrix3D
Dense 3-d matrix holding int elements.
|
class |
SparseIntMatrix3D
Sparse hashed 3-d matrix holding int elements.
|
class |
WrapperIntMatrix3D
3-d matrix holding int elements; either a view wrapping another
matrix or a matrix whose views are wrappers.
|
Modifier and Type | Method and Description |
---|---|
IntMatrix3D |
DenseIntMatrix3D.assign(int value) |
IntMatrix3D |
SparseIntMatrix3D.assign(int value) |
IntMatrix3D |
DenseIntMatrix3D.assign(int[] values) |
IntMatrix3D |
DenseIntMatrix3D.assign(int[][][] values) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntFunction function) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D source) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntProcedure cond,
int value) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntProcedure cond,
IntFunction f) |
IntMatrix3D |
DenseIntMatrix3D.like(int slices,
int rows,
int columns) |
IntMatrix3D |
DenseLargeIntMatrix3D.like(int slices,
int rows,
int columns) |
IntMatrix3D |
WrapperIntMatrix3D.like(int slices,
int rows,
int columns) |
IntMatrix3D |
SparseIntMatrix3D.like(int slices,
int rows,
int columns) |
IntMatrix3D |
DenseIntMatrix1D.reshape(int slices,
int rows,
int columns) |
IntMatrix3D |
WrapperIntMatrix1D.reshape(int slices,
int rows,
int columns) |
IntMatrix3D |
SparseIntMatrix1D.reshape(int slices,
int rows,
int columns) |
IntMatrix3D |
WrapperIntMatrix3D.viewColumnFlip() |
IntMatrix3D |
WrapperIntMatrix3D.viewDice(int axis0,
int axis1,
int axis2) |
IntMatrix3D |
WrapperIntMatrix3D.viewPart(int slice,
int row,
int column,
int depth,
int height,
int width) |
IntMatrix3D |
WrapperIntMatrix3D.viewRowFlip() |
IntMatrix3D |
WrapperIntMatrix3D.viewSelection(int[] sliceIndexes,
int[] rowIndexes,
int[] columnIndexes) |
IntMatrix3D |
WrapperIntMatrix3D.viewSliceFlip() |
IntMatrix3D |
WrapperIntMatrix3D.viewStrides(int _sliceStride,
int _rowStride,
int _columnStride) |
Modifier and Type | Method and Description |
---|---|
int |
DenseIntMatrix3D.aggregate(IntMatrix3D other,
IntIntFunction aggr,
IntIntFunction f) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D source) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function) |
IntMatrix3D |
DenseIntMatrix3D.assign(IntMatrix3D y,
IntIntFunction function,
IntArrayList sliceList,
IntArrayList rowList,
IntArrayList columnList) |
Constructor and Description |
---|
WrapperIntMatrix3D(IntMatrix3D newContent) |
Jump to the Parallel Colt Homepage