Uses of Class
org.jblas.DoubleMatrix
Packages that use DoubleMatrix
Package
Description
Main linear algebra package.
Provide ways to specify indices ranges.
Support classes for jBLAS.
-
Uses of DoubleMatrix in org.jblas
Fields in org.jblas declared as DoubleMatrixMethods in org.jblas that return DoubleMatrixModifier and TypeMethodDescriptionstatic DoubleMatrix
MatrixFunctions.abs
(DoubleMatrix x) Returns a copy of this matrix where all elements are set to their absolute values.static DoubleMatrix
MatrixFunctions.absi
(DoubleMatrix x) Sets all elements in this matrix to their absolute values.static DoubleMatrix
MatrixFunctions.acos
(DoubleMatrix x) Returns a copy of this matrix where the trigonometric acos function is applied element wise.static DoubleMatrix
MatrixFunctions.acosi
(DoubleMatrix x) Applies the trigonometric arccosine function element wise on this matrix.DoubleMatrix.add
(double v) Add a scalar.DoubleMatrix.add
(DoubleMatrix other) Add a matrix.DoubleMatrix.addColumnVector
(DoubleMatrix x) Add a vector to all columns of the matrix.DoubleMatrix.addi
(double v) Add a scalar (in place).DoubleMatrix.addi
(double v, DoubleMatrix result) Add a scalar to a matrix (in-place).DoubleMatrix.addi
(DoubleMatrix other) Add a matrix (in place).DoubleMatrix.addi
(DoubleMatrix other, DoubleMatrix result) Add two matrices (in-place).DoubleMatrix.addiColumnVector
(DoubleMatrix x) Add a vector to all columns of the matrix (in-place).DoubleMatrix.addiRowVector
(DoubleMatrix x) Add a row vector to all rows of the matrix (in place).DoubleMatrix.addRowVector
(DoubleMatrix x) Add a row to all rows of the matrix.DoubleMatrix.and
(double value) Compute elementwise logical and against a scalar.DoubleMatrix.and
(DoubleMatrix other) Compute elementwise logical and.DoubleMatrix.andi
(double value) Compute elementwise logical and against a scalar (in-place).DoubleMatrix.andi
(double value, DoubleMatrix result) Compute elementwise logical and against a scalar (in-place).DoubleMatrix.andi
(DoubleMatrix other) Compute elementwise logical and (in-place).DoubleMatrix.andi
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical and (in-place).static DoubleMatrix
MatrixFunctions.asin
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.asini
(DoubleMatrix x) Applies the trigonometric arcsine function element wise on this matrix.static DoubleMatrix
MatrixFunctions.atan
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.atani
(DoubleMatrix x) Applies the trigonometric arctangend function element wise on this matrix.static DoubleMatrix
SimpleBlas.axpy
(double da, DoubleMatrix dx, DoubleMatrix dy) Compute y <- alpha * x + y (elementwise addition)static DoubleMatrix
MatrixFunctions.cbrt
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.cbrti
(DoubleMatrix x) Applies the cube root function element wise on this matrix.static DoubleMatrix
MatrixFunctions.ceil
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.ceili
(DoubleMatrix x) Element-wise round up by applying the ceil function on each element.static DoubleMatrix
Geometry.center
(DoubleMatrix x) Center a vector (subtract mean from all elements (in-place).static DoubleMatrix
Geometry.centerColumns
(DoubleMatrix x) Center the columns of a matrix (in-place).static DoubleMatrix
Geometry.centerRows
(DoubleMatrix x) Center the rows of a matrix (in-place).static DoubleMatrix
Decompose.cholesky
(DoubleMatrix A) Compute Cholesky decomposition of ADoubleMatrix.columnMaxs()
Return column-wise maximums.DoubleMatrix.columnMeans()
Return a vector containing the means of all columns.DoubleMatrix.columnMins()
Return column-wise minimums.DoubleMatrix.columnSums()
Return a vector containing the sums of the columns (having number of columns many entries)static DoubleMatrix
DoubleMatrix.concatHorizontally
(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices horizontally.static DoubleMatrix
DoubleMatrix.concatVertically
(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices vertically.ConvertsToDoubleMatrix.convertToDoubleMatrix()
DoubleMatrix.ColumnsAsListView.convertToDoubleMatrix()
DoubleMatrix.ElementsAsListView.convertToDoubleMatrix()
DoubleMatrix.RowsAsListView.convertToDoubleMatrix()
DoubleMatrix.copy
(DoubleMatrix a) Copy DoubleMatrix a to this.static DoubleMatrix
SimpleBlas.copy
(DoubleMatrix x, DoubleMatrix y) Compute y <- x (copy a matrix)static DoubleMatrix
MatrixFunctions.cos
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.cosh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.coshi
(DoubleMatrix x) Applies the hyperbolic cosine function element-wise on this matrix.static DoubleMatrix
MatrixFunctions.cosi
(DoubleMatrix x) Applies the cosine function element-wise on this matrix.DoubleMatrix.cumulativeSum()
Computes the cumulative sum, that is, the sum of all elements of the matrix up to a given index in linear addressing.DoubleMatrix.cumulativeSumi()
Computes the cumulative sum, that is, the sum of all elements of the matrix up to a given index in linear addressing (in-place).DoubleMatrix.diag()
Returns the diagonal of the matrix.static DoubleMatrix
DoubleMatrix.diag
(DoubleMatrix x) Creates a new matrix where the values of the given vector are the diagonal values of the matrix.static DoubleMatrix
DoubleMatrix.diag
(DoubleMatrix x, int rows, int columns) Construct a matrix of arbitrary shape and set the diagonal according to a passed vector.DoubleMatrix.div
(double v) Elementwise divide by a scalar.DoubleMatrix.div
(DoubleMatrix other) Elementwise divide by a matrix.DoubleMatrix.divColumnVector
(DoubleMatrix x) DoubleMatrix.divi
(double v) Elementwise divide by a scalar (in place).DoubleMatrix.divi
(double a, DoubleMatrix result) Elementwise division with a scalar (in-place).DoubleMatrix.divi
(DoubleMatrix other) Elementwise divide by a matrix (in place).DoubleMatrix.divi
(DoubleMatrix other, DoubleMatrix result) Elementwise division (in-place).DoubleMatrix.diviColumnVector
(DoubleMatrix x) DoubleMatrix.diviRowVector
(DoubleMatrix x) DoubleMatrix.divRowVector
(DoubleMatrix x) DoubleMatrix.dup()
Returns a duplicate of this matrix.DoubleMatrix.eq
(double value) test for equality against a scalar.DoubleMatrix.eq
(DoubleMatrix other) Test for equality.DoubleMatrix.eqi
(double value) Test for equality against a scalar (in-place).DoubleMatrix.eqi
(double value, DoubleMatrix result) Test for equality against a scalar (in-place).DoubleMatrix.eqi
(DoubleMatrix other) Test for equality (in-place).DoubleMatrix.eqi
(DoubleMatrix other, DoubleMatrix result) Test for equality (in-place).static DoubleMatrix
MatrixFunctions.exp
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.expi
(DoubleMatrix x) Applies the exponential function element-wise on this matrix.static DoubleMatrix
MatrixFunctions.expm
(DoubleMatrix A) Calculate matrix exponential of a square matrix.static DoubleMatrix
DoubleMatrix.eye
(int n) Construct a new n-by-n identity matrix.DoubleMatrix.fill
(double value) Set all elements to a value.static DoubleMatrix
MatrixFunctions.floatToDouble
(FloatMatrix fm) static DoubleMatrix
MatrixFunctions.floor
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.floori
(DoubleMatrix x) Element-wise round down by applying the floor function on each element.static DoubleMatrix[]
Singular.fullSVD
(DoubleMatrix A) Compute a singular-value decomposition of A.DoubleMatrix.ge
(double value) test for "greater than or equal" against a scalar.DoubleMatrix.ge
(DoubleMatrix other) Test for "greater than or equal".DoubleMatrix.gei
(double value) Test for "greater than or equal" against a scalar (in-place).DoubleMatrix.gei
(double value, DoubleMatrix result) Test for "greater than or equal" against a scalar (in-place).DoubleMatrix.gei
(DoubleMatrix other) Test for "greater than or equal" (in-place).DoubleMatrix.gei
(DoubleMatrix other, DoubleMatrix result) Test for "greater than or equal" (in-place).static DoubleMatrix
SimpleBlas.gemm
(double alpha, DoubleMatrix a, DoubleMatrix b, double beta, DoubleMatrix c) Compute c <- a*b + beta * c (general matrix matrix multiplication)static DoubleMatrix
SimpleBlas.gemv
(double alpha, DoubleMatrix a, DoubleMatrix x, double beta, DoubleMatrix y) Compute y <- alpha*op(a)*x + beta * y (general matrix vector multiplication)static DoubleMatrix
SimpleBlas.ger
(double alpha, DoubleMatrix x, DoubleMatrix y, DoubleMatrix a) Compute A <- alpha * x * y^T + A (general rank-1 update)static DoubleMatrix
SimpleBlas.gesv
(DoubleMatrix a, int[] ipiv, DoubleMatrix b) LAPACKDoubleMatrix.ColumnsAsListView.get
(int index) DoubleMatrix.get
(int[] indices) Get all elements specified by the linear indices.DoubleMatrix.get
(int[] indices, int c) Get all elements for a given column and the specified rows.DoubleMatrix.get
(int[] rindices, int[] cindices) Get all elements from the specified rows and columns.DoubleMatrix.get
(int r, int[] indices) Get all elements for a given row and the specified columns.DoubleMatrix.get
(int r, DoubleMatrix indices) Get elements from a row and columns as specified by the non-zero entries of a matrix.DoubleMatrix.get
(DoubleMatrix indices) Get elements specified by the non-zero entries of the passed matrix.DoubleMatrix.get
(DoubleMatrix indices, int c) Get elements from a column and rows as specified by the non-zero entries of a matrix.DoubleMatrix.get
(DoubleMatrix rindices, DoubleMatrix cindices) Get elements from columns and rows as specified by the non-zero entries of the passed matrices.Get elements from specified rows and columns.DoubleMatrix.RowsAsListView.get
(int index) DoubleMatrix.getColumn
(int c) Get a copy of a column.DoubleMatrix.getColumn
(int c, DoubleMatrix result) Copy a column to the given vector.DoubleMatrix.getColumnRange
(int r, int a, int b) Get elements from a row and columns a to b.DoubleMatrix.getColumns
(int[] cindices) Get whole columns from the passed indices.DoubleMatrix.getColumns
(DoubleMatrix cindices) Get whole columns as specified by the non-zero entries of a matrix.DoubleMatrix.getColumns
(Range indices) DoubleMatrix.getColumns
(Range indices, DoubleMatrix result) Get whole columns as specified by Range.DoubleMatrix.getRange
(int a, int b) Return all elements with linear index a, a + 1, ..., b - 1.DoubleMatrix.getRange
(int ra, int rb, int ca, int cb) Get elements from rows ra to rb and columns ca to cb.ComplexDoubleMatrix.getReal()
DoubleMatrix.getRow
(int r) Get a copy of a row.DoubleMatrix.getRow
(int r, DoubleMatrix result) Copy a row to a given vector.DoubleMatrix.getRowRange
(int a, int b, int c) Get elements from a column and rows a to b.DoubleMatrix.getRows
(int[] rindices) Get whole rows from the passed indices.DoubleMatrix.getRows
(DoubleMatrix rindices) Get whole rows as specified by the non-zero entries of a matrix.DoubleMatrix.getRows
(Range indices, DoubleMatrix result) DoubleMatrix.gt
(double value) test for "greater than" against a scalar.DoubleMatrix.gt
(DoubleMatrix other) Test for "greater than".DoubleMatrix.gti
(double value) Test for "greater than" against a scalar (in-place).DoubleMatrix.gti
(double value, DoubleMatrix result) Test for "greater than" against a scalar (in-place).DoubleMatrix.gti
(DoubleMatrix other) Test for "greater than" (in-place).DoubleMatrix.gti
(DoubleMatrix other, DoubleMatrix result) Test for "greater than" (in-place).ComplexDoubleMatrix.imag()
Get imaginary part of the matrix.DoubleMatrix.isInfinite()
DoubleMatrix.isInfinitei()
DoubleMatrix.isNaN()
DoubleMatrix.isNaNi()
DoubleMatrix.le
(double value) test for "less than or equal" against a scalar.DoubleMatrix.le
(DoubleMatrix other) Test for "less than or equal".DoubleMatrix.lei
(double value) Test for "less than or equal" against a scalar (in-place).DoubleMatrix.lei
(double value, DoubleMatrix result) Test for "less than or equal" against a scalar (in-place).DoubleMatrix.lei
(DoubleMatrix other) Test for "less than or equal" (in-place).DoubleMatrix.lei
(DoubleMatrix other, DoubleMatrix result) Test for "less than or equal" (in-place).static DoubleMatrix
DoubleMatrix.linspace
(int lower, int upper, int size) Construct a column vector whose entries are linearly spaced points from lower to upper with size many steps.static DoubleMatrix
DoubleMatrix.loadAsciiFile
(String filename) static DoubleMatrix
DoubleMatrix.loadCSVFile
(String filename) static DoubleMatrix
MatrixFunctions.log
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.log10
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.log10i
(DoubleMatrix x) Applies the logarithm with basis to 10 element-wise on this matrix.static DoubleMatrix
MatrixFunctions.logi
(DoubleMatrix x) Applies the natural logarithm function element-wise on this matrix.static DoubleMatrix
DoubleMatrix.logspace
(double lower, double upper, int size) Construct a column vector whose entries are logarithmically spaced points from 10^lower to 10^upper using the specified number of stepsDoubleMatrix.lt
(double value) test for "less than" against a scalar.DoubleMatrix.lt
(DoubleMatrix other) Test for "less than".DoubleMatrix.lti
(double value) Test for "less than" against a scalar (in-place).DoubleMatrix.lti
(double value, DoubleMatrix result) Test for "less than" against a scalar (in-place).DoubleMatrix.lti
(DoubleMatrix other) Test for "less than" (in-place).DoubleMatrix.lti
(DoubleMatrix other, DoubleMatrix result) Test for "less than" (in-place).DoubleMatrix.max
(double v) DoubleMatrix.max
(DoubleMatrix other) Computes the maximum between two matrices.DoubleMatrix.maxi
(double v) DoubleMatrix.maxi
(double v, DoubleMatrix result) DoubleMatrix.maxi
(DoubleMatrix other) Computes the maximum between two matrices.DoubleMatrix.maxi
(DoubleMatrix other, DoubleMatrix result) Computes the maximum between two matrices.DoubleMatrix.min
(double v) DoubleMatrix.min
(DoubleMatrix other) Computes the minimum between two matrices.DoubleMatrix.mini
(double v) DoubleMatrix.mini
(double v, DoubleMatrix result) DoubleMatrix.mini
(DoubleMatrix other) Computes the minimum between two matrices.DoubleMatrix.mini
(DoubleMatrix other, DoubleMatrix result) Computes the minimum between two matrices.DoubleMatrix.mmul
(double v) Matrix-multiply by a scalar.DoubleMatrix.mmul
(DoubleMatrix other) Matrix-multiply by a matrix.DoubleMatrix.mmuli
(double v) Matrix-multiply by a scalar (in place).DoubleMatrix.mmuli
(double v, DoubleMatrix result) Matrix-matrix multiplication with a scalar (for symmetry, does the same asmuli(scalar)
(in-place).DoubleMatrix.mmuli
(DoubleMatrix other) Matrix-multiply by a matrix (in place).DoubleMatrix.mmuli
(DoubleMatrix other, DoubleMatrix result) Matrix-matrix multiplication (in-place).DoubleMatrix.mul
(double v) Elementwise multiply by a scalar.DoubleMatrix.mul
(DoubleMatrix other) Elementwise multiply by a matrix.DoubleMatrix.mulColumn
(int c, double scale) Multiply a column by a scalar.DoubleMatrix.mulColumnVector
(DoubleMatrix x) Multiply all columns with a column vector.DoubleMatrix.muli
(double v) Elementwise multiply by a scalar (in place).DoubleMatrix.muli
(double v, DoubleMatrix result) Elementwise multiplication with a scalar (in-place).DoubleMatrix.muli
(DoubleMatrix other) Elementwise multiply by a matrix (in place).DoubleMatrix.muli
(DoubleMatrix other, DoubleMatrix result) Elementwise multiplication (in-place).DoubleMatrix.muliColumnVector
(DoubleMatrix x) Multiply all columns with a column vector (in-place).DoubleMatrix.muliRowVector
(DoubleMatrix x) Multiply all rows with a row vector (in-place).DoubleMatrix.mulRow
(int r, double scale) Multiply a row by a scalar.DoubleMatrix.mulRowVector
(DoubleMatrix x) Multiply all rows with a row vector.DoubleMatrix.ne
(double value) test for inequality against a scalar.DoubleMatrix.ne
(DoubleMatrix other) Test for inequality.DoubleMatrix.neg()
Negate each element.DoubleMatrix.negi()
Negate each element (in-place).DoubleMatrix.nei
(double value) Test for inequality against a scalar (in-place).DoubleMatrix.nei
(double value, DoubleMatrix result) Test for inequality against a scalar (in-place).DoubleMatrix.nei
(DoubleMatrix other) Test for inequality (in-place).DoubleMatrix.nei
(DoubleMatrix other, DoubleMatrix result) Test for inequality (in-place).static DoubleMatrix
Geometry.normalize
(DoubleMatrix x) Normalize a vector (scale such that its Euclidean norm is 1) (in-place).static DoubleMatrix
Geometry.normalizeColumns
(DoubleMatrix x) Normalize the columns of a matrix (in-place).static DoubleMatrix
Geometry.normalizeRows
(DoubleMatrix x) Normalize the rows of a matrix (in-place).DoubleMatrix.not()
Maps zero to 1.0 and all non-zero values to 0.0.DoubleMatrix.noti()
Maps zero to 1.0 and all non-zero values to 0.0 (in-place).static DoubleMatrix
DoubleMatrix.ones
(int length) Creates a column vector with all elements equal to 1.static DoubleMatrix
DoubleMatrix.ones
(int rows, int columns) Creates a new matrix in which all values are equal 1.DoubleMatrix.or
(double value) Compute elementwise logical or against a scalar.DoubleMatrix.or
(DoubleMatrix other) Compute elementwise logical or.DoubleMatrix.ori
(double value) Compute elementwise logical or against a scalar (in-place).DoubleMatrix.ori
(double value, DoubleMatrix result) Compute elementwise logical or against a scalar (in-place).DoubleMatrix.ori
(DoubleMatrix other) Compute elementwise logical or (in-place).DoubleMatrix.ori
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical or (in-place).static DoubleMatrix
Geometry.pairwiseSquaredDistances
(DoubleMatrix X, DoubleMatrix Y) Compute the pairwise squared distances between all columns of the two matrices.static DoubleMatrix
Solve.pinv
(DoubleMatrix A) Computes the pseudo-inverse.static DoubleMatrix
MatrixFunctions.pow
(double b, DoubleMatrix x) static DoubleMatrix
MatrixFunctions.pow
(DoubleMatrix x, double e) static DoubleMatrix
MatrixFunctions.pow
(DoubleMatrix x, DoubleMatrix e) static DoubleMatrix
MatrixFunctions.powi
(double base, DoubleMatrix x) static DoubleMatrix
MatrixFunctions.powi
(DoubleMatrix x, double d) Element-wise power function.static DoubleMatrix
MatrixFunctions.powi
(DoubleMatrix x, DoubleMatrix e) DoubleMatrix.put
(int[] indices, double v) Put a single value into the specified indices (linear adressing).DoubleMatrix.put
(int[] rindices, int[] cindices, double v) Put a single value into the specified rows and columns.DoubleMatrix.put
(int[] rindices, int[] cindices, DoubleMatrix x) Put a sub-matrix as specified by the indices.DoubleMatrix.put
(int[] indices, int c, double v) Put a single value into the specified rows of a column.DoubleMatrix.put
(int[] indices, int c, DoubleMatrix x) Set multiple elements in a row.DoubleMatrix.put
(int[] indices, DoubleMatrix x) Set elements in linear ordering in the specified indices.DoubleMatrix.put
(int i, double v) Set a matrix element (linear indexing).DoubleMatrix.put
(int r, int[] indices, double v) Put a single value into a row and the specified columns.DoubleMatrix.put
(int r, int[] indices, DoubleMatrix x) Set multiple elements in a row.DoubleMatrix.put
(int rowIndex, int columnIndex, double value) Set matrix elementDoubleMatrix.put
(int r, DoubleMatrix indices, double v) Put a single value into the specified columns (non-zero entries of indices) of a row.DoubleMatrix.put
(int r, DoubleMatrix indices, DoubleMatrix v) Put a sub-vector into the specified columns (non-zero entries of indices) of a row.DoubleMatrix.put
(DoubleMatrix indices, double v) Put a single value into the elements specified by the non-zero entries of indices (linear adressing).DoubleMatrix.put
(DoubleMatrix indices, int c, double v) Put a single value into the specified rows (non-zero entries of indices) of a column.DoubleMatrix.put
(DoubleMatrix indices, int c, DoubleMatrix v) Put a sub-vector into the specified rows (non-zero entries of indices) of a column.DoubleMatrix.put
(DoubleMatrix indices, DoubleMatrix v) Put a sub-matrix into the indices specified by the non-zero entries of indices (linear adressing).DoubleMatrix.put
(DoubleMatrix rindices, DoubleMatrix cindices, double v) Put a single value in the specified rows and columns (non-zero entries of rindices and cindices.DoubleMatrix.put
(DoubleMatrix rindices, DoubleMatrix cindices, DoubleMatrix v) Put a sub-matrix into the specified rows and columns (non-zero entries of rindices and cindices.DoubleMatrix.put
(Range rs, Range cs, DoubleMatrix x) Put a matrix into specified indices.static DoubleMatrix
DoubleMatrix.rand
(int len) Creates a column vector with random values uniformly in 0..1.static DoubleMatrix
DoubleMatrix.rand
(int rows, int columns) Create matrix with random values uniformly in 0..1.static DoubleMatrix
DoubleMatrix.randn
(int len) Create column vector with normally distributed random values.static DoubleMatrix
DoubleMatrix.randn
(int rows, int columns) Create matrix with normally distributed random values.DoubleMatrix.rankOneUpdate
(double alpha, DoubleMatrix x) Computes a rank-1-update A = A + alpha * x * x'.DoubleMatrix.rankOneUpdate
(double alpha, DoubleMatrix x, DoubleMatrix y) Computes a rank-1-update A = A + alpha * x * y'.DoubleMatrix.rankOneUpdate
(DoubleMatrix x) Computes a rank-1-update A = A + x * x'.DoubleMatrix.rankOneUpdate
(DoubleMatrix x, DoubleMatrix y) Computes a rank-1-update A = A + x * y'.DoubleMatrix.rdiv
(double v) (right-)elementwise divide by a scalar.DoubleMatrix.rdiv
(DoubleMatrix other) (right-)elementwise divide by a matrix.DoubleMatrix.rdivi
(double v) (right-)elementwise divide by a scalar (in place).DoubleMatrix.rdivi
(double a, DoubleMatrix result) (Elementwise) division with a scalar, with operands switched.DoubleMatrix.rdivi
(DoubleMatrix other) (right-)elementwise divide by a matrix (in place).DoubleMatrix.rdivi
(DoubleMatrix other, DoubleMatrix result) Elementwise division, with operands switched.ComplexDoubleMatrix.real()
Get real part of the matrix.DoubleMatrix.repmat
(int rowMult, int columnMult) Generate a new matrix which has the given number of replications of this.DoubleMatrix.reshape
(int newRows, int newColumns) Reshape the matrix.DoubleMatrix.rowMaxs()
Return row-wise maximums.DoubleMatrix.rowMeans()
Return a vector containing the means of the rows.DoubleMatrix.rowMins()
Return row-wise minimums.DoubleMatrix.rowSums()
Return a vector containing the sum of the rows.DoubleMatrix.rsub
(double v) (right-)subtract a scalar.DoubleMatrix.rsub
(DoubleMatrix other) (right-)subtract a matrix.DoubleMatrix.rsubi
(double v) (right-)subtract a scalar (in place).DoubleMatrix.rsubi
(double a, DoubleMatrix result) Subtract a matrix from a scalar (in-place).DoubleMatrix.rsubi
(DoubleMatrix other) (right-)subtract a matrix (in place).DoubleMatrix.rsubi
(DoubleMatrix other, DoubleMatrix result) Subtract two matrices, but subtract first from second matrix, that is, compute result = other - this (in-place).static DoubleMatrix
SimpleBlas.scal
(double alpha, DoubleMatrix x) Compute x <- alpha * x (scale a matrix)static DoubleMatrix
DoubleMatrix.scalar
(double s) Create a 1-by-1 matrix.DoubleMatrix.select
(DoubleMatrix where) DoubleMatrix.selecti
(DoubleMatrix where) static DoubleMatrix
MatrixFunctions.signum
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.signumi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sin
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sinh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sinhi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sini
(DoubleMatrix x) static DoubleMatrix
Solve.solve
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B.static DoubleMatrix
Solve.solveLeastSquares
(DoubleMatrix A, DoubleMatrix B) Computes the Least Squares solution for over or underdetermined linear equations A*X = B In the overdetermined case, when m > n, that is, there are more equations than variables, it computes the least squares solution of X -> ||A*X - B ||_2.static DoubleMatrix
Solve.solvePositive
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric and positive definite A.static DoubleMatrix
Solve.solveSymmetric
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric A.DoubleMatrix.sort()
Return a new matrix with all elements sorted.DoubleMatrix.sortColumns()
Sort columns.DoubleMatrix.sortColumnsi()
Sort columns (in-place).DoubleMatrix.sorti()
Sort elements in-place.DoubleMatrix.sortRows()
Sort rows.DoubleMatrix.sortRowsi()
Sort rows (in-place).static DoubleMatrix[]
Singular.sparseSVD
(DoubleMatrix A) Compute a singular-value decomposition of A (sparse variant).static DoubleMatrix
MatrixFunctions.sqrt
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sqrti
(DoubleMatrix x) DoubleMatrix.sub
(double v) Subtract a scalar.DoubleMatrix.sub
(DoubleMatrix other) Subtract a matrix.DoubleMatrix.subColumnVector
(DoubleMatrix x) Subtract a vector from all columns of the matrix.DoubleMatrix.subi
(double v) Subtract a scalar (in place).DoubleMatrix.subi
(double v, DoubleMatrix result) Subtract a scalar from a matrix (in-place).DoubleMatrix.subi
(DoubleMatrix other) Subtract a matrix (in place).DoubleMatrix.subi
(DoubleMatrix other, DoubleMatrix result) Subtract two matrices (in-place).DoubleMatrix.subiColumnVector
(DoubleMatrix x) Subtract a column vector from all columns of the matrix (in-place).DoubleMatrix.subiRowVector
(DoubleMatrix x) Subtract a row vector from all rows of the matrix (in-place).DoubleMatrix.subRowVector
(DoubleMatrix x) Subtract a row vector from all rows of the matrix.static DoubleMatrix
Singular.SVDValues
(ComplexDoubleMatrix A) Compute the singular values of a complex matrix.static DoubleMatrix
Singular.SVDValues
(DoubleMatrix A) Compute the singular values of a matrix.static DoubleMatrix
SimpleBlas.swap
(DoubleMatrix x, DoubleMatrix y) Compute x <-> y (swap two matrices)DoubleMatrix.swapColumns
(int i, int j) Swap two columns of a matrix.DoubleMatrix.swapRows
(int i, int j) Swap two rows of a matrix.static DoubleMatrix
Eigen.symmetricEigenvalues
(DoubleMatrix A) Compute the eigenvalues for a symmetric matrix.static DoubleMatrix[]
Eigen.symmetricEigenvectors
(DoubleMatrix A) Computes the eigenvalues and eigenvectors for a symmetric matrix.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B) Compute generalized eigenvalues of the problem A x = L B x.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B, double vl, double vu) Computes selected eigenvalues of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B, int il, int iu) Computes selected eigenvalues of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B) Solve a general problem A x = L B x.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B, double vl, double vu) Computes selected eigenvalues and their corresponding eigenvectors of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B, int il, int iu) Computes selected eigenvalues and their corresponding eigenvectors of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix
SimpleBlas.sysv
(char uplo, DoubleMatrix a, int[] ipiv, DoubleMatrix b) static DoubleMatrix
MatrixFunctions.tan
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tanh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tanhi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tani
(DoubleMatrix x) DoubleMatrix.transpose()
Return transposed copy of this matrix.DoubleMatrix.truth()
Maps zero to 0.0 and all non-zero values to 1.0.DoubleMatrix.truthi()
Maps zero to 0.0 and all non-zero values to 1.0 (in-place).static DoubleMatrix
Construct DoubleMatrix from ASCII representation.DoubleMatrix.xor
(double value) Compute elementwise logical xor against a scalar.DoubleMatrix.xor
(DoubleMatrix other) Compute elementwise logical xor.DoubleMatrix.xori
(double value) Compute elementwise logical xor against a scalar (in-place).DoubleMatrix.xori
(double value, DoubleMatrix result) Compute elementwise logical xor against a scalar (in-place).DoubleMatrix.xori
(DoubleMatrix other) Compute elementwise logical xor (in-place).DoubleMatrix.xori
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical xor (in-place).static DoubleMatrix
DoubleMatrix.zeros
(int length) Creates a column vector of given length.static DoubleMatrix
DoubleMatrix.zeros
(int rows, int columns) Creates a new matrix in which all values are equal 0.Methods in org.jblas that return types with arguments of type DoubleMatrixModifier and TypeMethodDescriptionDoubleMatrix.columnsAsList()
Decompose.lu
(DoubleMatrix A) Compute LU Decomposition of a general matrix.Decompose.qr
(DoubleMatrix A) QR decomposition.DoubleMatrix.rowsAsList()
Methods in org.jblas with parameters of type DoubleMatrixModifier and TypeMethodDescriptionstatic DoubleMatrix
MatrixFunctions.abs
(DoubleMatrix x) Returns a copy of this matrix where all elements are set to their absolute values.static DoubleMatrix
MatrixFunctions.absi
(DoubleMatrix x) Sets all elements in this matrix to their absolute values.static DoubleMatrix
MatrixFunctions.acos
(DoubleMatrix x) Returns a copy of this matrix where the trigonometric acos function is applied element wise.static DoubleMatrix
MatrixFunctions.acosi
(DoubleMatrix x) Applies the trigonometric arccosine function element wise on this matrix.DoubleMatrix.add
(DoubleMatrix other) Add a matrix.DoubleMatrix.addColumnVector
(DoubleMatrix x) Add a vector to all columns of the matrix.DoubleMatrix.addi
(double v, DoubleMatrix result) Add a scalar to a matrix (in-place).DoubleMatrix.addi
(DoubleMatrix other) Add a matrix (in place).DoubleMatrix.addi
(DoubleMatrix other, DoubleMatrix result) Add two matrices (in-place).DoubleMatrix.addiColumnVector
(DoubleMatrix x) Add a vector to all columns of the matrix (in-place).DoubleMatrix.addiRowVector
(DoubleMatrix x) Add a row vector to all rows of the matrix (in place).DoubleMatrix.addRowVector
(DoubleMatrix x) Add a row to all rows of the matrix.DoubleMatrix.and
(DoubleMatrix other) Compute elementwise logical and.DoubleMatrix.andi
(double value, DoubleMatrix result) Compute elementwise logical and against a scalar (in-place).DoubleMatrix.andi
(DoubleMatrix other) Compute elementwise logical and (in-place).DoubleMatrix.andi
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical and (in-place).static DoubleMatrix
MatrixFunctions.asin
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.asini
(DoubleMatrix x) Applies the trigonometric arcsine function element wise on this matrix.void
DoubleMatrix.assertMultipliesWith
(DoubleMatrix a) Throws SizeException unless matrices can be multiplied with one another.void
DoubleMatrix.assertSameLength
(DoubleMatrix a) Throws SizeException unless matrices have the same length.void
DoubleMatrix.assertSameSize
(DoubleMatrix a) Throws SizeException unless two matrices have the same size.static double
SimpleBlas.asum
(DoubleMatrix x) Compute || x ||_1 (1-norm, sum of absolute values)static DoubleMatrix
MatrixFunctions.atan
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.atani
(DoubleMatrix x) Applies the trigonometric arctangend function element wise on this matrix.static DoubleMatrix
SimpleBlas.axpy
(double da, DoubleMatrix dx, DoubleMatrix dy) Compute y <- alpha * x + y (elementwise addition)static DoubleMatrix
MatrixFunctions.cbrt
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.cbrti
(DoubleMatrix x) Applies the cube root function element wise on this matrix.static DoubleMatrix
MatrixFunctions.ceil
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.ceili
(DoubleMatrix x) Element-wise round up by applying the ceil function on each element.static DoubleMatrix
Geometry.center
(DoubleMatrix x) Center a vector (subtract mean from all elements (in-place).static DoubleMatrix
Geometry.centerColumns
(DoubleMatrix x) Center the columns of a matrix (in-place).static DoubleMatrix
Geometry.centerRows
(DoubleMatrix x) Center the rows of a matrix (in-place).static DoubleMatrix
Decompose.cholesky
(DoubleMatrix A) Compute Cholesky decomposition of Astatic DoubleMatrix
DoubleMatrix.concatHorizontally
(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices horizontally.static DoubleMatrix
DoubleMatrix.concatVertically
(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices vertically.DoubleMatrix.copy
(DoubleMatrix a) Copy DoubleMatrix a to this.static DoubleMatrix
SimpleBlas.copy
(DoubleMatrix x, DoubleMatrix y) Compute y <- x (copy a matrix)static DoubleMatrix
MatrixFunctions.cos
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.cosh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.coshi
(DoubleMatrix x) Applies the hyperbolic cosine function element-wise on this matrix.static DoubleMatrix
MatrixFunctions.cosi
(DoubleMatrix x) Applies the cosine function element-wise on this matrix.static DoubleMatrix
DoubleMatrix.diag
(DoubleMatrix x) Creates a new matrix where the values of the given vector are the diagonal values of the matrix.static DoubleMatrix
DoubleMatrix.diag
(DoubleMatrix x, int rows, int columns) Construct a matrix of arbitrary shape and set the diagonal according to a passed vector.double
DoubleMatrix.distance1
(DoubleMatrix other) Returns the (1-norm) distance.double
DoubleMatrix.distance2
(DoubleMatrix other) Returns the (euclidean) distance.DoubleMatrix.div
(DoubleMatrix other) Elementwise divide by a matrix.DoubleMatrix.divColumnVector
(DoubleMatrix x) DoubleMatrix.divi
(double a, DoubleMatrix result) Elementwise division with a scalar (in-place).DoubleMatrix.divi
(DoubleMatrix other) Elementwise divide by a matrix (in place).DoubleMatrix.divi
(DoubleMatrix other, DoubleMatrix result) Elementwise division (in-place).DoubleMatrix.diviColumnVector
(DoubleMatrix x) DoubleMatrix.diviRowVector
(DoubleMatrix x) DoubleMatrix.divRowVector
(DoubleMatrix x) double
DoubleMatrix.dot
(DoubleMatrix other) The scalar product of this with other.static double
SimpleBlas.dot
(DoubleMatrix x, DoubleMatrix y) Compute x^T * y (dot product)static FloatMatrix
MatrixFunctions.doubleToFloat
(DoubleMatrix dm) static ComplexDoubleMatrix
Eigen.eigenvalues
(DoubleMatrix A) Computes the eigenvalues of a general matrix.static ComplexDoubleMatrix[]
Eigen.eigenvectors
(DoubleMatrix A) Computes the eigenvalues and eigenvectors of a general matrix.DoubleMatrix.eq
(DoubleMatrix other) Test for equality.DoubleMatrix.eqi
(double value, DoubleMatrix result) Test for equality against a scalar (in-place).DoubleMatrix.eqi
(DoubleMatrix other) Test for equality (in-place).DoubleMatrix.eqi
(DoubleMatrix other, DoubleMatrix result) Test for equality (in-place).static DoubleMatrix
MatrixFunctions.exp
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.expi
(DoubleMatrix x) Applies the exponential function element-wise on this matrix.static DoubleMatrix
MatrixFunctions.expm
(DoubleMatrix A) Calculate matrix exponential of a square matrix.static DoubleMatrix
MatrixFunctions.floor
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.floori
(DoubleMatrix x) Element-wise round down by applying the floor function on each element.static DoubleMatrix[]
Singular.fullSVD
(DoubleMatrix A) Compute a singular-value decomposition of A.DoubleMatrix.ge
(DoubleMatrix other) Test for "greater than or equal".static int
SimpleBlas.geev
(char jobvl, char jobvr, DoubleMatrix A, DoubleMatrix WR, DoubleMatrix WI, DoubleMatrix VL, DoubleMatrix VR) DoubleMatrix.gei
(double value, DoubleMatrix result) Test for "greater than or equal" against a scalar (in-place).DoubleMatrix.gei
(DoubleMatrix other) Test for "greater than or equal" (in-place).DoubleMatrix.gei
(DoubleMatrix other, DoubleMatrix result) Test for "greater than or equal" (in-place).static void
SimpleBlas.gelsd
(DoubleMatrix A, DoubleMatrix B) Generalized Least Squares via *GELSD.static DoubleMatrix
SimpleBlas.gemm
(double alpha, DoubleMatrix a, DoubleMatrix b, double beta, DoubleMatrix c) Compute c <- a*b + beta * c (general matrix matrix multiplication)static DoubleMatrix
SimpleBlas.gemv
(double alpha, DoubleMatrix a, DoubleMatrix x, double beta, DoubleMatrix y) Compute y <- alpha*op(a)*x + beta * y (general matrix vector multiplication)static void
SimpleBlas.geqrf
(DoubleMatrix A, DoubleMatrix tau) static DoubleMatrix
SimpleBlas.ger
(double alpha, DoubleMatrix x, DoubleMatrix y, DoubleMatrix a) Compute A <- alpha * x * y^T + A (general rank-1 update)static DoubleMatrix
SimpleBlas.gesv
(DoubleMatrix a, int[] ipiv, DoubleMatrix b) LAPACKDoubleMatrix.get
(int r, DoubleMatrix indices) Get elements from a row and columns as specified by the non-zero entries of a matrix.DoubleMatrix.get
(DoubleMatrix indices) Get elements specified by the non-zero entries of the passed matrix.DoubleMatrix.get
(DoubleMatrix indices, int c) Get elements from a column and rows as specified by the non-zero entries of a matrix.DoubleMatrix.get
(DoubleMatrix rindices, DoubleMatrix cindices) Get elements from columns and rows as specified by the non-zero entries of the passed matrices.DoubleMatrix.getColumn
(int c, DoubleMatrix result) Copy a column to the given vector.DoubleMatrix.getColumns
(DoubleMatrix cindices) Get whole columns as specified by the non-zero entries of a matrix.DoubleMatrix.getColumns
(Range indices, DoubleMatrix result) Get whole columns as specified by Range.DoubleMatrix.getRow
(int r, DoubleMatrix result) Copy a row to a given vector.DoubleMatrix.getRows
(DoubleMatrix rindices) Get whole rows as specified by the non-zero entries of a matrix.DoubleMatrix.getRows
(Range indices, DoubleMatrix result) DoubleMatrix.gt
(DoubleMatrix other) Test for "greater than".DoubleMatrix.gti
(double value, DoubleMatrix result) Test for "greater than" against a scalar (in-place).DoubleMatrix.gti
(DoubleMatrix other) Test for "greater than" (in-place).DoubleMatrix.gti
(DoubleMatrix other, DoubleMatrix result) Test for "greater than" (in-place).static int
SimpleBlas.iamax
(DoubleMatrix x) Compute index of element with largest absolute value (index of absolute value maximum)DoubleMatrix.le
(DoubleMatrix other) Test for "less than or equal".DoubleMatrix.lei
(double value, DoubleMatrix result) Test for "less than or equal" against a scalar (in-place).DoubleMatrix.lei
(DoubleMatrix other) Test for "less than or equal" (in-place).DoubleMatrix.lei
(DoubleMatrix other, DoubleMatrix result) Test for "less than or equal" (in-place).static DoubleMatrix
MatrixFunctions.log
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.log10
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.log10i
(DoubleMatrix x) Applies the logarithm with basis to 10 element-wise on this matrix.static DoubleMatrix
MatrixFunctions.logi
(DoubleMatrix x) Applies the natural logarithm function element-wise on this matrix.DoubleMatrix.lt
(DoubleMatrix other) Test for "less than".DoubleMatrix.lti
(double value, DoubleMatrix result) Test for "less than" against a scalar (in-place).DoubleMatrix.lti
(DoubleMatrix other) Test for "less than" (in-place).DoubleMatrix.lti
(DoubleMatrix other, DoubleMatrix result) Test for "less than" (in-place).Decompose.lu
(DoubleMatrix A) Compute LU Decomposition of a general matrix.DoubleMatrix.max
(DoubleMatrix other) Computes the maximum between two matrices.DoubleMatrix.maxi
(double v, DoubleMatrix result) DoubleMatrix.maxi
(DoubleMatrix other) Computes the maximum between two matrices.DoubleMatrix.maxi
(DoubleMatrix other, DoubleMatrix result) Computes the maximum between two matrices.DoubleMatrix.min
(DoubleMatrix other) Computes the minimum between two matrices.DoubleMatrix.mini
(double v, DoubleMatrix result) DoubleMatrix.mini
(DoubleMatrix other) Computes the minimum between two matrices.DoubleMatrix.mini
(DoubleMatrix other, DoubleMatrix result) Computes the minimum between two matrices.DoubleMatrix.mmul
(DoubleMatrix other) Matrix-multiply by a matrix.DoubleMatrix.mmuli
(double v, DoubleMatrix result) Matrix-matrix multiplication with a scalar (for symmetry, does the same asmuli(scalar)
(in-place).DoubleMatrix.mmuli
(DoubleMatrix other) Matrix-multiply by a matrix (in place).DoubleMatrix.mmuli
(DoubleMatrix other, DoubleMatrix result) Matrix-matrix multiplication (in-place).DoubleMatrix.mul
(DoubleMatrix other) Elementwise multiply by a matrix.DoubleMatrix.mulColumnVector
(DoubleMatrix x) Multiply all columns with a column vector.DoubleMatrix.muli
(double v, DoubleMatrix result) Elementwise multiplication with a scalar (in-place).DoubleMatrix.muli
(DoubleMatrix other) Elementwise multiply by a matrix (in place).DoubleMatrix.muli
(DoubleMatrix other, DoubleMatrix result) Elementwise multiplication (in-place).DoubleMatrix.muliColumnVector
(DoubleMatrix x) Multiply all columns with a column vector (in-place).DoubleMatrix.muliRowVector
(DoubleMatrix x) Multiply all rows with a row vector (in-place).DoubleMatrix.mulRowVector
(DoubleMatrix x) Multiply all rows with a row vector.boolean
DoubleMatrix.multipliesWith
(DoubleMatrix a) Checks whether two matrices can be multiplied (that is, number of columns of this must equal number of rows of a.DoubleMatrix.ne
(DoubleMatrix other) Test for inequality.DoubleMatrix.nei
(double value, DoubleMatrix result) Test for inequality against a scalar (in-place).DoubleMatrix.nei
(DoubleMatrix other) Test for inequality (in-place).DoubleMatrix.nei
(DoubleMatrix other, DoubleMatrix result) Test for inequality (in-place).static DoubleMatrix
Geometry.normalize
(DoubleMatrix x) Normalize a vector (scale such that its Euclidean norm is 1) (in-place).static DoubleMatrix
Geometry.normalizeColumns
(DoubleMatrix x) Normalize the columns of a matrix (in-place).static DoubleMatrix
Geometry.normalizeRows
(DoubleMatrix x) Normalize the rows of a matrix (in-place).static double
SimpleBlas.nrm2
(DoubleMatrix x) Compute || x ||_2 (2-norm)DoubleMatrix.or
(DoubleMatrix other) Compute elementwise logical or.static void
SimpleBlas.orgqr
(int n, int k, DoubleMatrix A, DoubleMatrix tau) DoubleMatrix.ori
(double value, DoubleMatrix result) Compute elementwise logical or against a scalar (in-place).DoubleMatrix.ori
(DoubleMatrix other) Compute elementwise logical or (in-place).DoubleMatrix.ori
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical or (in-place).static void
SimpleBlas.ormqr
(char side, char trans, DoubleMatrix A, DoubleMatrix tau, DoubleMatrix C) static DoubleMatrix
Geometry.pairwiseSquaredDistances
(DoubleMatrix X, DoubleMatrix Y) Compute the pairwise squared distances between all columns of the two matrices.static DoubleMatrix
Solve.pinv
(DoubleMatrix A) Computes the pseudo-inverse.static void
SimpleBlas.posv
(char uplo, DoubleMatrix A, DoubleMatrix B) static DoubleMatrix
MatrixFunctions.pow
(double b, DoubleMatrix x) static DoubleMatrix
MatrixFunctions.pow
(DoubleMatrix x, double e) static DoubleMatrix
MatrixFunctions.pow
(DoubleMatrix x, DoubleMatrix e) static DoubleMatrix
MatrixFunctions.powi
(double base, DoubleMatrix x) static DoubleMatrix
MatrixFunctions.powi
(DoubleMatrix x, double d) Element-wise power function.static DoubleMatrix
MatrixFunctions.powi
(DoubleMatrix x, DoubleMatrix e) double
DoubleMatrix.project
(DoubleMatrix other) Computes the projection coefficient of other on this.DoubleMatrix.put
(int[] rindices, int[] cindices, DoubleMatrix x) Put a sub-matrix as specified by the indices.DoubleMatrix.put
(int[] indices, int c, DoubleMatrix x) Set multiple elements in a row.DoubleMatrix.put
(int[] indices, DoubleMatrix x) Set elements in linear ordering in the specified indices.DoubleMatrix.put
(int r, int[] indices, DoubleMatrix x) Set multiple elements in a row.DoubleMatrix.put
(int r, DoubleMatrix indices, double v) Put a single value into the specified columns (non-zero entries of indices) of a row.DoubleMatrix.put
(int r, DoubleMatrix indices, DoubleMatrix v) Put a sub-vector into the specified columns (non-zero entries of indices) of a row.DoubleMatrix.put
(DoubleMatrix indices, double v) Put a single value into the elements specified by the non-zero entries of indices (linear adressing).DoubleMatrix.put
(DoubleMatrix indices, int c, double v) Put a single value into the specified rows (non-zero entries of indices) of a column.DoubleMatrix.put
(DoubleMatrix indices, int c, DoubleMatrix v) Put a sub-vector into the specified rows (non-zero entries of indices) of a column.DoubleMatrix.put
(DoubleMatrix indices, DoubleMatrix v) Put a sub-matrix into the indices specified by the non-zero entries of indices (linear adressing).DoubleMatrix.put
(DoubleMatrix rindices, DoubleMatrix cindices, double v) Put a single value in the specified rows and columns (non-zero entries of rindices and cindices.DoubleMatrix.put
(DoubleMatrix rindices, DoubleMatrix cindices, DoubleMatrix v) Put a sub-matrix into the specified rows and columns (non-zero entries of rindices and cindices.DoubleMatrix.put
(Range rs, Range cs, DoubleMatrix x) Put a matrix into specified indices.void
DoubleMatrix.putColumn
(int c, DoubleMatrix v) Copy a column back into the matrix.void
DoubleMatrix.putRow
(int r, DoubleMatrix v) Copy a row back into the matrix.Decompose.qr
(DoubleMatrix A) QR decomposition.DoubleMatrix.rankOneUpdate
(double alpha, DoubleMatrix x) Computes a rank-1-update A = A + alpha * x * x'.DoubleMatrix.rankOneUpdate
(double alpha, DoubleMatrix x, DoubleMatrix y) Computes a rank-1-update A = A + alpha * x * y'.DoubleMatrix.rankOneUpdate
(DoubleMatrix x) Computes a rank-1-update A = A + x * x'.DoubleMatrix.rankOneUpdate
(DoubleMatrix x, DoubleMatrix y) Computes a rank-1-update A = A + x * y'.DoubleMatrix.rdiv
(DoubleMatrix other) (right-)elementwise divide by a matrix.DoubleMatrix.rdivi
(double a, DoubleMatrix result) (Elementwise) division with a scalar, with operands switched.DoubleMatrix.rdivi
(DoubleMatrix other) (right-)elementwise divide by a matrix (in place).DoubleMatrix.rdivi
(DoubleMatrix other, DoubleMatrix result) Elementwise division, with operands switched.DoubleMatrix.rsub
(DoubleMatrix other) (right-)subtract a matrix.DoubleMatrix.rsubi
(double a, DoubleMatrix result) Subtract a matrix from a scalar (in-place).DoubleMatrix.rsubi
(DoubleMatrix other) (right-)subtract a matrix (in place).DoubleMatrix.rsubi
(DoubleMatrix other, DoubleMatrix result) Subtract two matrices, but subtract first from second matrix, that is, compute result = other - this (in-place).boolean
DoubleMatrix.sameLength
(DoubleMatrix a) Checks whether two matrices have the same length.boolean
DoubleMatrix.sameSize
(DoubleMatrix a) Checks whether two matrices have the same size.static DoubleMatrix
SimpleBlas.scal
(double alpha, DoubleMatrix x) Compute x <- alpha * x (scale a matrix)DoubleMatrix.select
(DoubleMatrix where) DoubleMatrix.selecti
(DoubleMatrix where) static DoubleMatrix
MatrixFunctions.signum
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.signumi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sin
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sinh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sinhi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sini
(DoubleMatrix x) static DoubleMatrix
Solve.solve
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B.static DoubleMatrix
Solve.solveLeastSquares
(DoubleMatrix A, DoubleMatrix B) Computes the Least Squares solution for over or underdetermined linear equations A*X = B In the overdetermined case, when m > n, that is, there are more equations than variables, it computes the least squares solution of X -> ||A*X - B ||_2.static DoubleMatrix
Solve.solvePositive
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric and positive definite A.static DoubleMatrix
Solve.solveSymmetric
(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric A.static DoubleMatrix[]
Singular.sparseSVD
(DoubleMatrix A) Compute a singular-value decomposition of A (sparse variant).static DoubleMatrix
MatrixFunctions.sqrt
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.sqrti
(DoubleMatrix x) double
DoubleMatrix.squaredDistance
(DoubleMatrix other) Returns the squared (Euclidean) distance.DoubleMatrix.sub
(DoubleMatrix other) Subtract a matrix.DoubleMatrix.subColumnVector
(DoubleMatrix x) Subtract a vector from all columns of the matrix.DoubleMatrix.subi
(double v, DoubleMatrix result) Subtract a scalar from a matrix (in-place).DoubleMatrix.subi
(DoubleMatrix other) Subtract a matrix (in place).DoubleMatrix.subi
(DoubleMatrix other, DoubleMatrix result) Subtract two matrices (in-place).DoubleMatrix.subiColumnVector
(DoubleMatrix x) Subtract a column vector from all columns of the matrix (in-place).DoubleMatrix.subiRowVector
(DoubleMatrix x) Subtract a row vector from all rows of the matrix (in-place).DoubleMatrix.subRowVector
(DoubleMatrix x) Subtract a row vector from all rows of the matrix.static DoubleMatrix
Singular.SVDValues
(DoubleMatrix A) Compute the singular values of a matrix.static DoubleMatrix
SimpleBlas.swap
(DoubleMatrix x, DoubleMatrix y) Compute x <-> y (swap two matrices)static int
SimpleBlas.syev
(char jobz, char uplo, DoubleMatrix a, DoubleMatrix w) static int
SimpleBlas.syevd
(char jobz, char uplo, DoubleMatrix A, DoubleMatrix w) static int
SimpleBlas.syevr
(char jobz, char range, char uplo, DoubleMatrix a, double vl, double vu, int il, int iu, double abstol, DoubleMatrix w, DoubleMatrix z, int[] isuppz) static int
SimpleBlas.syevx
(char jobz, char range, char uplo, DoubleMatrix a, double vl, double vu, int il, int iu, double abstol, DoubleMatrix w, DoubleMatrix z) static int
SimpleBlas.sygvd
(int itype, char jobz, char uplo, DoubleMatrix A, DoubleMatrix B, DoubleMatrix W) static int
SimpleBlas.sygvx
(int itype, char jobz, char range, char uplo, DoubleMatrix A, DoubleMatrix B, double vl, double vu, int il, int iu, double abstol, int[] m, DoubleMatrix W, DoubleMatrix Z) static DoubleMatrix
Eigen.symmetricEigenvalues
(DoubleMatrix A) Compute the eigenvalues for a symmetric matrix.static DoubleMatrix[]
Eigen.symmetricEigenvectors
(DoubleMatrix A) Computes the eigenvalues and eigenvectors for a symmetric matrix.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B) Compute generalized eigenvalues of the problem A x = L B x.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B, double vl, double vu) Computes selected eigenvalues of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix
Eigen.symmetricGeneralizedEigenvalues
(DoubleMatrix A, DoubleMatrix B, int il, int iu) Computes selected eigenvalues of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B) Solve a general problem A x = L B x.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B, double vl, double vu) Computes selected eigenvalues and their corresponding eigenvectors of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix[]
Eigen.symmetricGeneralizedEigenvectors
(DoubleMatrix A, DoubleMatrix B, int il, int iu) Computes selected eigenvalues and their corresponding eigenvectors of the real generalized symmetric-definite eigenproblem of the form A x = L B x or, equivalently, (A - L B)x = 0.static DoubleMatrix
SimpleBlas.sysv
(char uplo, DoubleMatrix a, int[] ipiv, DoubleMatrix b) static DoubleMatrix
MatrixFunctions.tan
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tanh
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tanhi
(DoubleMatrix x) static DoubleMatrix
MatrixFunctions.tani
(DoubleMatrix x) DoubleMatrix.xor
(DoubleMatrix other) Compute elementwise logical xor.DoubleMatrix.xori
(double value, DoubleMatrix result) Compute elementwise logical xor against a scalar (in-place).DoubleMatrix.xori
(DoubleMatrix other) Compute elementwise logical xor (in-place).DoubleMatrix.xori
(DoubleMatrix other, DoubleMatrix result) Compute elementwise logical xor (in-place).Constructors in org.jblas with parameters of type DoubleMatrixModifierConstructorDescriptionConstruct a complex matrix from a real matrix.ComplexDoubleMatrix
(DoubleMatrix real, DoubleMatrix imag) Construct a complex matrix from separate real and imaginary parts. -
Uses of DoubleMatrix in org.jblas.ranges
Methods in org.jblas.ranges with parameters of type DoubleMatrixModifier and TypeMethodDescriptionstatic Range
RangeUtils.find
(DoubleMatrix is) static Range
RangeUtils.indices
(DoubleMatrix is) Constructors in org.jblas.ranges with parameters of type DoubleMatrix -
Uses of DoubleMatrix in org.jblas.util
Methods in org.jblas.util that return DoubleMatrixModifier and TypeMethodDescriptionstatic DoubleMatrix
Permutations.permutationDoubleMatrixFromPivotIndices
(int size, int[] ipiv) Create a permutation matrix from a LAPACK-style 'ipiv' vector.