Uses of Class
cern.colt.matrix.DoubleMatrix2D
Packages that use DoubleMatrix2D
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 benchmarks.
Double matrix algorithms such as print formatting, sorting, partitioning and statistics.
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.Linear Algebraic matrix computations operating on
DoubleMatrix2D
and DoubleMatrix1D.-
Uses of DoubleMatrix2D in cern.colt.matrix
Methods in cern.colt.matrix that return DoubleMatrix2DModifier and TypeMethodDescriptionDoubleFactory2D.appendColumns(DoubleMatrix2D A, DoubleMatrix2D B) C = A||B; Constructs a new matrix which is the column-wise concatenation of two other matrices.DoubleFactory2D.appendRows(DoubleMatrix2D A, DoubleMatrix2D B) C = A||B; Constructs a new matrix which is the row-wise concatenation of two other matrices.DoubleFactory2D.ascending(int rows, int columns) Constructs a matrix with cells having ascending values.DoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.DoubleMatrix2D.assign(double[][] values) Sets all cells to the state specified by values.DoubleMatrix2D.assign(DoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).DoubleMatrix2D.assign(DoubleMatrix2D other) Replaces all cell values of the receiver with the values of another matrix.DoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]).DoubleFactory2D.compose(DoubleMatrix2D[][] parts) Constructs a block matrix made from the given parts.DoubleFactory2D.composeDiagonal(DoubleMatrix2D A, DoubleMatrix2D B) Constructs a diagonal block matrix from the given parts (the direct sum of two matrices).DoubleFactory2D.composeDiagonal(DoubleMatrix2D A, DoubleMatrix2D B, DoubleMatrix2D C) Constructs a diagonal block matrix from the given parts.DoubleMatrix2D.copy()Constructs and returns a deep copy of the receiver.DoubleFactory2D.descending(int rows, int columns) Constructs a matrix with cells having descending values.DoubleFactory2D.diagonal(DoubleMatrix1D vector) Constructs a new diagonal matrix whose diagonal elements are the elements of vector.DoubleMatrix2D.forEachNonZero(IntIntDoubleFunction function) Assigns the result of a function to each non-zero cell; x[row,col] = function(x[row,col]).protected DoubleMatrix2DDoubleMatrix2D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.DoubleFactory2D.identity(int rowsAndColumns) Constructs an identity matrix (having ones on the diagonal and zeros elsewhere).DoubleMatrix2D.like()Construct and returns a new empty matrix of the same dynamic type as the receiver, having the same number of rows and columns.abstract DoubleMatrix2DDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.abstract DoubleMatrix2DDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected abstract DoubleMatrix2DDoubleMatrix3D.like2D(int rows, int columns, int rowZero, int columnZero, int rowStride, int columnStride) Construct and returns a new 2-d matrix of the corresponding dynamic type, sharing the same cells.DoubleFactory2D.make(double[][] values) Constructs a matrix with the given cell values.DoubleFactory2D.make(double[] values, int rows) Construct a matrix from a one-dimensional column-major packed array, ala Fortran.DoubleFactory2D.make(int rows, int columns) Constructs a matrix with the given shape, each cell initialized with zero.DoubleFactory2D.make(int rows, int columns, double initialValue) Constructs a matrix with the given shape, each cell initialized with the given value.DoubleFactory2D.random(int rows, int columns) Constructs a matrix with uniformly distributed values in (0,1) (exclusive).DoubleFactory2D.repeat(DoubleMatrix2D A, int rowRepeat, int columnRepeat) C = A||A||..||A; Constructs a new matrix which is duplicated both along the row and column dimension.DoubleFactory2D.sample(int rows, int columns, double value, double nonZeroFraction) Constructs a randomly sampled matrix with the given shape.DoubleFactory2D.sample(DoubleMatrix2D matrix, double value, double nonZeroFraction) Modifies the given matrix to be a randomly sampled matrix.protected DoubleMatrix2DDoubleMatrix2D.view()Constructs and returns a new view equal to the receiver.DoubleMatrix3D.viewColumn(int column) Constructs and returns a new 2-dimensional slice view representing the slices and rows of the given column.DoubleMatrix2D.viewColumnFlip()Constructs and returns a new flip view along the column axis.DoubleMatrix2D.viewDice()Constructs and returns a new dice (transposition) view; Swaps axes; example: 3 x 4 matrix --> 4 x 3 matrix.DoubleMatrix2D.viewPart(int row, int column, int height, int width) Constructs and returns a new sub-range view that is a height x width sub matrix starting at [row,column].DoubleMatrix3D.viewRow(int row) Constructs and returns a new 2-dimensional slice view representing the slices and columns of the given row.DoubleMatrix2D.viewRowFlip()Constructs and returns a new flip view along the row axis.DoubleMatrix2D.viewSelection(int[] rowIndexes, int[] columnIndexes) Constructs and returns a new selection view that is a matrix holding the indicated cells.DoubleMatrix2D.viewSelection(DoubleMatrix1DProcedure condition) Constructs and returns a new selection view that is a matrix holding all rows matching the given condition.protected abstract DoubleMatrix2DDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.DoubleMatrix3D.viewSlice(int slice) Constructs and returns a new 2-dimensional slice view representing the rows and columns of the given slice.DoubleMatrix2D.viewSorted(int column) Sorts the matrix rows into ascending order, according to the natural ordering of the matrix values in the given column.DoubleMatrix2D.viewStrides(int rowStride, int columnStride) Constructs and returns a new stride view which is a sub matrix consisting of every i-th cell.DoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C) Linear algebraic matrix-matrix multiplication; C = A x B; Equivalent to A.zMult(B,C,1,0,false,false).DoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) Linear algebraic matrix-matrix multiplication; C = alpha * A x B + beta*C.Methods in cern.colt.matrix with parameters of type DoubleMatrix2DModifier and TypeMethodDescriptiondoubleDoubleMatrix2D.aggregate(DoubleMatrix2D other, DoubleDoubleFunction aggr, DoubleDoubleFunction f) Applies a function to each corresponding cell of two matrices and aggregates the results.DoubleFactory2D.appendColumns(DoubleMatrix2D A, DoubleMatrix2D B) C = A||B; Constructs a new matrix which is the column-wise concatenation of two other matrices.DoubleFactory2D.appendRows(DoubleMatrix2D A, DoubleMatrix2D B) C = A||B; Constructs a new matrix which is the row-wise concatenation of two other matrices.booleanDoubleMatrix2DProcedure.apply(DoubleMatrix2D element) Applies a procedure to an argument.DoubleMatrix2D.assign(DoubleMatrix2D other) Replaces all cell values of the receiver with the values of another matrix.DoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]).protected static voidDoubleFactory2D.checkRectangularShape(DoubleMatrix2D[][] array) Checks whether the given array is rectangular, that is, whether all rows have the same number of columns.DoubleFactory2D.compose(DoubleMatrix2D[][] parts) Constructs a block matrix made from the given parts.DoubleFactory2D.composeDiagonal(DoubleMatrix2D A, DoubleMatrix2D B) Constructs a diagonal block matrix from the given parts (the direct sum of two matrices).DoubleFactory2D.composeDiagonal(DoubleMatrix2D A, DoubleMatrix2D B, DoubleMatrix2D C) Constructs a diagonal block matrix from the given parts.voidDoubleFactory2D.decompose(DoubleMatrix2D[][] parts, DoubleMatrix2D matrix) Splits a block matrix into its constituent blocks; Copies blocks of a matrix into the given parts.DoubleFactory2D.diagonal(DoubleMatrix2D A) Constructs a new vector consisting of the diagonal elements of A.protected booleanDoubleMatrix2D.haveSharedCells(DoubleMatrix2D other) Returns true if both matrices share at least one identical cell.protected booleanDoubleMatrix2D.haveSharedCellsRaw(DoubleMatrix2D other) Returns true if both matrices share at least one identical cell.DoubleFactory2D.repeat(DoubleMatrix2D A, int rowRepeat, int columnRepeat) C = A||A||..||A; Constructs a new matrix which is duplicated both along the row and column dimension.DoubleFactory2D.sample(DoubleMatrix2D matrix, double value, double nonZeroFraction) Modifies the given matrix to be a randomly sampled matrix.voidDoubleMatrix2D.zAssign8Neighbors(DoubleMatrix2D B, Double9Function function) 8 neighbor stencil transformation.DoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C) Linear algebraic matrix-matrix multiplication; C = A x B; Equivalent to A.zMult(B,C,1,0,false,false).DoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) Linear algebraic matrix-matrix multiplication; C = alpha * A x B + beta*C. -
Uses of DoubleMatrix2D in cern.colt.matrix.bench
Fields in cern.colt.matrix.bench declared as DoubleMatrix2DModifier and TypeFieldDescriptionDouble2DProcedure.ADouble2DProcedure.BDouble2DProcedure.CDouble2DProcedure.DMethods in cern.colt.matrix.bench with parameters of type DoubleMatrix2DModifier and TypeMethodDescriptionvoidDouble2DProcedure.setParameters(DoubleMatrix2D A, DoubleMatrix2D B) Sets the matrices to operate upon. -
Uses of DoubleMatrix2D in cern.colt.matrix.doublealgo
Methods in cern.colt.matrix.doublealgo that return DoubleMatrix2DModifier and TypeMethodDescriptionstatic DoubleMatrix2DTransform.abs(DoubleMatrix2D A) Deprecated.A[row,col] = Math.abs(A[row,col]).static DoubleMatrix2DStatistic.aggregate(DoubleMatrix2D matrix, BinFunction1D[] aggr, DoubleMatrix2D result) Applies the given aggregation functions to each column and stores the results in a the result matrix.static DoubleMatrix2DStatistic.correlation(DoubleMatrix2D covariance) Modifies the given covariance matrix to be a correlation matrix (in-place).static DoubleMatrix2DStatistic.covariance(DoubleMatrix2D matrix) Constructs and returns the covariance matrix of the given matrix.static DoubleMatrix2DStatistic.distance(DoubleMatrix2D matrix, Statistic.VectorVectorFunction distanceFunction) Constructs and returns the distance matrix of the given matrix.static DoubleMatrix2DTransform.div(DoubleMatrix2D A, double s) Deprecated.A = A / s invalid input: '<'=> A[row,col] = A[row,col] / s.static DoubleMatrix2DTransform.div(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A / B invalid input: '<'=> A[row,col] = A[row,col] / B[row,col].static DoubleMatrix2DTransform.equals(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] == s ? 1 : 0; ignores tolerance.static DoubleMatrix2DTransform.equals(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] == B[row,col] ? 1 : 0; ignores tolerance.static DoubleMatrix2DTransform.greater(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] > s ? 1 : 0.static DoubleMatrix2DTransform.greater(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] > B[row,col] ? 1 : 0.static DoubleMatrix2DTransform.less(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] invalid input: '<' s ? 1 : 0.static DoubleMatrix2DTransform.less(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] invalid input: '<' B[row,col] ? 1 : 0.static DoubleMatrix2DTransform.minus(DoubleMatrix2D A, double s) Deprecated.A = A - s invalid input: '<'=> A[row,col] = A[row,col] - s.static DoubleMatrix2DTransform.minus(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A - B invalid input: '<'=> A[row,col] = A[row,col] - B[row,col].static DoubleMatrix2DTransform.minusMult(DoubleMatrix2D A, DoubleMatrix2D B, double s) Deprecated.A = A - B*s invalid input: '<'=> A[row,col] = A[row,col] - B[row,col]*s.static DoubleMatrix2DTransform.mult(DoubleMatrix2D A, double s) Deprecated.A = A * s invalid input: '<'=> A[row,col] = A[row,col] * s.static DoubleMatrix2DTransform.mult(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A * B invalid input: '<'=> A[row,col] = A[row,col] * B[row,col].static DoubleMatrix2DTransform.negate(DoubleMatrix2D A) Deprecated.A = -A invalid input: '<'=> A[row,col] = -A[row,col].static DoubleMatrix2DPartitioning.partition(DoubleMatrix2D matrix, int column, double[] splitters, int[] splitIndexes) Same asPartitioning.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.static DoubleMatrix2DTransform.plus(DoubleMatrix2D A, double s) Deprecated.A = A + s invalid input: '<'=> A[row,col] = A[row,col] + s.static DoubleMatrix2DTransform.plus(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A + B invalid input: '<'=> A[row,col] = A[row,col] + B[row,col].static DoubleMatrix2DTransform.plusMult(DoubleMatrix2D A, DoubleMatrix2D B, double s) Deprecated.A = A + B*s invalid input: '<'=> A[row,col] = A[row,col] + B[row,col]*s.static DoubleMatrix2DTransform.pow(DoubleMatrix2D A, double s) Deprecated.A = As invalid input: '<'=> A[row,col] = Math.pow(A[row,col], s).static DoubleMatrix2DTransform.pow(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = AB invalid input: '<'=> A[row,col] = Math.pow(A[row,col], B[row,col]).Sorting.sort(DoubleMatrix2D matrix, double[] aggregates) Sorts the matrix rows into ascending order, according to the natural ordering of the matrix values in the virtual column aggregates; Particularly efficient when comparing expensive aggregates, because aggregates need not be recomputed time and again, as is the case for comparator based sorts.Sorting.sort(DoubleMatrix2D matrix, int column) Sorts the matrix rows into ascending order, according to the natural ordering of the matrix values in the given column.Sorting.sort(DoubleMatrix2D matrix, DoubleMatrix1DComparator c) Sorts the matrix rows according to the order induced by the specified comparator.Sorting.sort(DoubleMatrix2D matrix, BinFunction1D aggregate) Sorts the matrix rows into ascending order, according to the natural ordering of the values computed by applying the given aggregation function to each row; Particularly efficient when comparing expensive aggregates, because aggregates need not be recomputed time and again, as is the case for comparator based sorts.static DoubleMatrix2DStatistic.viewSample(DoubleMatrix2D matrix, double rowFraction, double columnFraction, RandomEngine randomGenerator) Constructs and returns a sampling view with round(matrix.rows() * rowFraction) rows and round(matrix.columns() * columnFraction) columns.private static DoubleMatrix2DStatistic.xdistanceOld(DoubleMatrix2D matrix, int norm) Constructs and returns the distance matrix of the given matrix.private static DoubleMatrix2DStatistic.xdistanceOld2(DoubleMatrix2D matrix, int norm) Constructs and returns the distance matrix of the given matrix.Methods in cern.colt.matrix.doublealgo with parameters of type DoubleMatrix2DModifier and TypeMethodDescriptionstatic DoubleMatrix2DTransform.abs(DoubleMatrix2D A) Deprecated.A[row,col] = Math.abs(A[row,col]).static DoubleMatrix2DStatistic.aggregate(DoubleMatrix2D matrix, BinFunction1D[] aggr, DoubleMatrix2D result) Applies the given aggregation functions to each column and stores the results in a the result matrix.intDoubleMatrix2DComparator.compare(DoubleMatrix2D o1, DoubleMatrix2D o2) Compares its two arguments for order.static DoubleMatrix2DStatistic.correlation(DoubleMatrix2D covariance) Modifies the given covariance matrix to be a correlation matrix (in-place).static DoubleMatrix2DStatistic.covariance(DoubleMatrix2D matrix) Constructs and returns the covariance matrix of the given matrix.static DoubleMatrix2DStatistic.distance(DoubleMatrix2D matrix, Statistic.VectorVectorFunction distanceFunction) Constructs and returns the distance matrix of the given matrix.static DoubleMatrix2DTransform.div(DoubleMatrix2D A, double s) Deprecated.A = A / s invalid input: '<'=> A[row,col] = A[row,col] / s.static DoubleMatrix2DTransform.div(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A / B invalid input: '<'=> A[row,col] = A[row,col] / B[row,col].static DoubleMatrix2DTransform.equals(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] == s ? 1 : 0; ignores tolerance.static DoubleMatrix2DTransform.equals(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] == B[row,col] ? 1 : 0; ignores tolerance.String[][]Formatter.format(DoubleMatrix2D matrix) Returns a string representations of all cells; no alignment considered.static DoubleMatrix2DTransform.greater(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] > s ? 1 : 0.static DoubleMatrix2DTransform.greater(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] > B[row,col] ? 1 : 0.static DoubleMatrix2DTransform.less(DoubleMatrix2D A, double s) Deprecated.A[row,col] = A[row,col] invalid input: '<' s ? 1 : 0.static DoubleMatrix2DTransform.less(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A[row,col] = A[row,col] invalid input: '<' B[row,col] ? 1 : 0.static DoubleMatrix2DTransform.minus(DoubleMatrix2D A, double s) Deprecated.A = A - s invalid input: '<'=> A[row,col] = A[row,col] - s.static DoubleMatrix2DTransform.minus(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A - B invalid input: '<'=> A[row,col] = A[row,col] - B[row,col].static DoubleMatrix2DTransform.minusMult(DoubleMatrix2D A, DoubleMatrix2D B, double s) Deprecated.A = A - B*s invalid input: '<'=> A[row,col] = A[row,col] - B[row,col]*s.static DoubleMatrix2DTransform.mult(DoubleMatrix2D A, double s) Deprecated.A = A * s invalid input: '<'=> A[row,col] = A[row,col] * s.static DoubleMatrix2DTransform.mult(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A * B invalid input: '<'=> A[row,col] = A[row,col] * B[row,col].static DoubleMatrix2DTransform.negate(DoubleMatrix2D A) Deprecated.A = -A invalid input: '<'=> A[row,col] = -A[row,col].static voidPartitioning.partition(DoubleMatrix2D matrix, int[] rowIndexes, int rowFrom, int rowTo, int column, double[] splitters, int splitFrom, int splitTo, int[] splitIndexes) Same asPartitioning.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.static DoubleMatrix2DPartitioning.partition(DoubleMatrix2D matrix, int column, double[] splitters, int[] splitIndexes) Same asPartitioning.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.static DoubleMatrix2DTransform.plus(DoubleMatrix2D A, double s) Deprecated.A = A + s invalid input: '<'=> A[row,col] = A[row,col] + s.static DoubleMatrix2DTransform.plus(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = A + B invalid input: '<'=> A[row,col] = A[row,col] + B[row,col].static DoubleMatrix2DTransform.plusMult(DoubleMatrix2D A, DoubleMatrix2D B, double s) Deprecated.A = A + B*s invalid input: '<'=> A[row,col] = A[row,col] + B[row,col]*s.static DoubleMatrix2DTransform.pow(DoubleMatrix2D A, double s) Deprecated.A = As invalid input: '<'=> A[row,col] = Math.pow(A[row,col], s).static DoubleMatrix2DTransform.pow(DoubleMatrix2D A, DoubleMatrix2D B) Deprecated.A = AB invalid input: '<'=> A[row,col] = Math.pow(A[row,col], B[row,col]).Sorting.sort(DoubleMatrix2D matrix, double[] aggregates) Sorts the matrix rows into ascending order, according to the natural ordering of the matrix values in the virtual column aggregates; Particularly efficient when comparing expensive aggregates, because aggregates need not be recomputed time and again, as is the case for comparator based sorts.Sorting.sort(DoubleMatrix2D matrix, int column) Sorts the matrix rows into ascending order, according to the natural ordering of the matrix values in the given column.Sorting.sort(DoubleMatrix2D matrix, DoubleMatrix1DComparator c) Sorts the matrix rows according to the order induced by the specified comparator.Sorting.sort(DoubleMatrix2D matrix, BinFunction1D aggregate) Sorts the matrix rows into ascending order, according to the natural ordering of the values computed by applying the given aggregation function to each row; Particularly efficient when comparing expensive aggregates, because aggregates need not be recomputed time and again, as is the case for comparator based sorts.static intStencil.stencil9(DoubleMatrix2D A, Double9Function function, int maxIterations, DoubleMatrix2DProcedure hasConverged, int convergenceIterations) 9 point stencil operation.Formatter.toSourceCode(DoubleMatrix2D matrix) Returns a string s such that Object[] m = s is a legal Java statement.Formatter.toString(DoubleMatrix2D matrix) Returns a string representation of the given matrix.protected StringFormatter.toTitleString(DoubleMatrix2D matrix, String[] rowNames, String[] columnNames, String rowAxisName, String columnAxisName, String title) Returns a string representation of the given matrix with axis as well as rows and columns labeled.Formatter.toTitleString(DoubleMatrix2D matrix, String[] rowNames, String[] columnNames, String rowAxisName, String columnAxisName, String title, BinFunction1D[] aggr) Same as toTitleString except that additionally statistical aggregates (mean, median, sum, etc.) of rows and columns are printed.static DoubleMatrix2DStatistic.viewSample(DoubleMatrix2D matrix, double rowFraction, double columnFraction, RandomEngine randomGenerator) Constructs and returns a sampling view with round(matrix.rows() * rowFraction) rows and round(matrix.columns() * columnFraction) columns.private static DoubleMatrix2DStatistic.xdistanceOld(DoubleMatrix2D matrix, int norm) Constructs and returns the distance matrix of the given matrix.private static DoubleMatrix2DStatistic.xdistanceOld2(DoubleMatrix2D matrix, int norm) Constructs and returns the distance matrix of the given matrix.private static intPartitioning.xPartitionOld(DoubleMatrix2D matrix, DoubleMatrix1D column, int from, int to, double 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(DoubleMatrix2D matrix, DoubleMatrix1D column, int from, int to, double[] 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[]) -
Uses of DoubleMatrix2D in cern.colt.matrix.impl
Subclasses of DoubleMatrix2D in cern.colt.matrix.implModifier and TypeClassDescriptionclassDense 2-d matrix holding double elements.classSparse row-compressed 2-d matrix holding double elements.(package private) classSparse row-compressed-modified 2-d matrix holding double elements.(package private) classSelection view on dense 2-d matrices holding double elements.(package private) classSelection view on sparse 2-d matrices holding double elements.classSparse hashed 2-d matrix holding double elements.(package private) classTridiagonal 2-d matrix holding double elements.(package private) class2-d matrix holding double elements; either a view wrapping another matrix or a matrix whose views are wrappers.Fields in cern.colt.matrix.impl declared as DoubleMatrix2DModifier and TypeFieldDescriptionprotected DoubleMatrix2DDelegateDoubleMatrix1D.contentprotected DoubleMatrix2DWrapperDoubleMatrix2D.contentMethods in cern.colt.matrix.impl that return DoubleMatrix2DModifier and TypeMethodDescriptionDenseDoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.DenseDoubleMatrix2D.assign(double[][] values) Sets all cells to the state specified by values.DenseDoubleMatrix2D.assign(DoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).DenseDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.DenseDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]).RCDoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.RCDoubleMatrix2D.assign(DoubleFunction function) RCDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.RCDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) RCMDoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.SparseDoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.SparseDoubleMatrix2D.assign(DoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).SparseDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.SparseDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) TridiagonalDoubleMatrix2D.assign(double value) Sets all cells to the state specified by value.TridiagonalDoubleMatrix2D.assign(DoubleFunction function) TridiagonalDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.TridiagonalDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) RCDoubleMatrix2D.forEachNonZero(IntIntDoubleFunction function) SparseDoubleMatrix2D.forEachNonZero(IntIntDoubleFunction function) TridiagonalDoubleMatrix2D.forEachNonZero(IntIntDoubleFunction function) protected DoubleMatrix2DRCDoubleMatrix2D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.protected DoubleMatrix2DRCMDoubleMatrix2D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.protected DoubleMatrix2DTridiagonalDoubleMatrix2D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.protected DoubleMatrix2DWrapperDoubleMatrix2D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.DenseDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.RCDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.RCMDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.SelectedDenseDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.SelectedSparseDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.SparseDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.TridiagonalDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.WrapperDoubleMatrix2D.like(int rows, int columns) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.DelegateDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.DenseDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix2DDenseDoubleMatrix3D.like2D(int rows, int columns, int rowZero, int columnZero, int rowStride, int columnStride) Construct and returns a new 2-d matrix of the corresponding dynamic type, sharing the same cells.SelectedDenseDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix2DSelectedDenseDoubleMatrix3D.like2D(int rows, int columns, int rowZero, int columnZero, int rowStride, int columnStride) Construct and returns a new 2-d matrix of the corresponding dynamic type, sharing the same cells.SelectedSparseDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix2DSelectedSparseDoubleMatrix3D.like2D(int rows, int columns, int rowZero, int columnZero, int rowStride, int columnStride) Construct and returns a new 2-d matrix of the corresponding dynamic type, sharing the same cells.SparseDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix2DSparseDoubleMatrix3D.like2D(int rows, int columns, int rowZero, int columnZero, int rowStride, int columnStride) Construct and returns a new 2-d matrix of the corresponding dynamic type, sharing the same cells.WrapperDoubleMatrix1D.like2D(int rows, int columns) Construct and returns a new 2-d matrix of the corresponding dynamic type, entirelly independent of the receiver.SelectedDenseDoubleMatrix3D.viewColumn(int column) Constructs and returns a new 2-dimensional slice view representing the slices and rows of the given column.SelectedSparseDoubleMatrix3D.viewColumn(int column) Constructs and returns a new 2-dimensional slice view representing the slices and rows of the given column.WrapperDoubleMatrix2D.viewColumnFlip()Constructs and returns a new flip view along the column axis.WrapperDoubleMatrix2D.viewDice()Constructs and returns a new dice (transposition) view; Swaps axes; example: 3 x 4 matrix --> 4 x 3 matrix.WrapperDoubleMatrix2D.viewPart(int row, int column, int height, int width) Constructs and returns a new sub-range view that is a height x width sub matrix starting at [row,column].SelectedDenseDoubleMatrix3D.viewRow(int row) Constructs and returns a new 2-dimensional slice view representing the slices and columns of the given row.SelectedSparseDoubleMatrix3D.viewRow(int row) Constructs and returns a new 2-dimensional slice view representing the slices and columns of the given row.WrapperDoubleMatrix2D.viewRowFlip()Constructs and returns a new flip view along the row axis.WrapperDoubleMatrix2D.viewSelection(int[] rowIndexes, int[] columnIndexes) Constructs and returns a new selection view that is a matrix holding the indicated cells.protected DoubleMatrix2DDenseDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.protected DoubleMatrix2DSelectedDenseDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.protected DoubleMatrix2DSelectedSparseDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.protected DoubleMatrix2DSparseDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.protected DoubleMatrix2DWrapperDoubleMatrix2D.viewSelectionLike(int[] rowOffsets, int[] columnOffsets) Construct and returns a new selection view.SelectedDenseDoubleMatrix3D.viewSlice(int slice) Constructs and returns a new 2-dimensional slice view representing the rows and columns of the given slice.SelectedSparseDoubleMatrix3D.viewSlice(int slice) Constructs and returns a new 2-dimensional slice view representing the rows and columns of the given slice.WrapperDoubleMatrix2D.viewStrides(int _rowStride, int _columnStride) Constructs and returns a new stride view which is a sub matrix consisting of every i-th cell.DenseDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) RCDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) SparseDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) TridiagonalDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) Methods in cern.colt.matrix.impl with parameters of type DoubleMatrix2DModifier and TypeMethodDescriptionDenseDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.DenseDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]).RCDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.RCDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) SparseDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.SparseDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) TridiagonalDoubleMatrix2D.assign(DoubleMatrix2D source) Replaces all cell values of the receiver with the values of another matrix.TridiagonalDoubleMatrix2D.assign(DoubleMatrix2D y, DoubleDoubleFunction function) protected booleanDenseDoubleMatrix2D.haveSharedCellsRaw(DoubleMatrix2D other) Returns true if both matrices share common cells.protected booleanSelectedDenseDoubleMatrix2D.haveSharedCellsRaw(DoubleMatrix2D other) Returns true if both matrices share common cells.protected booleanSelectedSparseDoubleMatrix2D.haveSharedCellsRaw(DoubleMatrix2D other) Returns true if both matrices share common cells.protected booleanSparseDoubleMatrix2D.haveSharedCellsRaw(DoubleMatrix2D other) Returns true if both matrices share common cells.voidDenseDoubleMatrix2D.zAssign8Neighbors(DoubleMatrix2D B, Double9Function function) 8 neighbor stencil transformation.DenseDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) RCDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) SparseDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) TridiagonalDoubleMatrix2D.zMult(DoubleMatrix2D B, DoubleMatrix2D C, double alpha, double beta, boolean transposeA, boolean transposeB) Constructors in cern.colt.matrix.impl with parameters of type DoubleMatrix2DModifierConstructorDescriptionDelegateDoubleMatrix1D(DoubleMatrix2D newContent, int row) WrapperDoubleMatrix2D(DoubleMatrix2D newContent) Constructs a matrix with a copy of the given values. -
Uses of DoubleMatrix2D in cern.colt.matrix.linalg
Fields in cern.colt.matrix.linalg declared as DoubleMatrix2DModifier and TypeFieldDescriptionprivate DoubleMatrix2DCholeskyDecomposition.LArray for internal storage of decomposition.protected DoubleMatrix2DLUDecompositionQuick.LUArray for internal storage of decomposition.private DoubleMatrix2DQRDecomposition.QRArray for internal storage of decomposition.Methods in cern.colt.matrix.linalg that return DoubleMatrix2DModifier and TypeMethodDescriptionEigenvalueDecomposition.getD()Returns the block diagonal eigenvalue matrix, D.QRDecomposition.getH()Returns the Householder vectors H.CholeskyDecomposition.getL()Returns the triangular factor, L.LUDecomposition.getL()Returns the lower triangular factor, L.LUDecompositionQuick.getL()Returns the lower triangular factor, L.LUDecompositionQuick.getLU()Returns a copy of the combined lower and upper triangular factor, LU.QRDecomposition.getQ()Generates and returns the (economy-sized) orthogonal factor Q.QRDecomposition.getR()Returns the upper triangular factor, R.SingularValueDecomposition.getS()Returns the diagonal matrix of singular values.LUDecomposition.getU()Returns the upper triangular factor, U.LUDecompositionQuick.getU()Returns the upper triangular factor, U.SingularValueDecomposition.getU()Returns the left singular vectors U.EigenvalueDecomposition.getV()Returns the eigenvector matrix, VSingularValueDecomposition.getV()Returns the right singular vectors V.Algebra.inverse(DoubleMatrix2D A) Returns the inverse or pseudo-inverse of matrix A.protected DoubleMatrix2DLUDecompositionQuick.lowerTriangular(DoubleMatrix2D A) Modifies the matrix to be a lower triangular matrix.Algebra.mult(DoubleMatrix2D A, DoubleMatrix2D B) Linear algebraic matrix-matrix multiplication; C = A x B.Algebra.multOuter(DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) Outer product of two vectors; Sets A[i,j] = x[i] * y[j].Algebra.permute(DoubleMatrix2D A, int[] rowIndexes, int[] columnIndexes) Constructs and returns a new row and column permuted selection view of matrix A; equivalent toDoubleMatrix2D.viewSelection(int[],int[]).Algebra.permuteColumns(DoubleMatrix2D A, int[] indexes, int[] work) Modifies the given matrix A such that it's columns are permuted as specified; Useful for pivoting.Algebra.permuteRows(DoubleMatrix2D A, int[] indexes, int[] work) Modifies the given matrix A such that it's rows are permuted as specified; Useful for pivoting.Algebra.pow(DoubleMatrix2D A, int p) Linear algebraic matrix power; B = Ak invalid input: '<'==> B = A*A*...*A.Algebra.solve(DoubleMatrix2D A, DoubleMatrix2D B) Solves A*X = B.CholeskyDecomposition.solve(DoubleMatrix2D B) Solves A*X = B; returns X.LUDecomposition.solve(DoubleMatrix2D B) Solves A*X = B.QRDecomposition.solve(DoubleMatrix2D B) Least squares solution of A*X = B; returns X.Algebra.solveTranspose(DoubleMatrix2D A, DoubleMatrix2D B) Solves X*A = B, which is also A'*X' = B'.protected DoubleMatrix2D[]Smp.splitBlockedNN(DoubleMatrix2D A, int threshold, long flops) protected DoubleMatrix2D[][]Smp.splitBlockedNN(DoubleMatrix2D A, DoubleMatrix2D B, int threshold, long flops) protected DoubleMatrix2D[]Smp.splitStridedNN(DoubleMatrix2D A, int threshold, long flops) private DoubleMatrix2DAlgebra.subMatrix(DoubleMatrix2D A, int[] rowIndexes, int columnFrom, int columnTo) Copies the columns of the indicated rows into a new sub matrix.private DoubleMatrix2DAlgebra.subMatrix(DoubleMatrix2D A, int rowFrom, int rowTo, int[] columnIndexes) Copies the rows of the indicated columns into a new sub matrix.Algebra.subMatrix(DoubleMatrix2D A, int fromRow, int toRow, int fromColumn, int toColumn) Constructs and returns a new sub-range view which is the sub matrix A[fromRow..toRow,fromColumn..toColumn].Algebra.transpose(DoubleMatrix2D A) Constructs and returns a new view which is the transposition of the given matrix A.protected DoubleMatrix2DAlgebra.trapezoidalLower(DoubleMatrix2D A) Modifies the matrix to be a lower trapezoidal matrix.protected DoubleMatrix2DLUDecompositionQuick.upperTriangular(DoubleMatrix2D A) Modifies the matrix to be an upper triangular matrix.private DoubleMatrix2DAlgebra.xmultOuter(DoubleMatrix1D x, DoubleMatrix1D y) Outer product of two vectors; Returns a matrix with A[i,j] = x[i] * y[j].private DoubleMatrix2DAlgebra.xpowSlow(DoubleMatrix2D A, int k) Linear algebraic matrix power; B = Ak invalid input: '<'==> B = A*A*...*A.private DoubleMatrix2DCholeskyDecomposition.XXXsolveBuggy(DoubleMatrix2D B) Solves A*X = B; returns X.Methods in cern.colt.matrix.linalg with parameters of type DoubleMatrix2DModifier and TypeMethodDescriptiondoubleMatrix2DMatrix2DFunction.apply(DoubleMatrix2D x, DoubleMatrix2D y) Applies a function to two arguments.voidBlas.assign(DoubleMatrix2D A, DoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col]).voidBlas.assign(DoubleMatrix2D x, DoubleMatrix2D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[row,col] = function(x[row,col],y[row,col]).voidSeqBlas.assign(DoubleMatrix2D A, DoubleFunction function) voidSeqBlas.assign(DoubleMatrix2D A, DoubleMatrix2D B, DoubleDoubleFunction function) voidSmpBlas.assign(DoubleMatrix2D A, DoubleFunction function) voidSmpBlas.assign(DoubleMatrix2D A, DoubleMatrix2D B, DoubleDoubleFunction function) voidProperty.checkRectangular(DoubleMatrix2D A) Checks whether the given matrix A is rectangular.voidProperty.checkSquare(DoubleMatrix2D A) Checks whether the given matrix A is square.private CholeskyDecompositionAlgebra.chol(DoubleMatrix2D matrix) Constructs and returns the cholesky-decomposition of the given matrix.doubleAlgebra.cond(DoubleMatrix2D A) Returns the condition of matrix A, which is the ratio of largest to smallest singular value.voidBlas.daxpy(double alpha, DoubleMatrix2D A, DoubleMatrix2D B) Combined matrix scaling; B = B + alpha*A.voidSeqBlas.daxpy(double alpha, DoubleMatrix2D A, DoubleMatrix2D B) voidSmpBlas.daxpy(double alpha, DoubleMatrix2D A, DoubleMatrix2D B) voidBlas.dcopy(DoubleMatrix2D A, DoubleMatrix2D B) Matrix assignment (copying); B = A.voidSeqBlas.dcopy(DoubleMatrix2D A, DoubleMatrix2D B) voidSmpBlas.dcopy(DoubleMatrix2D A, DoubleMatrix2D B) voidLUDecompositionQuick.decompose(DoubleMatrix2D A) Decomposes matrix A into L and U (in-place).voidLUDecompositionQuick.decompose(DoubleMatrix2D A, int semiBandwidth) Decomposes the banded and square matrix A into L and U (in-place).doubleProperty.density(DoubleMatrix2D A) Returns the matrix's fraction of non-zero cells; A.cardinality() / A.size().doubleAlgebra.det(DoubleMatrix2D A) Returns the determinant of matrix A.voidBlas.dgemm(boolean transposeA, boolean transposeB, double alpha, DoubleMatrix2D A, DoubleMatrix2D B, double beta, DoubleMatrix2D C) Generalized linear algebraic matrix-matrix multiply; C = alpha*A*B + beta*C.voidSeqBlas.dgemm(boolean transposeA, boolean transposeB, double alpha, DoubleMatrix2D A, DoubleMatrix2D B, double beta, DoubleMatrix2D C) voidSmpBlas.dgemm(boolean transposeA, boolean transposeB, double alpha, DoubleMatrix2D A, DoubleMatrix2D B, double beta, DoubleMatrix2D C) voidBlas.dgemv(boolean transposeA, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) Generalized linear algebraic matrix-vector multiply; y = alpha*A*x + beta*y.voidSeqBlas.dgemv(boolean transposeA, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) voidSmpBlas.dgemv(boolean transposeA, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) voidBlas.dger(double alpha, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) Performs a rank 1 update; A = A + alpha*x*y'.voidSeqBlas.dger(double alpha, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) voidSmpBlas.dger(double alpha, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) voidBlas.dscal(double alpha, DoubleMatrix2D A) Matrix scaling; A = alpha*A.voidSeqBlas.dscal(double alpha, DoubleMatrix2D A) voidSmpBlas.dscal(double alpha, DoubleMatrix2D A) voidBlas.dswap(DoubleMatrix2D x, DoubleMatrix2D y) Swaps the elements of two matrices; B invalid input: '<'==> A.voidSeqBlas.dswap(DoubleMatrix2D A, DoubleMatrix2D B) voidSmpBlas.dswap(DoubleMatrix2D A, DoubleMatrix2D B) voidBlas.dsymv(boolean isUpperTriangular, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) Symmetric matrix-vector multiplication; y = alpha*A*x + beta*y.voidSeqBlas.dsymv(boolean isUpperTriangular, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) voidSmpBlas.dsymv(boolean isUpperTriangular, double alpha, DoubleMatrix2D A, DoubleMatrix1D x, double beta, DoubleMatrix1D y) voidBlas.dtrmv(boolean isUpperTriangular, boolean transposeA, boolean isUnitTriangular, DoubleMatrix2D A, DoubleMatrix1D x) Triangular matrix-vector multiplication; x = A*x or x = A'*x.voidSeqBlas.dtrmv(boolean isUpperTriangular, boolean transposeA, boolean isUnitTriangular, DoubleMatrix2D A, DoubleMatrix1D x) voidSmpBlas.dtrmv(boolean isUpperTriangular, boolean transposeA, boolean isUnitTriangular, DoubleMatrix2D A, DoubleMatrix1D x) private EigenvalueDecompositionAlgebra.eig(DoubleMatrix2D matrix) Constructs and returns the Eigenvalue-decomposition of the given matrix.booleanProperty.equals(DoubleMatrix2D A, double value) Returns whether all cells of the given matrix A are equal to the given value.booleanProperty.equals(DoubleMatrix2D A, DoubleMatrix2D B) Returns whether both given matrices A and B are equal.voidProperty.generateNonSingular(DoubleMatrix2D A) Modifies the given matrix square matrix A such that it is diagonally dominant by row and column, hence non-singular, hence invertible.Algebra.inverse(DoubleMatrix2D A) Returns the inverse or pseudo-inverse of matrix A.static booleanDiagonal.inverse(DoubleMatrix2D A) Modifies A to hold its inverse.booleanProperty.isDiagonal(DoubleMatrix2D A) A matrix A is diagonal if A[i,j] == 0 whenever i != j.booleanProperty.isDiagonallyDominantByColumn(DoubleMatrix2D A) A matrix A is diagonally dominant by column if the absolute value of each diagonal element is larger than the sum of the absolute values of the off-diagonal elements in the corresponding column.booleanProperty.isDiagonallyDominantByRow(DoubleMatrix2D A) A matrix A is diagonally dominant by row if the absolute value of each diagonal element is larger than the sum of the absolute values of the off-diagonal elements in the corresponding row.booleanProperty.isIdentity(DoubleMatrix2D A) A matrix A is an identity matrix if A[i,i] == 1 and all other cells are zero.booleanProperty.isLowerBidiagonal(DoubleMatrix2D A) A matrix A is lower bidiagonal if A[i,j]==0 unless i==j || i==j+1.booleanProperty.isLowerTriangular(DoubleMatrix2D A) A matrix A is lower triangular if A[i,j]==0 whenever i < j.booleanProperty.isNonNegative(DoubleMatrix2D A) A matrix A is non-negative if A[i,j] >= 0 holds for all cells.protected booleanLUDecompositionQuick.isNonsingular(DoubleMatrix2D matrix) Returns whether the matrix is nonsingular.booleanProperty.isOrthogonal(DoubleMatrix2D A) A square matrix A is orthogonal if A*transpose(A) = I.booleanProperty.isPositive(DoubleMatrix2D A) A matrix A is positive if A[i,j] > 0 holds for all cells.booleanProperty.isSingular(DoubleMatrix2D A) A matrix A is singular if it has no inverse, that is, iff det(A)==0.booleanProperty.isSkewSymmetric(DoubleMatrix2D A) A square matrix A is skew-symmetric if A = -transpose(A), that is A[i,j] == -A[j,i].booleanProperty.isSquare(DoubleMatrix2D A) A matrix A is square if it has the same number of rows and columns.booleanProperty.isStrictlyLowerTriangular(DoubleMatrix2D A) A matrix A is strictly lower triangular if A[i,j]==0 whenever i <= j.booleanProperty.isStrictlyTriangular(DoubleMatrix2D A) A matrix A is strictly triangular if it is triangular and its diagonal elements all equal 0.booleanProperty.isStrictlyUpperTriangular(DoubleMatrix2D A) A matrix A is strictly upper triangular if A[i,j]==0 whenever i >= j.booleanProperty.isSymmetric(DoubleMatrix2D A) A matrix A is symmetric if A = tranpose(A), that is A[i,j] == A[j,i].booleanProperty.isTriangular(DoubleMatrix2D A) A matrix A is triangular iff it is either upper or lower triangular.booleanProperty.isTridiagonal(DoubleMatrix2D A) A matrix A is tridiagonal if A[i,j]==0 whenever Math.abs(i-j) > 1.booleanProperty.isUnitTriangular(DoubleMatrix2D A) A matrix A is unit triangular if it is triangular and its diagonal elements all equal 1.booleanProperty.isUpperBidiagonal(DoubleMatrix2D A) A matrix A is upper bidiagonal if A[i,j]==0 unless i==j || i==j-1.booleanProperty.isUpperTriangular(DoubleMatrix2D A) A matrix A is upper triangular if A[i,j]==0 whenever i > j.booleanProperty.isZero(DoubleMatrix2D A) A matrix A is zero if all its cells are zero.intProperty.lowerBandwidth(DoubleMatrix2D A) The lower bandwidth of a square matrix A is the maximum i-j for which A[i,j] is nonzero and i > j.protected DoubleMatrix2DLUDecompositionQuick.lowerTriangular(DoubleMatrix2D A) Modifies the matrix to be a lower triangular matrix.private LUDecompositionAlgebra.lu(DoubleMatrix2D matrix) Constructs and returns the LU-decomposition of the given matrix.Algebra.mult(DoubleMatrix2D A, DoubleMatrix1D y) Linear algebraic matrix-vector multiplication; z = A * y.Algebra.mult(DoubleMatrix2D A, DoubleMatrix2D B) Linear algebraic matrix-matrix multiplication; C = A x B.Algebra.multOuter(DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) Outer product of two vectors; Sets A[i,j] = x[i] * y[j].doubleAlgebra.norm1(DoubleMatrix2D A) Returns the one-norm of matrix A, which is the maximum absolute column sum.doubleAlgebra.norm2(DoubleMatrix2D A) Returns the two-norm of matrix A, which is the maximum singular value; obtained from SVD.doubleAlgebra.normF(DoubleMatrix2D A) Returns the Frobenius norm of matrix A, which is Sqrt(Sum(A[i,j]2)).doubleAlgebra.normInfinity(DoubleMatrix2D A) Returns the infinity norm of matrix A, which is the maximum absolute row sum.Algebra.permute(DoubleMatrix2D A, int[] rowIndexes, int[] columnIndexes) Constructs and returns a new row and column permuted selection view of matrix A; equivalent toDoubleMatrix2D.viewSelection(int[],int[]).Algebra.permuteColumns(DoubleMatrix2D A, int[] indexes, int[] work) Modifies the given matrix A such that it's columns are permuted as specified; Useful for pivoting.Algebra.permuteRows(DoubleMatrix2D A, int[] indexes, int[] work) Modifies the given matrix A such that it's rows are permuted as specified; Useful for pivoting.Algebra.pow(DoubleMatrix2D A, int p) Linear algebraic matrix power; B = Ak invalid input: '<'==> B = A*A*...*A.private QRDecompositionAlgebra.qr(DoubleMatrix2D matrix) Constructs and returns the QR-decomposition of the given matrix.intAlgebra.rank(DoubleMatrix2D A) Returns the effective numerical rank of matrix A, obtained from Singular Value Decomposition.protected voidSmp.run(DoubleMatrix2D[] blocksA, DoubleMatrix2D[] blocksB, double[] results, Matrix2DMatrix2DFunction function) protected double[]SmpBlas.run(DoubleMatrix2D A, boolean collectResults, Matrix2DMatrix2DFunction fun) protected double[]SmpBlas.run(DoubleMatrix2D A, DoubleMatrix2D B, boolean collectResults, Matrix2DMatrix2DFunction fun) intProperty.semiBandwidth(DoubleMatrix2D A) Returns the semi-bandwidth of the given square matrix A.voidLUDecompositionQuick.setLU(DoubleMatrix2D LU) Sets the combined lower and upper triangular factor, LU.Algebra.solve(DoubleMatrix2D A, DoubleMatrix2D B) Solves A*X = B.CholeskyDecomposition.solve(DoubleMatrix2D B) Solves A*X = B; returns X.LUDecomposition.solve(DoubleMatrix2D B) Solves A*X = B.voidLUDecompositionQuick.solve(DoubleMatrix2D B) Solves the system of equations A*X = B (in-place).QRDecomposition.solve(DoubleMatrix2D B) Least squares solution of A*X = B; returns X.private voidLUDecompositionQuick.solveOld(DoubleMatrix2D B) Solves A*X = B.Algebra.solveTranspose(DoubleMatrix2D A, DoubleMatrix2D B) Solves X*A = B, which is also A'*X' = B'.protected DoubleMatrix2D[]Smp.splitBlockedNN(DoubleMatrix2D A, int threshold, long flops) protected DoubleMatrix2D[][]Smp.splitBlockedNN(DoubleMatrix2D A, DoubleMatrix2D B, int threshold, long flops) protected DoubleMatrix2D[]Smp.splitStridedNN(DoubleMatrix2D A, int threshold, long flops) private DoubleMatrix2DAlgebra.subMatrix(DoubleMatrix2D A, int[] rowIndexes, int columnFrom, int columnTo) Copies the columns of the indicated rows into a new sub matrix.private DoubleMatrix2DAlgebra.subMatrix(DoubleMatrix2D A, int rowFrom, int rowTo, int[] columnIndexes) Copies the rows of the indicated columns into a new sub matrix.Algebra.subMatrix(DoubleMatrix2D A, int fromRow, int toRow, int fromColumn, int toColumn) Constructs and returns a new sub-range view which is the sub matrix A[fromRow..toRow,fromColumn..toColumn].private SingularValueDecompositionAlgebra.svd(DoubleMatrix2D matrix) Constructs and returns the SingularValue-decomposition of the given matrix.Algebra.toString(DoubleMatrix2D matrix) Returns a String with (propertyName, propertyValue) pairs.Property.toString(DoubleMatrix2D A) Returns summary information about the given matrix A.Algebra.toVerboseString(DoubleMatrix2D matrix) Returns the results of toString(A) and additionally the results of all sorts of decompositions applied to the given matrix.doubleAlgebra.trace(DoubleMatrix2D A) Returns the sum of the diagonal elements of matrix A; Sum(A[i,i]).Algebra.transpose(DoubleMatrix2D A) Constructs and returns a new view which is the transposition of the given matrix A.protected DoubleMatrix2DAlgebra.trapezoidalLower(DoubleMatrix2D A) Modifies the matrix to be a lower trapezoidal matrix.intProperty.upperBandwidth(DoubleMatrix2D A) The upper bandwidth of a square matrix A is the maximum j-i for which A[i,j] is nonzero and j > i.protected DoubleMatrix2DLUDecompositionQuick.upperTriangular(DoubleMatrix2D A) Modifies the matrix to be an upper triangular matrix.private DoubleMatrix2DAlgebra.xpowSlow(DoubleMatrix2D A, int k) Linear algebraic matrix power; B = Ak invalid input: '<'==> B = A*A*...*A.private doubleSmpBlas.xsum(DoubleMatrix2D A) private DoubleMatrix2DCholeskyDecomposition.XXXsolveBuggy(DoubleMatrix2D B) Solves A*X = B; returns X.Constructors in cern.colt.matrix.linalg with parameters of type DoubleMatrix2DModifierConstructorDescriptionConstructs and returns a new Cholesky decomposition object for a symmetric and positive definite matrix; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.Constructs and returns a new eigenvalue decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.Constructs and returns a new LU Decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.Constructs and returns a new QR decomposition object; computed by Householder reflections; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.Constructs and returns a new singular value decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object.