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
Subclasses with type arguments of type DoubleMatrix in org.jblasModifier and TypeClassDescriptionclassclassFields in org.jblas declared as DoubleMatrixMethods in org.jblas that return DoubleMatrixModifier and TypeMethodDescriptionstatic DoubleMatrixMatrixFunctions.abs(DoubleMatrix x) Returns a copy of this matrix where all elements are set to their absolute values.static DoubleMatrixMatrixFunctions.absi(DoubleMatrix x) Sets all elements in this matrix to their absolute values.static DoubleMatrixMatrixFunctions.acos(DoubleMatrix x) Returns a copy of this matrix where the trigonometric acos function is applied element wise.static DoubleMatrixMatrixFunctions.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 DoubleMatrixMatrixFunctions.asin(DoubleMatrix x) static DoubleMatrixMatrixFunctions.asini(DoubleMatrix x) Applies the trigonometric arcsine function element wise on this matrix.static DoubleMatrixMatrixFunctions.atan(DoubleMatrix x) static DoubleMatrixMatrixFunctions.atani(DoubleMatrix x) Applies the trigonometric arctangend function element wise on this matrix.static DoubleMatrixSimpleBlas.axpy(double da, DoubleMatrix dx, DoubleMatrix dy) Compute y <- alpha * x + y (elementwise addition)static DoubleMatrixMatrixFunctions.cbrt(DoubleMatrix x) static DoubleMatrixMatrixFunctions.cbrti(DoubleMatrix x) Applies the cube root function element wise on this matrix.static DoubleMatrixMatrixFunctions.ceil(DoubleMatrix x) static DoubleMatrixMatrixFunctions.ceili(DoubleMatrix x) Element-wise round up by applying the ceil function on each element.static DoubleMatrixGeometry.center(DoubleMatrix x) Center a vector (subtract mean from all elements (in-place).static DoubleMatrixGeometry.centerColumns(DoubleMatrix x) Center the columns of a matrix (in-place).static DoubleMatrixGeometry.centerRows(DoubleMatrix x) Center the rows of a matrix (in-place).static DoubleMatrixDecompose.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 DoubleMatrixDoubleMatrix.concatHorizontally(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices horizontally.static DoubleMatrixDoubleMatrix.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 DoubleMatrixSimpleBlas.copy(DoubleMatrix x, DoubleMatrix y) Compute y <- x (copy a matrix)static DoubleMatrixMatrixFunctions.cos(DoubleMatrix x) static DoubleMatrixMatrixFunctions.cosh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.coshi(DoubleMatrix x) Applies the hyperbolic cosine function element-wise on this matrix.static DoubleMatrixMatrixFunctions.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 DoubleMatrixDoubleMatrix.diag(DoubleMatrix x) Creates a new matrix where the values of the given vector are the diagonal values of the matrix.static DoubleMatrixDoubleMatrix.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 DoubleMatrixMatrixFunctions.exp(DoubleMatrix x) static DoubleMatrixMatrixFunctions.expi(DoubleMatrix x) Applies the exponential function element-wise on this matrix.static DoubleMatrixMatrixFunctions.expm(DoubleMatrix A) Calculate matrix exponential of a square matrix.static DoubleMatrixDoubleMatrix.eye(int n) Construct a new n-by-n identity matrix.DoubleMatrix.fill(double value) Set all elements to a value.static DoubleMatrixMatrixFunctions.floatToDouble(FloatMatrix fm) static DoubleMatrixMatrixFunctions.floor(DoubleMatrix x) static DoubleMatrixMatrixFunctions.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 DoubleMatrixSimpleBlas.gemm(double alpha, DoubleMatrix a, DoubleMatrix b, double beta, DoubleMatrix c) Compute c <- a*b + beta * c (general matrix matrix multiplication)static DoubleMatrixSimpleBlas.gemv(double alpha, DoubleMatrix a, DoubleMatrix x, double beta, DoubleMatrix y) Compute y <- alpha*op(a)*x + beta * y (general matrix vector multiplication)static DoubleMatrixSimpleBlas.ger(double alpha, DoubleMatrix x, DoubleMatrix y, DoubleMatrix a) Compute A <- alpha * x * y^T + A (general rank-1 update)static DoubleMatrixSimpleBlas.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 DoubleMatrixDoubleMatrix.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 DoubleMatrixDoubleMatrix.loadAsciiFile(String filename) static DoubleMatrixDoubleMatrix.loadCSVFile(String filename) static DoubleMatrixMatrixFunctions.log(DoubleMatrix x) static DoubleMatrixMatrixFunctions.log10(DoubleMatrix x) static DoubleMatrixMatrixFunctions.log10i(DoubleMatrix x) Applies the logarithm with basis to 10 element-wise on this matrix.static DoubleMatrixMatrixFunctions.logi(DoubleMatrix x) Applies the natural logarithm function element-wise on this matrix.static DoubleMatrixDoubleMatrix.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 DoubleMatrixGeometry.normalize(DoubleMatrix x) Normalize a vector (scale such that its Euclidean norm is 1) (in-place).static DoubleMatrixGeometry.normalizeColumns(DoubleMatrix x) Normalize the columns of a matrix (in-place).static DoubleMatrixGeometry.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 DoubleMatrixDoubleMatrix.ones(int length) Creates a column vector with all elements equal to 1.static DoubleMatrixDoubleMatrix.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 DoubleMatrixGeometry.pairwiseSquaredDistances(DoubleMatrix X, DoubleMatrix Y) Compute the pairwise squared distances between all columns of the two matrices.static DoubleMatrixSolve.pinv(DoubleMatrix A) Computes the pseudo-inverse.static DoubleMatrixMatrixFunctions.pow(double b, DoubleMatrix x) static DoubleMatrixMatrixFunctions.pow(DoubleMatrix x, double e) static DoubleMatrixMatrixFunctions.pow(DoubleMatrix x, DoubleMatrix e) static DoubleMatrixMatrixFunctions.powi(double base, DoubleMatrix x) static DoubleMatrixMatrixFunctions.powi(DoubleMatrix x, double d) Element-wise power function.static DoubleMatrixMatrixFunctions.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 DoubleMatrixDoubleMatrix.rand(int len) Creates a column vector with random values uniformly in 0..1.static DoubleMatrixDoubleMatrix.rand(int rows, int columns) Create matrix with random values uniformly in 0..1.static DoubleMatrixDoubleMatrix.randn(int len) Create column vector with normally distributed random values.static DoubleMatrixDoubleMatrix.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 DoubleMatrixSimpleBlas.scal(double alpha, DoubleMatrix x) Compute x <- alpha * x (scale a matrix)static DoubleMatrixDoubleMatrix.scalar(double s) Create a 1-by-1 matrix.DoubleMatrix.select(DoubleMatrix where) DoubleMatrix.selecti(DoubleMatrix where) static DoubleMatrixMatrixFunctions.signum(DoubleMatrix x) static DoubleMatrixMatrixFunctions.signumi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sin(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sinh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sinhi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sini(DoubleMatrix x) static DoubleMatrixSolve.solve(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B.static DoubleMatrixSolve.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 DoubleMatrixSolve.solvePositive(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric and positive definite A.static DoubleMatrixSolve.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 DoubleMatrixMatrixFunctions.sqrt(DoubleMatrix x) static DoubleMatrixMatrixFunctions.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 DoubleMatrixSingular.SVDValues(ComplexDoubleMatrix A) Compute the singular values of a complex matrix.static DoubleMatrixSingular.SVDValues(DoubleMatrix A) Compute the singular values of a matrix.static DoubleMatrixSimpleBlas.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 DoubleMatrixEigen.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 DoubleMatrixEigen.symmetricGeneralizedEigenvalues(DoubleMatrix A, DoubleMatrix B) Compute generalized eigenvalues of the problem A x = L B x.static DoubleMatrixEigen.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 DoubleMatrixEigen.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 DoubleMatrixSimpleBlas.sysv(char uplo, DoubleMatrix a, int[] ipiv, DoubleMatrix b) static DoubleMatrixMatrixFunctions.tan(DoubleMatrix x) static DoubleMatrixMatrixFunctions.tanh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.tanhi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.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 DoubleMatrixConstruct 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 DoubleMatrixDoubleMatrix.zeros(int length) Creates a column vector of given length.static DoubleMatrixDoubleMatrix.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 DoubleMatrixMatrixFunctions.abs(DoubleMatrix x) Returns a copy of this matrix where all elements are set to their absolute values.static DoubleMatrixMatrixFunctions.absi(DoubleMatrix x) Sets all elements in this matrix to their absolute values.static DoubleMatrixMatrixFunctions.acos(DoubleMatrix x) Returns a copy of this matrix where the trigonometric acos function is applied element wise.static DoubleMatrixMatrixFunctions.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 DoubleMatrixMatrixFunctions.asin(DoubleMatrix x) static DoubleMatrixMatrixFunctions.asini(DoubleMatrix x) Applies the trigonometric arcsine function element wise on this matrix.voidDoubleMatrix.assertMultipliesWith(DoubleMatrix a) Throws SizeException unless matrices can be multiplied with one another.voidDoubleMatrix.assertSameLength(DoubleMatrix a) Throws SizeException unless matrices have the same length.voidDoubleMatrix.assertSameSize(DoubleMatrix a) Throws SizeException unless two matrices have the same size.static doubleSimpleBlas.asum(DoubleMatrix x) Compute || x ||_1 (1-norm, sum of absolute values)static DoubleMatrixMatrixFunctions.atan(DoubleMatrix x) static DoubleMatrixMatrixFunctions.atani(DoubleMatrix x) Applies the trigonometric arctangend function element wise on this matrix.static DoubleMatrixSimpleBlas.axpy(double da, DoubleMatrix dx, DoubleMatrix dy) Compute y <- alpha * x + y (elementwise addition)static DoubleMatrixMatrixFunctions.cbrt(DoubleMatrix x) static DoubleMatrixMatrixFunctions.cbrti(DoubleMatrix x) Applies the cube root function element wise on this matrix.static DoubleMatrixMatrixFunctions.ceil(DoubleMatrix x) static DoubleMatrixMatrixFunctions.ceili(DoubleMatrix x) Element-wise round up by applying the ceil function on each element.static DoubleMatrixGeometry.center(DoubleMatrix x) Center a vector (subtract mean from all elements (in-place).static DoubleMatrixGeometry.centerColumns(DoubleMatrix x) Center the columns of a matrix (in-place).static DoubleMatrixGeometry.centerRows(DoubleMatrix x) Center the rows of a matrix (in-place).static DoubleMatrixDecompose.cholesky(DoubleMatrix A) Compute Cholesky decomposition of Astatic DoubleMatrixDoubleMatrix.concatHorizontally(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices horizontally.static DoubleMatrixDoubleMatrix.concatVertically(DoubleMatrix A, DoubleMatrix B) Concatenates two matrices vertically.DoubleMatrix.copy(DoubleMatrix a) Copy DoubleMatrix a to this.static DoubleMatrixSimpleBlas.copy(DoubleMatrix x, DoubleMatrix y) Compute y <- x (copy a matrix)static DoubleMatrixMatrixFunctions.cos(DoubleMatrix x) static DoubleMatrixMatrixFunctions.cosh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.coshi(DoubleMatrix x) Applies the hyperbolic cosine function element-wise on this matrix.static DoubleMatrixMatrixFunctions.cosi(DoubleMatrix x) Applies the cosine function element-wise on this matrix.static DoubleMatrixDoubleMatrix.diag(DoubleMatrix x) Creates a new matrix where the values of the given vector are the diagonal values of the matrix.static DoubleMatrixDoubleMatrix.diag(DoubleMatrix x, int rows, int columns) Construct a matrix of arbitrary shape and set the diagonal according to a passed vector.doubleDoubleMatrix.distance1(DoubleMatrix other) Returns the (1-norm) distance.doubleDoubleMatrix.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) doubleDoubleMatrix.dot(DoubleMatrix other) The scalar product of this with other.static doubleSimpleBlas.dot(DoubleMatrix x, DoubleMatrix y) Compute x^T * y (dot product)static FloatMatrixMatrixFunctions.doubleToFloat(DoubleMatrix dm) static ComplexDoubleMatrixEigen.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 DoubleMatrixMatrixFunctions.exp(DoubleMatrix x) static DoubleMatrixMatrixFunctions.expi(DoubleMatrix x) Applies the exponential function element-wise on this matrix.static DoubleMatrixMatrixFunctions.expm(DoubleMatrix A) Calculate matrix exponential of a square matrix.static DoubleMatrixMatrixFunctions.floor(DoubleMatrix x) static DoubleMatrixMatrixFunctions.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 intSimpleBlas.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 voidSimpleBlas.gelsd(DoubleMatrix A, DoubleMatrix B) Generalized Least Squares via *GELSD.static DoubleMatrixSimpleBlas.gemm(double alpha, DoubleMatrix a, DoubleMatrix b, double beta, DoubleMatrix c) Compute c <- a*b + beta * c (general matrix matrix multiplication)static DoubleMatrixSimpleBlas.gemv(double alpha, DoubleMatrix a, DoubleMatrix x, double beta, DoubleMatrix y) Compute y <- alpha*op(a)*x + beta * y (general matrix vector multiplication)static voidSimpleBlas.geqrf(DoubleMatrix A, DoubleMatrix tau) static DoubleMatrixSimpleBlas.ger(double alpha, DoubleMatrix x, DoubleMatrix y, DoubleMatrix a) Compute A <- alpha * x * y^T + A (general rank-1 update)static DoubleMatrixSimpleBlas.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 intSimpleBlas.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 DoubleMatrixMatrixFunctions.log(DoubleMatrix x) static DoubleMatrixMatrixFunctions.log10(DoubleMatrix x) static DoubleMatrixMatrixFunctions.log10i(DoubleMatrix x) Applies the logarithm with basis to 10 element-wise on this matrix.static DoubleMatrixMatrixFunctions.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.booleanDoubleMatrix.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 DoubleMatrixGeometry.normalize(DoubleMatrix x) Normalize a vector (scale such that its Euclidean norm is 1) (in-place).static DoubleMatrixGeometry.normalizeColumns(DoubleMatrix x) Normalize the columns of a matrix (in-place).static DoubleMatrixGeometry.normalizeRows(DoubleMatrix x) Normalize the rows of a matrix (in-place).static doubleSimpleBlas.nrm2(DoubleMatrix x) Compute || x ||_2 (2-norm)DoubleMatrix.or(DoubleMatrix other) Compute elementwise logical or.static voidSimpleBlas.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 voidSimpleBlas.ormqr(char side, char trans, DoubleMatrix A, DoubleMatrix tau, DoubleMatrix C) static DoubleMatrixGeometry.pairwiseSquaredDistances(DoubleMatrix X, DoubleMatrix Y) Compute the pairwise squared distances between all columns of the two matrices.static DoubleMatrixSolve.pinv(DoubleMatrix A) Computes the pseudo-inverse.static voidSimpleBlas.posv(char uplo, DoubleMatrix A, DoubleMatrix B) static DoubleMatrixMatrixFunctions.pow(double b, DoubleMatrix x) static DoubleMatrixMatrixFunctions.pow(DoubleMatrix x, double e) static DoubleMatrixMatrixFunctions.pow(DoubleMatrix x, DoubleMatrix e) static DoubleMatrixMatrixFunctions.powi(double base, DoubleMatrix x) static DoubleMatrixMatrixFunctions.powi(DoubleMatrix x, double d) Element-wise power function.static DoubleMatrixMatrixFunctions.powi(DoubleMatrix x, DoubleMatrix e) doubleDoubleMatrix.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.voidDoubleMatrix.putColumn(int c, DoubleMatrix v) Copy a column back into the matrix.voidDoubleMatrix.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).booleanDoubleMatrix.sameLength(DoubleMatrix a) Checks whether two matrices have the same length.booleanDoubleMatrix.sameSize(DoubleMatrix a) Checks whether two matrices have the same size.static DoubleMatrixSimpleBlas.scal(double alpha, DoubleMatrix x) Compute x <- alpha * x (scale a matrix)DoubleMatrix.select(DoubleMatrix where) DoubleMatrix.selecti(DoubleMatrix where) static DoubleMatrixMatrixFunctions.signum(DoubleMatrix x) static DoubleMatrixMatrixFunctions.signumi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sin(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sinh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sinhi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sini(DoubleMatrix x) static DoubleMatrixSolve.solve(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B.static DoubleMatrixSolve.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 DoubleMatrixSolve.solvePositive(DoubleMatrix A, DoubleMatrix B) Solves the linear equation A*X = B for symmetric and positive definite A.static DoubleMatrixSolve.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 DoubleMatrixMatrixFunctions.sqrt(DoubleMatrix x) static DoubleMatrixMatrixFunctions.sqrti(DoubleMatrix x) doubleDoubleMatrix.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 DoubleMatrixSingular.SVDValues(DoubleMatrix A) Compute the singular values of a matrix.static DoubleMatrixSimpleBlas.swap(DoubleMatrix x, DoubleMatrix y) Compute x <-> y (swap two matrices)static intSimpleBlas.syev(char jobz, char uplo, DoubleMatrix a, DoubleMatrix w) static intSimpleBlas.syevd(char jobz, char uplo, DoubleMatrix A, DoubleMatrix w) static intSimpleBlas.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 intSimpleBlas.syevx(char jobz, char range, char uplo, DoubleMatrix a, double vl, double vu, int il, int iu, double abstol, DoubleMatrix w, DoubleMatrix z) static intSimpleBlas.sygvd(int itype, char jobz, char uplo, DoubleMatrix A, DoubleMatrix B, DoubleMatrix W) static intSimpleBlas.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 DoubleMatrixEigen.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 DoubleMatrixEigen.symmetricGeneralizedEigenvalues(DoubleMatrix A, DoubleMatrix B) Compute generalized eigenvalues of the problem A x = L B x.static DoubleMatrixEigen.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 DoubleMatrixEigen.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 DoubleMatrixSimpleBlas.sysv(char uplo, DoubleMatrix a, int[] ipiv, DoubleMatrix b) static DoubleMatrixMatrixFunctions.tan(DoubleMatrix x) static DoubleMatrixMatrixFunctions.tanh(DoubleMatrix x) static DoubleMatrixMatrixFunctions.tanhi(DoubleMatrix x) static DoubleMatrixMatrixFunctions.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 RangeRangeUtils.find(DoubleMatrix is) static RangeRangeUtils.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 DoubleMatrixPermutations.permutationDoubleMatrixFromPivotIndices(int size, int[] ipiv) Create a permutation matrix from a LAPACK-style 'ipiv' vector.