Uses of Class
cern.colt.matrix.ObjectMatrix1D
-
Packages that use ObjectMatrix1D 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 ofcern.colt.matrix
, without subsetting or supersetting.cern.colt.matrix.objectalgo Object matrix algorithms such as print formatting, sorting, partitioning and statistics. -
-
Uses of ObjectMatrix1D in cern.colt.matrix
Methods in cern.colt.matrix that return ObjectMatrix1D Modifier and Type Method 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(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. assign(java.lang.Object value)
Sets all cells to the state specified by value.ObjectMatrix1D
ObjectMatrix1D. assign(java.lang.Object[] values)
Sets all cells to the state specified by values.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, java.lang.Object initialValue)
Constructs a matrix with the given shape, each cell initialized with the given value.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. make(java.lang.Object[] values)
Constructs a matrix with the given cell values.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.Methods in cern.colt.matrix with parameters of type ObjectMatrix1D Modifier and Type Method Description java.lang.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. -
Uses of ObjectMatrix1D in cern.colt.matrix.impl
Subclasses of ObjectMatrix1D in cern.colt.matrix.impl Modifier and Type Class Description class
DenseObjectMatrix1D
Dense 1-d matrix (aka vector) holding Object elements.(package private) class
SelectedDenseObjectMatrix1D
Selection view on dense 1-d matrices holding Object elements.(package private) class
SelectedSparseObjectMatrix1D
Selection view on sparse 1-d matrices holding Object elements.class
SparseObjectMatrix1D
Sparse hashed 1-d matrix (aka vector) holding Object elements.Methods in cern.colt.matrix.impl that return ObjectMatrix1D Modifier and Type Method Description 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
DenseObjectMatrix1D. assign(java.lang.Object[] values)
Sets all cells to the state specified by values.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
SelectedDenseObjectMatrix1D. like(int size)
Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.ObjectMatrix1D
SelectedSparseObjectMatrix1D. like(int size)
Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.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
DenseObjectMatrix2D. like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.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.ObjectMatrix1D
SelectedDenseObjectMatrix2D. like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1D
SelectedDenseObjectMatrix2D. 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
SelectedSparseObjectMatrix2D. like1D(int size)
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1D
SelectedSparseObjectMatrix2D. 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
SparseObjectMatrix2D. 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.ObjectMatrix1D
SelectedDenseObjectMatrix2D. viewColumn(int column)
Constructs and returns a new slice view representing the rows of the given column.ObjectMatrix1D
SelectedSparseObjectMatrix2D. viewColumn(int column)
Constructs and returns a new slice view representing the rows of the given column.ObjectMatrix1D
SelectedDenseObjectMatrix2D. viewRow(int row)
Constructs and returns a new slice view representing the columns of the given row.ObjectMatrix1D
SelectedSparseObjectMatrix2D. viewRow(int row)
Constructs and returns a new slice view representing the columns of the given row.protected ObjectMatrix1D
DenseObjectMatrix1D. viewSelectionLike(int[] offsets)
Construct and returns a new selection view.protected ObjectMatrix1D
SelectedDenseObjectMatrix1D. viewSelectionLike(int[] offsets)
Construct and returns a new selection view.protected ObjectMatrix1D
SelectedSparseObjectMatrix1D. viewSelectionLike(int[] offsets)
Construct and returns a new selection view.protected ObjectMatrix1D
SparseObjectMatrix1D. viewSelectionLike(int[] offsets)
Construct and returns a new selection view.Methods in cern.colt.matrix.impl with parameters of type ObjectMatrix1D Modifier and Type Method 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
DenseObjectMatrix1D. haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.protected boolean
SelectedDenseObjectMatrix1D. haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.protected boolean
SelectedSparseObjectMatrix1D. haveSharedCellsRaw(ObjectMatrix1D other)
Returns true if both matrices share at least one identical cell.protected boolean
SparseObjectMatrix1D. 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]. -
Uses of ObjectMatrix1D in cern.colt.matrix.objectalgo
Methods in cern.colt.matrix.objectalgo that return ObjectMatrix1D Modifier and Type Method Description ObjectMatrix1D
Sorting. sort(ObjectMatrix1D vector)
Sorts the vector into ascending order, according to the natural ordering.ObjectMatrix1D
Sorting. sort(ObjectMatrix1D vector, java.util.Comparator c)
Sorts the vector into ascending order, according to the order induced by the specified comparator.Methods in cern.colt.matrix.objectalgo with parameters of type ObjectMatrix1D Modifier and Type Method Description int
ObjectMatrix1DComparator. compare(ObjectMatrix1D o1, ObjectMatrix1D o2)
Compares its two arguments for order.protected java.lang.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, java.util.Comparator c)
Sorts the vector into ascending order, according to the order induced by the specified comparator.java.lang.String
Formatter. toSourceCode(ObjectMatrix1D matrix)
Returns a string s such that Object[] m = s is a legal Java statement.java.lang.String
Formatter. toString(ObjectMatrix1D matrix)
Returns a string representation of the given matrix.private static int
Partitioning. xPartitionOld(ObjectMatrix2D matrix, ObjectMatrix1D column, int from, int to, java.lang.Object splitter)
Same as#partition(int[],int,int,int)
except that it synchronously partitions the rows of the given matrix by the values of the given matrix column; This is essentially the same as partitioning a list of composite objects by some instance variable; In other words, two entire rows of the matrix are swapped, whenever two column values indicate so.private static void
Partitioning. xPartitionOld(ObjectMatrix2D matrix, ObjectMatrix1D column, int from, int to, java.lang.Object[] splitters, int splitFrom, int splitTo, int[] splitIndexes)
Same as#partition(int[],int,int,int[],int,int,int[])
except that it synchronously partitions the rows of the given matrix by the values of the given matrix column; This is essentially the same as partitioning a list of composite objects by some instance variable; In other words, two entire rows of the matrix are swapped, whenever two column values indicate so.
-