Uses of Class
cern.colt.matrix.DoubleMatrix1D
Packages that use DoubleMatrix1D
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.
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 DoubleMatrix1D in cern.colt.matrix
Methods in cern.colt.matrix that return DoubleMatrix1DModifier and TypeMethodDescriptionDoubleFactory1D.append(DoubleMatrix1D A, DoubleMatrix1D B) C = A||B; Constructs a new matrix which is the concatenation of two other matrices.DoubleFactory1D.ascending(int size) Constructs a matrix with cells having ascending values.DoubleMatrix1D.assign(double value) Sets all cells to the state specified by value.DoubleMatrix1D.assign(double[] values) Sets all cells to the state specified by values.DoubleMatrix1D.assign(DoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i]).DoubleMatrix1D.assign(DoubleMatrix1D other) Replaces all cell values of the receiver with the values of another matrix.DoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).DoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function, IntArrayList nonZeroIndexes) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).DoubleMatrix1D.copy()Constructs and returns a deep copy of the receiver.DoubleFactory1D.descending(int size) Constructs a matrix with cells having descending values.DoubleFactory2D.diagonal(DoubleMatrix2D A) Constructs a new vector consisting of the diagonal elements of A.protected DoubleMatrix1DDoubleMatrix1D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.DoubleMatrix1D.like()Construct and returns a new empty matrix of the same dynamic type as the receiver, having the same size.abstract DoubleMatrix1DDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.abstract DoubleMatrix1DDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected abstract DoubleMatrix1DDoubleMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.DoubleFactory1D.make(double[] values) Constructs a matrix with the given cell values.DoubleFactory1D.make(int size) Constructs a matrix with the given shape, each cell initialized with zero.DoubleFactory1D.make(int size, double initialValue) Constructs a matrix with the given shape, each cell initialized with the given value.DoubleFactory1D.make(AbstractDoubleList values) Constructs a matrix from the values of the given list.DoubleFactory1D.make(DoubleMatrix1D[] parts) Constructs a matrix which is the concatenation of all given parts.protected DoubleMatrix1DDoubleFactory2D.make1D(int size) Constructs a 1d matrix of the right dynamic type.DoubleFactory1D.random(int size) Constructs a matrix with uniformly distributed values in (0,1) (exclusive).DoubleFactory1D.repeat(DoubleMatrix1D A, int repeat) C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.DoubleFactory1D.sample(int size, double value, double nonZeroFraction) Constructs a randomly sampled matrix with the given shape.protected DoubleMatrix1DDoubleMatrix1D.view()Constructs and returns a new view equal to the receiver.DoubleMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.DoubleMatrix1D.viewFlip()Constructs and returns a new flip view.DoubleMatrix1D.viewPart(int index, int width) Constructs and returns a new sub-range view that is a width sub matrix starting at index.DoubleMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.DoubleMatrix1D.viewSelection(int[] indexes) Constructs and returns a new selection view that is a matrix holding the indicated cells.DoubleMatrix1D.viewSelection(DoubleProcedure condition) Constructs and returns a new selection view that is a matrix holding the cells matching the given condition.protected abstract DoubleMatrix1DDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.DoubleMatrix1D.viewSorted()Sorts the vector into ascending order, according to the natural ordering.DoubleMatrix1D.viewStrides(int stride) Constructs and returns a new stride view which is a sub matrix consisting of every i-th cell.DoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z) Linear algebraic matrix-vector multiplication; z = A * y; Equivalent to return A.zMult(y,z,1,0);DoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) Linear algebraic matrix-vector multiplication; z = alpha * A * y + beta*z.Methods in cern.colt.matrix with parameters of type DoubleMatrix1DModifier and TypeMethodDescriptiondoubleDoubleMatrix1D.aggregate(DoubleMatrix1D other, DoubleDoubleFunction aggr, DoubleDoubleFunction f) Applies a function to each corresponding cell of two matrices and aggregates the results.DoubleFactory1D.append(DoubleMatrix1D A, DoubleMatrix1D B) C = A||B; Constructs a new matrix which is the concatenation of two other matrices.booleanDoubleMatrix1DProcedure.apply(DoubleMatrix1D element) Applies a procedure to an argument.DoubleMatrix1D.assign(DoubleMatrix1D other) Replaces all cell values of the receiver with the values of another matrix.DoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).DoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function, IntArrayList nonZeroIndexes) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).DoubleFactory2D.diagonal(DoubleMatrix1D vector) Constructs a new diagonal matrix whose diagonal elements are the elements of vector.protected booleanDoubleMatrix1D.haveSharedCells(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanDoubleMatrix1D.haveSharedCellsRaw(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.DoubleFactory1D.make(DoubleMatrix1D[] parts) Constructs a matrix which is the concatenation of all given parts.DoubleFactory1D.repeat(DoubleMatrix1D A, int repeat) C = A||A||..||A; Constructs a new matrix which is concatenated repeat times.voidDoubleMatrix1D.swap(DoubleMatrix1D other) Swaps each element this[i] with other[i].DoubleFactory1D.toList(DoubleMatrix1D values) Constructs a list from the given matrix.doubleDoubleMatrix1D.zDotProduct(DoubleMatrix1D y) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).doubleDoubleMatrix1D.zDotProduct(DoubleMatrix1D y, int from, int length) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).doubleDoubleMatrix1D.zDotProduct(DoubleMatrix1D y, int from, int length, IntArrayList nonZeroIndexes) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).protected doubleDoubleMatrix1D.zDotProduct(DoubleMatrix1D y, IntArrayList nonZeroIndexes) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).DoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z) Linear algebraic matrix-vector multiplication; z = A * y; Equivalent to return A.zMult(y,z,1,0);DoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) Linear algebraic matrix-vector multiplication; z = alpha * A * y + beta*z. -
Uses of DoubleMatrix1D in cern.colt.matrix.doublealgo
Methods in cern.colt.matrix.doublealgo that return DoubleMatrix1DModifier and TypeMethodDescriptionstatic DoubleMatrix1DTransform.abs(DoubleMatrix1D A) Deprecated.A[i] = Math.abs(A[i]).static DoubleMatrix1DTransform.div(DoubleMatrix1D A, double s) Deprecated.A = A / s invalid input: '<'=> A[i] = A[i] / s.static DoubleMatrix1DTransform.div(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A / B invalid input: '<'=> A[i] = A[i] / B[i].static DoubleMatrix1DTransform.minus(DoubleMatrix1D A, double s) Deprecated.A = A - s invalid input: '<'=> A[i] = A[i] - s.static DoubleMatrix1DTransform.minus(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A - B invalid input: '<'=> A[i] = A[i] - B[i].static DoubleMatrix1DTransform.minusMult(DoubleMatrix1D A, DoubleMatrix1D B, double s) Deprecated.A = A - B*s invalid input: '<'=> A[i] = A[i] - B[i]*s.static DoubleMatrix1DTransform.mult(DoubleMatrix1D A, double s) Deprecated.A = A * s invalid input: '<'=> A[i] = A[i] * s.static DoubleMatrix1DTransform.mult(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A * B invalid input: '<'=> A[i] = A[i] * B[i].static DoubleMatrix1DTransform.negate(DoubleMatrix1D A) Deprecated.A = -A invalid input: '<'=> A[i] = -A[i] for all cells.static DoubleMatrix1DTransform.plus(DoubleMatrix1D A, double s) Deprecated.A = A + s invalid input: '<'=> A[i] = A[i] + s.static DoubleMatrix1DTransform.plus(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A + B invalid input: '<'=> A[i] = A[i] + B[i].static DoubleMatrix1DTransform.plusMult(DoubleMatrix1D A, DoubleMatrix1D B, double s) Deprecated.A = A + B*sinvalid input: '<'=> A[i] = A[i] + B[i]*s.static DoubleMatrix1DTransform.pow(DoubleMatrix1D A, double s) Deprecated.A = As invalid input: '<'=> A[i] = Math.pow(A[i], s).static DoubleMatrix1DTransform.pow(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = AB invalid input: '<'=> A[i] = Math.pow(A[i], B[i]).Sorting.sort(DoubleMatrix1D vector) Sorts the vector into ascending order, according to the natural ordering.Sorting.sort(DoubleMatrix1D vector, DoubleComparator c) Sorts the vector into ascending order, according to the order induced by the specified comparator.static DoubleMatrix1DStatistic.viewSample(DoubleMatrix1D matrix, double fraction, RandomEngine randomGenerator) Constructs and returns a sampling view with a size of round(matrix.size() * fraction).Methods in cern.colt.matrix.doublealgo with parameters of type DoubleMatrix1DModifier and TypeMethodDescriptionstatic DoubleMatrix1DTransform.abs(DoubleMatrix1D A) Deprecated.A[i] = Math.abs(A[i]).doubleStatistic.VectorVectorFunction.apply(DoubleMatrix1D x, DoubleMatrix1D y) Applies a function to two argument vectors.static DynamicBin1DStatistic.bin(DoubleMatrix1D vector) Fills all cell values of the given vector into a bin from which statistics measures can be retrieved efficiently.intDoubleMatrix1DComparator.compare(DoubleMatrix1D o1, DoubleMatrix1D o2) Compares its two arguments for order.static IHistogram2DStatistic.cube(DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix1D weights) 2-d OLAP cube operator; Fills all cells of the given vectors into the given histogram.static IHistogram3DStatistic.cube(DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix1D z, DoubleMatrix1D weights) 3-d OLAP cube operator; Fills all cells of the given vectors into the given histogram.static DoubleMatrix1DTransform.div(DoubleMatrix1D A, double s) Deprecated.A = A / s invalid input: '<'=> A[i] = A[i] / s.static DoubleMatrix1DTransform.div(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A / B invalid input: '<'=> A[i] = A[i] / B[i].protected StringFormatter.form(DoubleMatrix1D matrix, int index, Former formatter) Converts a given cell to a String; no alignment considered.static IHistogram1DStatistic.histogram(IHistogram1D histo, DoubleMatrix1D vector) Fills all cells of the given vector into the given histogram.static IHistogram2DStatistic.histogram(IHistogram2D histo, DoubleMatrix1D x, DoubleMatrix1D y) Fills all cells of the given vectors into the given histogram.static IHistogram2DStatistic.histogram(IHistogram2D histo, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix1D weights) Fills all cells of the given vectors into the given histogram.static IHistogram3DStatistic.histogram(IHistogram3D histo, DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix1D z, DoubleMatrix1D weights) Fills all cells of the given vectors into the given histogram.static DoubleMatrix1DTransform.minus(DoubleMatrix1D A, double s) Deprecated.A = A - s invalid input: '<'=> A[i] = A[i] - s.static DoubleMatrix1DTransform.minus(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A - B invalid input: '<'=> A[i] = A[i] - B[i].static DoubleMatrix1DTransform.minusMult(DoubleMatrix1D A, DoubleMatrix1D B, double s) Deprecated.A = A - B*s invalid input: '<'=> A[i] = A[i] - B[i]*s.static DoubleMatrix1DTransform.mult(DoubleMatrix1D A, double s) Deprecated.A = A * s invalid input: '<'=> A[i] = A[i] * s.static DoubleMatrix1DTransform.mult(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A * B invalid input: '<'=> A[i] = A[i] * B[i].static DoubleMatrix1DTransform.negate(DoubleMatrix1D A) Deprecated.A = -A invalid input: '<'=> A[i] = -A[i] for all cells.static DoubleMatrix1DTransform.plus(DoubleMatrix1D A, double s) Deprecated.A = A + s invalid input: '<'=> A[i] = A[i] + s.static DoubleMatrix1DTransform.plus(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = A + B invalid input: '<'=> A[i] = A[i] + B[i].static DoubleMatrix1DTransform.plusMult(DoubleMatrix1D A, DoubleMatrix1D B, double s) Deprecated.A = A + B*sinvalid input: '<'=> A[i] = A[i] + B[i]*s.static DoubleMatrix1DTransform.pow(DoubleMatrix1D A, double s) Deprecated.A = As invalid input: '<'=> A[i] = Math.pow(A[i], s).static DoubleMatrix1DTransform.pow(DoubleMatrix1D A, DoubleMatrix1D B) Deprecated.A = AB invalid input: '<'=> A[i] = Math.pow(A[i], B[i]).Sorting.sort(DoubleMatrix1D vector) Sorts the vector into ascending order, according to the natural ordering.Sorting.sort(DoubleMatrix1D vector, DoubleComparator c) Sorts the vector into ascending order, according to the order induced by the specified comparator.Formatter.toSourceCode(DoubleMatrix1D matrix) Returns a string s such that Object[] m = s is a legal Java statement.Formatter.toString(DoubleMatrix1D matrix) Returns a string representation of the given matrix.static DoubleMatrix1DStatistic.viewSample(DoubleMatrix1D matrix, double fraction, RandomEngine randomGenerator) Constructs and returns a sampling view with a size of round(matrix.size() * fraction).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 DoubleMatrix1D in cern.colt.matrix.impl
Subclasses of DoubleMatrix1D in cern.colt.matrix.implModifier and TypeClassDescription(package private) class1-d matrix holding double elements; either a view wrapping another 2-d matrix and therefore delegating calls to it.classDense 1-d matrix (aka vector) holding double elements.(package private) classSelection view on dense 1-d matrices holding double elements.(package private) classSelection view on sparse 1-d matrices holding double elements.classSparse hashed 1-d matrix (aka vector) holding double elements.(package private) class1-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 DoubleMatrix1DMethods in cern.colt.matrix.impl that return DoubleMatrix1DModifier and TypeMethodDescriptionDenseDoubleMatrix1D.assign(double value) Sets all cells to the state specified by value.DenseDoubleMatrix1D.assign(double[] values) Sets all cells to the state specified by values.DenseDoubleMatrix1D.assign(DoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i]).DenseDoubleMatrix1D.assign(DoubleMatrix1D source) Replaces all cell values of the receiver with the values of another matrix.DenseDoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).SparseDoubleMatrix1D.assign(double value) Sets all cells to the state specified by value.protected DoubleMatrix1DWrapperDoubleMatrix1D.getContent()Returns the content of this matrix if it is a wrapper; or this otherwise.DelegateDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.DenseDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SelectedDenseDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SelectedSparseDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.SparseDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.WrapperDoubleMatrix1D.like(int size) Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size.DenseDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix1DDenseDoubleMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.RCDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.RCMDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.SelectedDenseDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix1DSelectedDenseDoubleMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SelectedSparseDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix1DSelectedSparseDoubleMatrix2D.like1D(int size, int zero, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SparseDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix1DSparseDoubleMatrix2D.like1D(int size, int offset, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.TridiagonalDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.WrapperDoubleMatrix2D.like1D(int size) Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.protected DoubleMatrix1DWrapperDoubleMatrix2D.like1D(int size, int offset, int stride) Construct and returns a new 1-d matrix of the corresponding dynamic type, sharing the same cells.SelectedDenseDoubleMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.SelectedSparseDoubleMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.WrapperDoubleMatrix2D.viewColumn(int column) Constructs and returns a new slice view representing the rows of the given column.WrapperDoubleMatrix1D.viewFlip()Constructs and returns a new flip view.WrapperDoubleMatrix1D.viewPart(int index, int width) Constructs and returns a new sub-range view that is a width sub matrix starting at index.SelectedDenseDoubleMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.SelectedSparseDoubleMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.WrapperDoubleMatrix2D.viewRow(int row) Constructs and returns a new slice view representing the columns of the given row.WrapperDoubleMatrix1D.viewSelection(int[] indexes) Constructs and returns a new selection view that is a matrix holding the indicated cells.protected DoubleMatrix1DDenseDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected DoubleMatrix1DSelectedDenseDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected DoubleMatrix1DSelectedSparseDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected DoubleMatrix1DSparseDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.protected DoubleMatrix1DWrapperDoubleMatrix1D.viewSelectionLike(int[] offsets) Construct and returns a new selection view.WrapperDoubleMatrix1D.viewStrides(int _stride) Constructs and returns a new stride view which is a sub matrix consisting of every i-th cell.DenseDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) RCDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) SparseDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) TridiagonalDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) Methods in cern.colt.matrix.impl with parameters of type DoubleMatrix1DModifier and TypeMethodDescriptionDenseDoubleMatrix1D.assign(DoubleMatrix1D source) Replaces all cell values of the receiver with the values of another matrix.DenseDoubleMatrix1D.assign(DoubleMatrix1D y, DoubleDoubleFunction function) Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).protected booleanDenseDoubleMatrix1D.haveSharedCellsRaw(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSelectedDenseDoubleMatrix1D.haveSharedCellsRaw(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSelectedSparseDoubleMatrix1D.haveSharedCellsRaw(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.protected booleanSparseDoubleMatrix1D.haveSharedCellsRaw(DoubleMatrix1D other) Returns true if both matrices share at least one identical cell.voidDenseDoubleMatrix1D.swap(DoubleMatrix1D other) Swaps each element this[i] with other[i].doubleDenseDoubleMatrix1D.zDotProduct(DoubleMatrix1D y, int from, int length) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).DenseDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) RCDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) protected voidRCMDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, IntArrayList nonZeroIndexes, DoubleMatrix1D[] allRows, double alpha, double beta) Linear algebraic matrix-vector multiplication; z = A * y.SparseDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) TridiagonalDoubleMatrix2D.zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) Constructors in cern.colt.matrix.impl with parameters of type DoubleMatrix1D -
Uses of DoubleMatrix1D in cern.colt.matrix.linalg
Fields in cern.colt.matrix.linalg declared as DoubleMatrix1DModifier and TypeFieldDescriptionprivate DoubleMatrix1DQRDecomposition.RdiagArray for internal storage of diagonal of R.Methods in cern.colt.matrix.linalg that return DoubleMatrix1DModifier and TypeMethodDescriptionEigenvalueDecomposition.getImagEigenvalues()Returns the imaginary parts of the eigenvalues.EigenvalueDecomposition.getRealEigenvalues()Returns the real parts of the eigenvalues.Algebra.mult(DoubleMatrix2D A, DoubleMatrix1D y) Linear algebraic matrix-vector multiplication; z = A * y.Algebra.permute(DoubleMatrix1D A, int[] indexes, double[] work) Modifies the given vector A such that it is permuted as specified; Useful for pivoting.Methods in cern.colt.matrix.linalg with parameters of type DoubleMatrix1DModifier and TypeMethodDescriptiondoubleBlas.dasum(DoubleMatrix1D x) Returns the sum of absolute values; |x[0]| + |x[1]| + ...doubleSeqBlas.dasum(DoubleMatrix1D x) doubleSmpBlas.dasum(DoubleMatrix1D x) voidBlas.daxpy(double alpha, DoubleMatrix1D x, DoubleMatrix1D y) Combined vector scaling; y = y + alpha*x.voidSeqBlas.daxpy(double alpha, DoubleMatrix1D x, DoubleMatrix1D y) voidSmpBlas.daxpy(double alpha, DoubleMatrix1D x, DoubleMatrix1D y) voidBlas.dcopy(DoubleMatrix1D x, DoubleMatrix1D y) Vector assignment (copying); y = x.voidSeqBlas.dcopy(DoubleMatrix1D x, DoubleMatrix1D y) voidSmpBlas.dcopy(DoubleMatrix1D x, DoubleMatrix1D y) doubleBlas.ddot(DoubleMatrix1D x, DoubleMatrix1D y) Returns the dot product of two vectors x and y, which is Sum(x[i]*y[i]).doubleSeqBlas.ddot(DoubleMatrix1D x, DoubleMatrix1D y) doubleSmpBlas.ddot(DoubleMatrix1D x, DoubleMatrix1D y) 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) doubleBlas.dnrm2(DoubleMatrix1D x) Return the 2-norm; sqrt(x[0]^2 + x[1]^2 + ...).doubleSeqBlas.dnrm2(DoubleMatrix1D x) doubleSmpBlas.dnrm2(DoubleMatrix1D x) voidBlas.drot(DoubleMatrix1D x, DoubleMatrix1D y, double c, double s) Applies a givens plane rotation to (x,y); x = c*x + s*y; y = c*y - s*x.voidSeqBlas.drot(DoubleMatrix1D x, DoubleMatrix1D y, double c, double s) voidSmpBlas.drot(DoubleMatrix1D x, DoubleMatrix1D y, double c, double s) voidBlas.dscal(double alpha, DoubleMatrix1D x) Vector scaling; x = alpha*x.voidSeqBlas.dscal(double alpha, DoubleMatrix1D x) voidSmpBlas.dscal(double alpha, DoubleMatrix1D x) voidBlas.dswap(DoubleMatrix1D x, DoubleMatrix1D y) Swaps the elements of two vectors; y invalid input: '<'==> x.voidSeqBlas.dswap(DoubleMatrix1D x, DoubleMatrix1D y) voidSmpBlas.dswap(DoubleMatrix1D x, DoubleMatrix1D y) 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) booleanProperty.equals(DoubleMatrix1D A, double value) Returns whether all cells of the given matrix A are equal to the given value.booleanProperty.equals(DoubleMatrix1D A, DoubleMatrix1D B) Returns whether both given matrices A and B are equal.intBlas.idamax(DoubleMatrix1D x) Returns the index of largest absolute value; i such that |x[i]| == max(|x[0]|,|x[1]|,...)..intSeqBlas.idamax(DoubleMatrix1D x) intSmpBlas.idamax(DoubleMatrix1D x) doubleAlgebra.mult(DoubleMatrix1D x, DoubleMatrix1D y) Inner product of two vectors; Sum(x[i] * y[i]).Algebra.mult(DoubleMatrix2D A, DoubleMatrix1D y) Linear algebraic matrix-vector multiplication; z = A * y.Algebra.multOuter(DoubleMatrix1D x, DoubleMatrix1D y, DoubleMatrix2D A) Outer product of two vectors; Sets A[i,j] = x[i] * y[j].doubleAlgebra.norm1(DoubleMatrix1D x) Returns the one-norm of vector x, which is Sum(abs(x[i])).doubleAlgebra.norm2(DoubleMatrix1D x) Returns the two-norm (aka euclidean norm) of vector x; equivalent to mult(x,x).doubleAlgebra.normInfinity(DoubleMatrix1D x) Returns the infinity norm of vector x, which is Max(abs(x[i])).Algebra.permute(DoubleMatrix1D A, int[] indexes, double[] work) Modifies the given vector A such that it is permuted as specified; Useful for pivoting.voidLUDecompositionQuick.solve(DoubleMatrix1D B) Solves the system of equations A*X = B (in-place).private DoubleMatrix2DAlgebra.xmultOuter(DoubleMatrix1D x, DoubleMatrix1D y) Outer product of two vectors; Returns a matrix with A[i,j] = x[i] * y[j].