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 |
---|---|
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.
|
protected ObjectMatrix1D |
ObjectMatrix1D.getContent()
Returns the content of this matrix if it is a wrapper; or this otherwise.
|
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.
|
protected abstract ObjectMatrix1D |
ObjectMatrix2D.like1D(int size,
int zero,
int stride)
Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.
|
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.
|
protected ObjectMatrix1D |
ObjectFactory2D.make1D(int size)
Constructs a 1d matrix of the right dynamic type.
|
ObjectMatrix1D |
ObjectFactory1D.repeat(ObjectMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.
|
protected ObjectMatrix1D |
ObjectMatrix1D.view()
Constructs and returns a new view equal to the receiver.
|
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.
|
protected abstract ObjectMatrix1D |
ObjectMatrix1D.viewSelectionLike(int[] offsets)
Construct and returns a new selection view.
|
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.
|
protected boolean |
ObjectMatrix1D.haveSharedCells(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.
|
protected boolean |
ObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.
|
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 | 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.
|
Modifier and Type | Method and Description |
---|---|
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 |
SparseObjectMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.
|
ObjectMatrix1D |
DenseObjectMatrix2D.like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.
|
protected ObjectMatrix1D |
SparseObjectMatrix2D.like1D(int size,
int offset,
int stride)
Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.
|
protected ObjectMatrix1D |
DenseObjectMatrix2D.like1D(int size,
int zero,
int stride)
Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.
|
protected ObjectMatrix1D |
SparseObjectMatrix1D.viewSelectionLike(int[] offsets)
Construct and returns a new selection view.
|
protected ObjectMatrix1D |
DenseObjectMatrix1D.viewSelectionLike(int[] offsets)
Construct and returns a new selection view.
|
Modifier and Type | Method and Description |
---|---|
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]).
|
protected boolean |
SparseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.
|
protected boolean |
DenseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.
|
void |
DenseObjectMatrix1D.swap(ObjectMatrix1D other)
Swaps each element this[i] with other[i].
|
Modifier and Type | Method and Description |
---|---|
ObjectMatrix1D |
Sorting.sort(ObjectMatrix1D vector)
Sorts the vector into ascending order, according to the natural ordering.
|
ObjectMatrix1D |
Sorting.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.
|
protected String |
Formatter.form(ObjectMatrix1D matrix,
int index,
Former formatter)
Converts a given cell to a String; no alignment considered.
|
ObjectMatrix1D |
Sorting.sort(ObjectMatrix1D vector)
Sorts the vector into ascending order, according to the natural ordering.
|
ObjectMatrix1D |
Sorting.sort(ObjectMatrix1D vector,
Comparator c)
Sorts the vector into ascending order, according to the order induced by the specified comparator.
|
String |
Formatter.toSourceCode(ObjectMatrix1D matrix)
Returns a string s such that Object[] m = s is a legal Java statement.
|
String |
Formatter.toString(ObjectMatrix1D matrix)
Returns a string representation of the given matrix.
|
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.