|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.sirius.patrius.stela.JavaMathAdapter
public final class JavaMathAdapter
Math adapter class.
| Method Summary | |
|---|---|
static double |
binomialCoefficientGeneric(int a,
int b)
Compute the Binomial Coefficient, "a choose b", the number of b-element subsets that can be selected from an a-element set. |
static double[][] |
matrixAdd(double[][] m1,
double[][] m2)
Add 2 matrices. |
static double[][] |
matrixMultiply(double[][] m1,
double[][] m2)
Multiply 2 matrix. |
static void |
matrixToVector(double[][] matrix,
double[] vector,
int offset)
Copy a matrix into a vector, column per column. |
static double[][] |
matrixTranspose(double[][] m)
Transpose a matrix. |
static double[] |
matrixVectorMultiply(double[][] m,
double[] v)
Multiply matrix with a vector. |
static double |
mod(double x,
double mod)
Computes "x" modulo "mod". |
static double[] |
negate(double[] v)
Invert a vector. |
static double[][] |
scalarMultiply(double coef,
double[][] matrix)
Return coef * matrix. |
static double[][] |
threeDMatrixVectorMultiply(double[][][] mat,
double[] vect)
Multiply an automatically-generated-3-dimensional matrix with a vector. Automatically generated 3D matrices have their rows and wideness inverted. |
static void |
vectorToMatrix(double[] vector,
double[][] matrix)
Copy a vector into a matrix, column per column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double mod(double x,
double mod)
x - value to modulatemod - modulo (for instance π)
public static double binomialCoefficientGeneric(int a,
int b)
a - the size of the setb - the size of the subsets
public static double[][] threeDMatrixVectorMultiply(double[][][] mat,
double[] vect)
throws OrekitException
mat - the 3-dimensional matrixvect - the vector
OrekitException - thrown if matrix dimension mismatchpublic static double[] negate(double[] v)
v - vector
public static double[][] matrixAdd(double[][] m1,
double[][] m2)
throws OrekitException
m1 - first matrixm2 - second matrix
OrekitException - thrown if matrix dimension mismatch
public static void vectorToMatrix(double[] vector,
double[][] matrix)
vector - vector to be copiedmatrix - matrix where to put the data
public static void matrixToVector(double[][] matrix,
double[] vector,
int offset)
matrix - matrix from which the data is readvector - vector in which the data is putoffset - offset after which the data will be put in the vector thrown if dimensions mismatch
public static double[][] matrixMultiply(double[][] m1,
double[][] m2)
m1 - first Matrixm2 - second matrix
public static double[][] matrixTranspose(double[][] m)
m - the matrix.
public static double[] matrixVectorMultiply(double[][] m,
double[] v)
m - the matrixv - the vector
public static double[][] scalarMultiply(double coef,
double[][] matrix)
coef - a coefficentmatrix - a matrix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||