Uses of Class
de.labathome.trustconstr.matrix.DenseMatrix
Packages that use DenseMatrix
-
Uses of DenseMatrix in de.labathome.trustconstr
Fields in de.labathome.trustconstr declared as DenseMatrixModifier and TypeFieldDescriptionprotected DenseMatrixFullHessianUpdateStrategy.BHessian approximation (used whenapproxType == HESSIAN).protected DenseMatrixFullHessianUpdateStrategy.HInverse-Hessian approximation (used whenapproxType == INV_HESSIAN). -
Uses of DenseMatrix in de.labathome.trustconstr.matrix
Methods in de.labathome.trustconstr.matrix that return DenseMatrixModifier and TypeMethodDescriptionDenseMatrix.abs()DenseMatrix.absInPlace()In-place absolute value.static DenseMatrixDenseMatrix.column(double... v) DenseMatrix.copy()static DenseMatrixDenseMatrix.copyFromMatrix(Matrix m) Densify anyMatrix: ifmis already aDenseMatrix, return acopy(); otherwise materialise viagetAsDouble(long, long).static DenseMatrixDenseMatrix.Factory.copyFromMatrix(Matrix m) DenseMatrix.divide(double alpha) static DenseMatrixDenseMatrix.eye(int n) static DenseMatrixMatrix.Factory.eye(long rows, long cols) static DenseMatrixMatrix.Factory.fill(double v, long rows, long cols) static DenseMatrixDenseMatrix.fromColumnMajor(int rows, int cols, double[] data) Wrap an already-column-major buffer without copying.static DenseMatrixDenseMatrix.fromRows(double[][] rows) Repack a row-majordouble[][]into a fresh column-majorDenseMatrix.static DenseMatrixMatrix.Factory.importFromArray(double[] rowVec) Wrap a 1-D array as a1 x nrow matrix (the row-vector counterpart ofMatrix.Factory.linkToArray(double[])).static DenseMatrixMatrix.Factory.importFromArray(double[][] arr) Alias forMatrix.Factory.linkToArray(double[][]).static DenseMatrixMatrix.Factory.linkToArray(double[] colVec) Wrap a 1-D array as ann x 1column vector.static DenseMatrixMatrix.Factory.linkToArray(double[][] arr) static DenseMatrixMatrix.Factory.linkToArray(int[][] arr) int[][]input -- promoted todoublefor test fixtures.static DenseMatrixMatrix.Factory.ones(long[] size) static DenseMatrixMatrix.Factory.ones(long rows, long cols) QRResult.Q()Returns the value of theQrecord component.QRResult.R()Returns the value of theRrecord component.static DenseMatrixMatrix.Factory.randn(long rows, long cols) Random normal matrix with mean 0 and stddev 1.static DenseMatrixDenseMatrix.row(double... v) DenseMatrix.scaleInPlace(double alpha) In-place scaling.DenseMatrix.selectColumns(int... colsToKeep) Pick an arbitrary subset of columns into a freshDenseMatrix.DenseMatrix.selectRows(int... rowsToKeep) Pick an arbitrary subset of rows into a freshDenseMatrix.CholResult.solve(DenseMatrix rhs) static DenseMatrixLinAlg.solve(DenseMatrix A, DenseMatrix b) SolveA x = bvia LAPACKdgesv(general LU with partial pivoting).QRResult.solve(DenseMatrix rhs) Least-squares solve: returns then x pmatrixxthat minimises||A x - rhs||_2, whereA = Q Rwas the original input.DenseMatrix.subMatrix(int r0, int r1, int c0, int c1) Inclusive submatrix slicerows[r0..r1] x cols[c0..c1].DenseMatrix.times(double alpha) DenseMatrix.transpose()SVDResult.U()Returns the value of theUrecord component.static DenseMatrixVertical concatenation: stack the input matrices on top of each other.SVDResult.Vt()Returns the value of theVtrecord component.static DenseMatrixDenseMatrix.zeros(int rows, int cols) static DenseMatrixMatrix.Factory.zeros(long[] size) static DenseMatrixMatrix.Factory.zeros(long rows, long cols) Methods in de.labathome.trustconstr.matrix with parameters of type DenseMatrixModifier and TypeMethodDescriptionstatic CholResultLinAlg.cholesky(DenseMatrix A) Cholesky factorisation of an SPD matrix viadpotrf, upper triangle.static QRResultLinAlg.qr(DenseMatrix A) QR factorisation viadgeqrf+dorgqr.CholResult.solve(DenseMatrix rhs) static DenseMatrixLinAlg.solve(DenseMatrix A, DenseMatrix b) SolveA x = bvia LAPACKdgesv(general LU with partial pivoting).QRResult.solve(DenseMatrix rhs) Least-squares solve: returns then x pmatrixxthat minimises||A x - rhs||_2, whereA = Q Rwas the original input.static SVDResultLinAlg.svd(DenseMatrix A) Full SVD viadgesvd(jobu='A',jobvt='A'):A = U * diag(s) * V^T.static voidLinAlg.syr(DenseMatrix A, double alpha, double[] x) In-place rank-1 symmetric update:A := A + alpha x x^T.static voidLinAlg.syr2(DenseMatrix A, double alpha, double[] x, double[] y) In-place rank-2 symmetric update:A := A + alpha (x y^T + y x^T).Constructors in de.labathome.trustconstr.matrix with parameters of type DenseMatrixModifierConstructorDescriptionQRResult(DenseMatrix Q, DenseMatrix R) Creates an instance of aQRResultrecord class.SVDResult(DenseMatrix U, double[] s, DenseMatrix Vt) Creates an instance of aSVDResultrecord class.