Package | Description |
---|---|
cern.colt.matrix |
Matrix interfaces and factories; efficient and flexible dense and sparse
1, 2, 3 and d-dimensional matrices holding objects or primitive data types such
as int, double, etc; Templated, fixed sized (not dynamically
resizable); Also known as multi-dimensional arrays or Data Cubes.
|
cern.colt.matrix.impl |
Matrix implementations; You normally need not look at this package, because all concrete classes implement the abstract interfaces of
cern.colt.matrix , without subsetting or supersetting. |
cern.colt.matrix.objectalgo |
Object matrix algorithms such as print formatting, sorting, partitioning and statistics.
|
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(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.copy()
Constructs and returns a deep copy of the receiver.
|
protected ObjectMatrix3D |
ObjectMatrix3D.getContent()
Returns the content of this matrix if it is a wrapper; or this otherwise.
|
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.
|
protected ObjectMatrix3D |
ObjectMatrix3D.view()
Constructs and returns a new view equal to the receiver.
|
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.
|
protected abstract ObjectMatrix3D |
ObjectMatrix3D.viewSelectionLike(int[] sliceOffsets,
int[] rowOffsets,
int[] columnOffsets)
Construct and returns a new selection view.
|
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]).
|
protected boolean |
ObjectMatrix3D.haveSharedCells(ObjectMatrix3D other)
Returns true if both matrices share at least one identical cell.
|
protected boolean |
ObjectMatrix3D.haveSharedCellsRaw(ObjectMatrix3D other)
Returns true if both matrices share at least one identical cell.
|
Modifier and Type | Class and Description |
---|---|
class |
DenseObjectMatrix3D
Dense 3-d matrix holding Object elements.
|
class |
SparseObjectMatrix3D
Sparse hashed 3-d matrix holding Object elements.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(Object[][][] values)
Sets all cells to the state specified by values.
|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D source)
Replaces all cell values of the receiver with the values of another matrix.
|
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 |
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.
|
protected ObjectMatrix3D |
SparseObjectMatrix3D.viewSelectionLike(int[] sliceOffsets,
int[] rowOffsets,
int[] columnOffsets)
Construct and returns a new selection view.
|
protected ObjectMatrix3D |
DenseObjectMatrix3D.viewSelectionLike(int[] sliceOffsets,
int[] rowOffsets,
int[] columnOffsets)
Construct and returns a new selection view.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
DenseObjectMatrix3D.assign(ObjectMatrix3D source)
Replaces all cell values of the receiver with the values of another matrix.
|
protected boolean |
SparseObjectMatrix3D.haveSharedCellsRaw(ObjectMatrix3D other)
Returns true if both matrices share at least one identical cell.
|
protected boolean |
DenseObjectMatrix3D.haveSharedCellsRaw(ObjectMatrix3D other)
Returns true if both matrices share common cells.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix3D |
Sorting.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 |
Sorting.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 |
Sorting.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 |
Sorting.sort(ObjectMatrix3D matrix,
ObjectMatrix2DComparator c)
Sorts the matrix slices according to the order induced by the specified comparator.
|
String |
Formatter.toSourceCode(ObjectMatrix3D matrix)
Returns a string s such that Object[] m = s is a legal Java statement.
|
String |
Formatter.toString(ObjectMatrix3D matrix)
Returns a string representation of the given matrix.
|
String |
Formatter.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.
|
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.