public class LinearAlgebra extends DoubleArray
Constructor and Description |
---|
LinearAlgebra() |
Modifier and Type | Method and Description |
---|---|
static CholeskyDecomposition |
cholesky(double[][] v) |
static double |
cond(double[][] v) |
static double |
det(double[][] v) |
static double[][] |
divide(double[][] v1,
double v)
Divide each element of a matrix by a scalar
|
static double[][] |
divide(double[][] v1,
double[]... v2) |
static double[] |
divide(double[] v1,
double v)
Divide each element of an array by a scalar.
|
static double[] |
divide(double[] v1,
double[] v2)
Element-wise ratio of two arrays.
|
static double[][] |
divideLU(double[][] v1,
double[]... v2) |
static double[][] |
divideQR(double[][] v1,
double[]... v2) |
static EigenvalueDecomposition |
eigen(double[][] v) |
static double[][] |
inverse(double[][] v1) |
static double[][] |
inverseLU(double[][] v1) |
static double[][] |
inverseQR(double[][] v1) |
static LUDecomposition |
LU(double[][] v) |
static double[][] |
minus(double[][] v1,
double v2)
Subtract a scalar from each element of a matrix.
|
static double[][] |
minus(double[][] v1,
double[][] v2)
Element-wise subtraction of two matrices.
|
static double[] |
minus(double[] v1,
double v)
Subtracts a scalar value from each element of an array
|
static double[] |
minus(double[] v1,
double[] v2)
Element-wise subtraction of two arrays.
|
static double[] |
minus(double v,
double[] v1)
Subtracts each element of an array from a scalar value.
|
static double[][] |
minus(double v2,
double[][] v1)
Subtract each element of a matrix from a scalar.
|
static double |
norm1(double[][] v) |
static double |
norm2(double[][] v) |
static double |
normF(double[][] v) |
static double |
normInf(double[][] v) |
static double[] |
plus(double[]... v)
Element-wise sum of any number of arrays.
|
static double[][] |
plus(double[][] v1,
double v2)
Add a scalar to each element of a matrix.
|
static double[][] |
plus(double[][] v1,
double[][] v2)
Element-wise sum of two matrices
|
static double[] |
plus(double[] v1,
double v)
Add a scalar value to each element of an array.
|
static QRDecomposition |
QR(double[][] v) |
static double[][] |
raise(double[][] v,
double n)
Raise each element of a matrix to a scalar power
|
static double[] |
raise(double[] v1,
double n)
Raise each element of an array to a scalar power.
|
static int |
rank(double[][] v) |
static SingularValueDecomposition |
singular(double[][] v) |
static double[][] |
solve(double[][] A,
double[][] B) |
static double[][] |
solveTranspose(double[][] A,
double[][] B) |
static double[] |
times(double[]... v)
Element-wise product of any number of arrays.
|
static double[][] |
times(double[][] v1,
double v)
Multiply each element in a matrix by a scalar
|
static double[] |
times(double[][] v1,
double[] v2)
Product of a matrix and a vector (array) according to the rules of linear
algebra.
|
static double[][] |
times(double[][] v1,
double[][] v2)
Matrix multiplication according to the rules of linear algebra.
|
static double[] |
times(double[] v1,
double v)
Multiply each element of an array by a scalar.
|
static double |
trace(double[][] v) |
add, add, buildXY, buildXY, checkColumnDimension, checkLength, checkRowDimension, columnVector, copy, copy, cumProduct, cumProduct, cumSum, cumSum, delete, deleteColumns, deleteColumnsRange, deleteRange, deleteRows, deleteRowsRange, diagonal, diagonal, f, f, fill, fill, findex, getColumnCopy, getColumnCopy, getColumnDimension, getColumnsCopy, getColumnsRangeCopy, getCopy, getDiagonal, getRangeCopy, getRowCopy, getRowsCopy, getRowsRangeCopy, getSubMatrixRangeCopy, identity, increment, increment, increment, increment, insert, insertColumns, insertRows, isColumnDimension, isLength, isRowDimension, main, max, max, maxIndex, maxIndex, merge, mergeColumns, mergeRows, min, min, minIndex, minIndex, one, one, one, one, product, product, random, random, random, random, random, resize, rowVector, sort, sort, sum, sum, throwError, toString, toString, transpose
public static double[] minus(double[] v1, double[] v2)
v1
- Minuend.v2
- Subtrahendpublic static double[] minus(double[] v1, double v)
v1
- Minuend Array.v
- Subtrahend scalarpublic static double[] minus(double v, double[] v1)
v
- Scalar Minuendv1
- Subtrahend arraypublic static double[][] minus(double[][] v1, double[][] v2)
v1
- Minuend matrixv2
- Subtrahend matrixpublic static double[][] minus(double[][] v1, double v2)
v1
- Minuend matrixv2
- Scalar subtrahendpublic static double[][] minus(double v2, double[][] v1)
v2
- Scalar minuendv1
- Matrix subtrahendpublic static double[] plus(double[]... v)
v
- Any number of arrayspublic static double[] plus(double[] v1, double v)
v1
- Arrayv
- Scalarpublic static double[][] plus(double[][] v1, double[][] v2)
v1
- Matrixv2
- Matrixpublic static double[][] plus(double[][] v1, double v2)
v1
- Matrixv2
- Scalarpublic static double[] times(double[]... v)
v
- Any number of arrays.public static double[] divide(double[] v1, double[] v2)
v1
- Numeratorsv2
- Denominatorspublic static double[] times(double[] v1, double v)
v1
- Arrayv
- Scalarpublic static double[][] times(double[][] v1, double v)
v1
- Matrixv
- Scalarpublic static double[] divide(double[] v1, double v)
v1
- Numerator Arrayv
- Scalar denominatorpublic static double[][] divide(double[][] v1, double v)
v1
- Matrix numeratorv
- Scalar denominatorpublic static double[] raise(double[] v1, double n)
v1
- Arrayn
- Scalar exponentpublic static double[][] raise(double[][] v, double n)
v
- Matrixn
- exponentpublic static double[][] times(double[][] v1, double[][] v2)
v1
- Matrixv2
- Matrixpublic static double[] times(double[][] v1, double[] v2)
v1
- m x n Matrixv2
- n element arraytimes(double[][], double[][])
public static double[][] divideLU(double[][] v1, double[]... v2)
public static double[][] divideQR(double[][] v1, double[]... v2)
public static double[][] divide(double[][] v1, double[]... v2)
public static double[][] inverseLU(double[][] v1)
public static double[][] inverseQR(double[][] v1)
public static double[][] inverse(double[][] v1)
public static double[][] solve(double[][] A, double[][] B)
public static double[][] solveTranspose(double[][] A, double[][] B)
public static EigenvalueDecomposition eigen(double[][] v)
public static QRDecomposition QR(double[][] v)
public static LUDecomposition LU(double[][] v)
public static CholeskyDecomposition cholesky(double[][] v)
public static SingularValueDecomposition singular(double[][] v)
public static double cond(double[][] v)
public static double det(double[][] v)
public static int rank(double[][] v)
public static double trace(double[][] v)
public static double norm1(double[][] v)
public static double norm2(double[][] v)
public static double normF(double[][] v)
public static double normInf(double[][] v)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics