Uses of Class
cern.colt.matrix.ObjectMatrix1D
Packages that use ObjectMatrix1D
Package
Description
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.
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.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 ObjectMatrix1DModifier and TypeMethodDescriptionObjectFactory1D.append(ObjectMatrix1D A, ObjectMatrix1D B) C = A||B; Constructs a new matrix which is the concatenation of two other matrices.ObjectMatrix1D.assign(ObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i]).ObjectMatrix1D.assign(ObjectMatrix1D other) Replaces all cell values of the receiver with the values of another matrix.ObjectMatrix1D.assign(ObjectMatrix1D y, ObjectObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).Sets all cells to the state specified by value.Sets all cells to the state specified by values.ObjectMatrix1D.copy()Constructs and returns a deep copy of the receiver.ObjectFactory2D.diagonal(ObjectMatrix2D A) Constructs a new vector consisting of the diagonal elements of A.protected ObjectMatrix1DObjectMatrix1D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.ObjectMatrix1D.like()Construct and returns a new empty matrix of the same dynamic type as the receiver, having the same size.abstract ObjectMatrix1DObjectMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.abstract ObjectMatrix1DObjectMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected abstract ObjectMatrix1DObjectMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.ObjectFactory1D.make(int size) Constructs a matrix with the given shape, each cell initialized with zero.Constructs a matrix with the given shape, each cell initialized with the given value.ObjectFactory1D.make(ObjectArrayList values) Constructs a matrix from the values of the given list.ObjectFactory1D.make(ObjectMatrix1D[] parts) Constructs a matrix which is the concatenation of all given parts.Constructs a matrix with the given cell values.protected ObjectMatrix1DObjectFactory2D.make1D(int size) Constructs a 1d matrix of the right dynamic type.ObjectFactory1D.repeat(ObjectMatrix1D A, int repeat) C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.protected ObjectMatrix1DObjectMatrix1D.view()Constructs and returns a new view equal to the receiver.ObjectMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.ObjectMatrix1D.viewFlip()Constructs and returns a new flip view.ObjectMatrix1D.viewPart(int index, int width) Constructs and returns a new sub-range view that is a width sub matrix starting at index.ObjectMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.ObjectMatrix1D.viewSelection(int[] indexes) Constructs and returns a new selection view that is a matrix holding the indicated cells.ObjectMatrix1D.viewSelection(ObjectProcedure condition) Constructs and returns a new selection view that is a matrix holding the cells matching the given condition.protected abstract ObjectMatrix1DObjectMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.ObjectMatrix1D.viewSorted()Sorts the vector into ascending order, according to the natural ordering.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 ObjectMatrix1DModifier and TypeMethodDescriptionObjectMatrix1D.aggregate(ObjectMatrix1D other, ObjectObjectFunction aggr, ObjectObjectFunction f) Applies a function to each corresponding cell of two matrices and aggregates the results.ObjectFactory1D.append(ObjectMatrix1D A, ObjectMatrix1D B) C = A||B; Constructs a new matrix which is the concatenation of two other matrices.booleanObjectMatrix1DProcedure.apply(ObjectMatrix1D element) Applies a procedure to an argument.ObjectMatrix1D.assign(ObjectMatrix1D other) Replaces all cell values of the receiver with the values of another matrix.ObjectMatrix1D.assign(ObjectMatrix1D y, ObjectObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).ObjectFactory2D.diagonal(ObjectMatrix1D vector) Constructs a new diagonal matrix whose diagonal elements are the elements of vector.protected booleanObjectMatrix1D.haveSharedCells(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.ObjectFactory1D.make(ObjectMatrix1D[] parts) Constructs a matrix which is the concatenation of all given parts.ObjectFactory1D.repeat(ObjectMatrix1D A, int repeat) C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.voidObjectMatrix1D.swap(ObjectMatrix1D other) Swaps each element this[i] with other[i].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.implModifier and TypeClassDescriptionclassDense 1-d matrix (aka vector) holding Object elements.(package private) classSelection view on dense 1-d matrices holding Object elements.(package private) classSelection view on sparse 1-d matrices holding Object elements.classSparse hashed 1-d matrix (aka vector) holding Object elements.Methods in cern.colt.matrix.impl that return ObjectMatrix1DModifier and TypeMethodDescriptionDenseObjectMatrix1D.assign(ObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i]).DenseObjectMatrix1D.assign(ObjectMatrix1D source) Replaces all cell values of the receiver with the values of another matrix.DenseObjectMatrix1D.assign(ObjectMatrix1D y, ObjectObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).Sets all cells to the state specified by values.DenseObjectMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SelectedDenseObjectMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SelectedSparseObjectMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SparseObjectMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.DenseObjectMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1DDenseObjectMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SelectedDenseObjectMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1DSelectedDenseObjectMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SelectedSparseObjectMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1DSelectedSparseObjectMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SparseObjectMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected ObjectMatrix1DSparseObjectMatrix2D.like1D(int size, int offset, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SelectedDenseObjectMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.SelectedSparseObjectMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.SelectedDenseObjectMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.SelectedSparseObjectMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.protected ObjectMatrix1DDenseObjectMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected ObjectMatrix1DSelectedDenseObjectMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected ObjectMatrix1DSelectedSparseObjectMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected ObjectMatrix1DSparseObjectMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.Methods in cern.colt.matrix.impl with parameters of type ObjectMatrix1DModifier and TypeMethodDescriptionDenseObjectMatrix1D.assign(ObjectMatrix1D source) Replaces all cell values of the receiver with the values of another matrix.DenseObjectMatrix1D.assign(ObjectMatrix1D y, ObjectObjectFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).protected booleanDenseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSelectedDenseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSelectedSparseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSparseObjectMatrix1D.haveSharedCellsRaw(ObjectMatrix1D other) Returns true if both matrices share at least one identical cell.voidDenseObjectMatrix1D.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 ObjectMatrix1DModifier and TypeMethodDescriptionSorting.sort(ObjectMatrix1D vector) Sorts the vector into ascending order, according to the natural ordering.Sorting.sort(ObjectMatrix1D vector, 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 ObjectMatrix1DModifier and TypeMethodDescriptionintObjectMatrix1DComparator.compare(ObjectMatrix1D o1, ObjectMatrix1D o2) Compares its two arguments for order.protected StringFormatter.form(ObjectMatrix1D matrix, int index, Former formatter) Converts a given cell to a String; no alignment considered.Sorting.sort(ObjectMatrix1D vector) Sorts the vector into ascending order, according to the natural ordering.Sorting.sort(ObjectMatrix1D vector, Comparator c) Sorts the vector into ascending order, according to the order induced by the specified comparator.Formatter.toSourceCode(ObjectMatrix1D matrix) Returns a string s such that Object[] m = s is a legal Java statement.Formatter.toString(ObjectMatrix1D matrix) Returns a string representation of the given matrix.private static intPartitioning.xPartitionOld(ObjectMatrix2D matrix, ObjectMatrix1D column, int from, int to, Object splitter) Same asexcept 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.invalid reference
#partition(int[],int,int,int)private static voidPartitioning.xPartitionOld(ObjectMatrix2D matrix, ObjectMatrix1D column, int from, int to, Object[] splitters, int splitFrom, int splitTo, int[] splitIndexes) Same asexcept 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.invalid reference
#partition(int[],int,int,int[],int,int,int[])