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 |
---|---|
ObjectMatrix1D |
ObjectFactory1D.append(ObjectMatrix1D A,
ObjectMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other
matrices.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(Object value)
Sets all cells to the state specified by value.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(Object[] values)
Sets all cells to the state specified by values.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(ObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i]).
|
ObjectMatrix1D |
ObjectMatrix1D.assign(ObjectMatrix1D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(ObjectMatrix1D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
ObjectMatrix1D |
ObjectMatrix1D.copy()
Constructs and returns a deep copy of the receiver.
|
ObjectMatrix1D |
ObjectFactory2D.diagonal(ObjectMatrix2D A)
Constructs a new vector consisting of the diagonal elements of A
.
|
ObjectMatrix1D |
ObjectMatrix1D.like()
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the same size.
|
abstract ObjectMatrix1D |
ObjectMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
abstract ObjectMatrix1D |
ObjectMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix1D |
ObjectFactory1D.make(int size)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
ObjectMatrix1D |
ObjectFactory1D.make(int size,
Object initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
ObjectMatrix1D |
ObjectFactory1D.make(Object[] values)
Constructs a matrix with the given cell values.
|
ObjectMatrix1D |
ObjectFactory1D.make(ObjectArrayList values)
Constructs a matrix from the values of the given list.
|
ObjectMatrix1D |
ObjectFactory1D.make(ObjectMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
ObjectMatrix1D |
ObjectFactory1D.repeat(ObjectMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated
repeat times.
|
abstract ObjectMatrix1D |
ObjectMatrix2D.vectorize()
Returns a vector obtained by stacking the columns of the matrix on top of
one another.
|
abstract ObjectMatrix1D |
ObjectMatrix3D.vectorize()
Returns a vector obtained by stacking the columns of the matrix on top of
one another.
|
ObjectMatrix1D |
ObjectMatrix2D.viewColumn(int column)
Constructs and returns a new slice view representing the rows of
the given column.
|
ObjectMatrix1D |
ObjectMatrix1D.viewFlip()
Constructs and returns a new flip view.
|
ObjectMatrix1D |
ObjectMatrix1D.viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a
width sub matrix starting at index.
|
ObjectMatrix1D |
ObjectMatrix2D.viewRow(int row)
Constructs and returns a new slice view representing the columns
of the given row.
|
ObjectMatrix1D |
ObjectMatrix1D.viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
ObjectMatrix1D |
ObjectMatrix1D.viewSelection(ObjectProcedure condition)
Constructs and returns a new selection view that is a matrix
holding the cells matching the given condition.
|
ObjectMatrix1D |
ObjectMatrix1D.viewSorted()
Sorts the vector into ascending order, according to the natural
ordering.
|
ObjectMatrix1D |
ObjectMatrix1D.viewStrides(int stride)
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 |
ObjectMatrix1D.aggregate(ObjectMatrix1D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f)
Applies a function to each corresponding cell of two matrices and
aggregates the results.
|
ObjectMatrix1D |
ObjectFactory1D.append(ObjectMatrix1D A,
ObjectMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other
matrices.
|
boolean |
ObjectMatrix1DProcedure.apply(ObjectMatrix1D element)
Applies a procedure to an argument.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(ObjectMatrix1D other)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix1D |
ObjectMatrix1D.assign(ObjectMatrix1D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
ObjectMatrix2D |
ObjectFactory2D.diagonal(ObjectMatrix1D vector)
Constructs a new diagonal matrix whose diagonal elements are the elements
of vector.
|
ObjectMatrix1D |
ObjectFactory1D.make(ObjectMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
ObjectMatrix1D |
ObjectFactory1D.repeat(ObjectMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated
repeat times.
|
void |
ObjectMatrix1D.swap(ObjectMatrix1D other)
Swaps each element this[i] with other[i].
|
ObjectArrayList |
ObjectFactory1D.toList(ObjectMatrix1D values)
Constructs a list from the given matrix.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix1D |
ObjectSorting.sort(ObjectMatrix1D vector)
Sorts the vector into ascending order, according to the natural
ordering.
|
ObjectMatrix1D |
ObjectSorting.sort(ObjectMatrix1D vector,
Comparator c)
Sorts the vector into ascending order, according to the order induced by
the specified comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
ObjectMatrix1DComparator.compare(ObjectMatrix1D o1,
ObjectMatrix1D o2)
Compares its two arguments for order.
|
ObjectMatrix1D |
ObjectSorting.sort(ObjectMatrix1D vector)
Sorts the vector into ascending order, according to the natural
ordering.
|
ObjectMatrix1D |
ObjectSorting.sort(ObjectMatrix1D vector,
Comparator c)
Sorts the vector into ascending order, according to the order induced by
the specified comparator.
|
String |
ObjectFormatter.toSourceCode(ObjectMatrix1D matrix)
Returns a string s such that Object[] m = s is a legal
Java statement.
|
String |
ObjectFormatter.toString(ObjectMatrix1D matrix)
Returns a string representation of the given matrix.
|
Modifier and Type | Class and Description |
---|---|
class |
DenseObjectMatrix1D
Dense 1-d matrix (aka vector) holding Object elements.
|
class |
SparseObjectMatrix1D
Sparse hashed 1-d matrix (aka vector) holding Object
elements.
|
class |
WrapperObjectMatrix1D
1-d matrix holding int elements; either a view wrapping another
matrix or a matrix whose views are wrappers.
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix1D |
DenseObjectMatrix1D.assign(Object value) |
ObjectMatrix1D |
DenseObjectMatrix1D.assign(Object[] values)
Sets all cells to the state specified by values.
|
ObjectMatrix1D |
DenseObjectMatrix1D.assign(ObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i]).
|
ObjectMatrix1D |
DenseObjectMatrix1D.assign(ObjectMatrix1D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix1D |
DenseObjectMatrix1D.assign(ObjectMatrix1D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
ObjectMatrix1D |
SparseObjectMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
ObjectMatrix1D |
DenseObjectMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
ObjectMatrix1D |
WrapperObjectMatrix1D.like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
ObjectMatrix1D |
SparseCCObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
SparseRCObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
WrapperObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
DenseObjectMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix1D |
DenseLargeObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
DenseColumnObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
SparseObjectMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic
type, entirelly independent of the receiver.
|
ObjectMatrix1D |
DiagonalObjectMatrix2D.like1D(int size) |
ObjectMatrix1D |
WrapperObjectMatrix2D.vectorize() |
ObjectMatrix1D |
WrapperObjectMatrix3D.vectorize() |
ObjectMatrix1D |
SparseObjectMatrix3D.vectorize() |
ObjectMatrix1D |
DenseObjectMatrix3D.vectorize() |
ObjectMatrix1D |
DenseObjectMatrix2D.vectorize() |
ObjectMatrix1D |
DenseColumnObjectMatrix2D.vectorize() |
ObjectMatrix1D |
SparseObjectMatrix2D.vectorize() |
ObjectMatrix1D |
WrapperObjectMatrix2D.viewColumn(int column) |
ObjectMatrix1D |
WrapperObjectMatrix1D.viewFlip()
Constructs and returns a new flip view.
|
ObjectMatrix1D |
WrapperObjectMatrix1D.viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a
width sub matrix starting at index.
|
ObjectMatrix1D |
WrapperObjectMatrix2D.viewRow(int row) |
ObjectMatrix1D |
WrapperObjectMatrix1D.viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
ObjectMatrix1D |
WrapperObjectMatrix1D.viewStrides(int _stride)
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 |
DenseObjectMatrix1D.aggregate(ObjectMatrix1D other,
ObjectObjectFunction aggr,
ObjectObjectFunction f) |
ObjectMatrix1D |
DenseObjectMatrix1D.assign(ObjectMatrix1D source)
Replaces all cell values of the receiver with the values of another
matrix.
|
ObjectMatrix1D |
DenseObjectMatrix1D.assign(ObjectMatrix1D y,
ObjectObjectFunction function)
Assigns the result of a function to each cell;
x[i] = function(x[i],y[i]).
|
void |
DenseObjectMatrix1D.swap(ObjectMatrix1D other)
Swaps each element this[i] with other[i].
|
Constructor and Description |
---|
WrapperObjectMatrix1D(ObjectMatrix1D newContent) |
Jump to the Parallel Colt Homepage