public class OPV
extends java.lang.Object
Class for vector, matrix and cubic matrix operations
Constructor and Description |
---|
OPV() |
Modifier and Type | Method and Description |
---|---|
static double[] |
changeSign(double[] a)
This static method implements the operation of changing the sing applied to a vector
|
static double[][] |
changeSign(double[][] a)
This static method implements the operation of changing the sing applied to a matrix
|
static double[][][] |
changeSign(double[][][] a)
This static method implements the operation of changing the sing applied to a cubic matrix
|
static double[][][] |
invScale(double[][][] a,
double[][][] mx,
double[][][] mn)
This static method is for inverse scale a cubic mtrix
|
static double[][] |
invScale(double[][] a,
double[][] mx,
double[][] mn)
This static method is for inverse scale a mtrix
|
static double[] |
invScale(double[] a,
double[] mx,
double[] mn)
This static method is for inverse scale of a vector
|
static double[][][] |
maximum(double[][][] a,
double[][][] b)
This static method implements the maximum operation between two cubic matrix elements
|
static double[][] |
maximum(double[][] a,
double[][] b)
This static method implements the maximum operation between two matrix elements
|
static double[] |
maximum(double[] a,
double[] b)
This static method implements the maximum operation between two vectors elements
|
static double[][][] |
minimum(double[][][] a,
double[][][] b)
This static method implements the minimum operation between two cubic matrix elements
|
static double[][] |
minimum(double[][] a,
double[][] b)
This static method implements the minimum operation between two matrix elements
|
static double[] |
minimum(double[] a,
double[] b)
This static method implements the minimum operation between two vectors elements
|
static double[][][] |
minus(double[][][] a,
double[][][] b)
This static method implements the subtract of cubic matrix
|
static double[][] |
minus(double[][] a,
double[][] b)
This static method implements the subtract of matrix
|
static double[] |
minus(double[] a,
double[] b)
This static method implements the subtract of vectors
|
static double[][] |
MultCuad(double[] a,
double[] b)
This static method genetares a matrix multiplication from two vectors
|
static double |
multiply(double[][][] a,
double[][][] b)
This static method multiplies two cubic matrix and add the result of the multiplications
|
static double[] |
multiply(double[][] A,
double[] x)
This static method multiply each row of a matrix by a double value
|
static double |
multiply(double[][] a,
double[][] b)
This static method multiplies two matrix and add the result of the multiplications
|
static double |
multiply(double[] a,
double[] b)
This static method multiplies two matrix and add the result of the multiplications
|
static double[] |
multiply(double k,
double[] a)
This static method multiplies each element of a vector by a double value
|
static double[][] |
multiply(double k,
double[][] a)
This static method multiplies
each double element of a matrix by a double value
|
static double[][][] |
multiply(double k,
double[][][] a)
This static method multiplies each double element of a cubic matrix by a double value
|
static double[][][] |
scale(double[][][] a,
double[][][] mx,
double[][][] mn)
This static method scales a cubic matrix
|
static double[][] |
scale(double[][] a,
double[][] mx,
double[][] mn)
This static method scales a matrix
|
static double[] |
scale(double[] a,
double[] mx,
double[] mn)
This static method scale a vector
|
static double[][][] |
sum(double[][][] a,
double[][][] b)
This static method implements the sum of cubic matrix
|
static double[][] |
sum(double[][] a,
double[][] b)
This static method implements the sum of matrix
|
static double[] |
sum(double[] a,
double[] b)
This static method implements the sum of vectors
|
public static double[] sum(double[] a, double[] b)
This static method implements the sum of vectors
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[] minus(double[] a, double[] b)
This static method implements the subtract of vectors
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[] changeSign(double[] a)
This static method implements the operation of changing the sing applied to a vector
a
- The vector of double valuespublic static double[] maximum(double[] a, double[] b)
This static method implements the maximum operation between two vectors elements
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[] minimum(double[] a, double[] b)
This static method implements the minimum operation between two vectors elements
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[] scale(double[] a, double[] mx, double[] mn)
This static method scale a vector
a
- The vector, of double values, to be scaledmx
- The vector of maximum valuesmn
- The vector of minimum valuespublic static double[] invScale(double[] a, double[] mx, double[] mn)
This static method is for inverse scale of a vector
a
- The vector, of double values, to be inverse scaledmx
- The vector of maximum valuesmn
- The vector of minimum valuespublic static double[] multiply(double k, double[] a)
This static method multiplies each element of a vector by a double value
k
- The double valuea
- The vector of double valuespublic static double multiply(double[] a, double[] b)
This static method multiplies two matrix and add the result of the multiplications
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[][] MultCuad(double[] a, double[] b)
This static method genetares a matrix multiplication from two vectors
a
- The first vector of double valuesb
- The second vector of double valuespublic static double[] multiply(double[][] A, double[] x)
This static method multiply each row of a matrix by a double value
A
- The matrix with double valuesx
- The double valuespublic static double[][] sum(double[][] a, double[][] b)
This static method implements the sum of matrix
a
- The first matrix of double valuesb
- The second matrix of double valuespublic static double[][] minus(double[][] a, double[][] b)
This static method implements the subtract of matrix
a
- The first matrix of double valuesb
- The second matrix of double valuespublic static double[][] changeSign(double[][] a)
This static method implements the operation of changing the sing applied to a matrix
a
- The matrix of double valuespublic static double[][] maximum(double[][] a, double[][] b)
This static method implements the maximum operation between two matrix elements
a
- The first matrix of double valuesb
- The second matrix of double valuespublic static double[][] minimum(double[][] a, double[][] b)
This static method implements the minimum operation between two matrix elements
a
- The first matrix of double valuesb
- The second matrix of double valuespublic static double[][] scale(double[][] a, double[][] mx, double[][] mn)
This static method scales a matrix
a
- The matrix, of double values, to be scaledmx
- The matrix of maximum double valuesmn
- The matrix of minimum double valuespublic static double[][] invScale(double[][] a, double[][] mx, double[][] mn)
This static method is for inverse scale a mtrix
a
- The matrix, of double values, to be inverse scaledmx
- The matrix of maximum double valuesmn
- The matrix of minimum double valuespublic static double[][] multiply(double k, double[][] a)
This static method multiplies each double element of a matrix by a double value
k
- The double valuea
- The matrix with double valuespublic static double multiply(double[][] a, double[][] b)
This static method multiplies two matrix and add the result of the multiplications
a
- The first matrix with double valuesb
- The second matrix with double valuespublic static double[][][] sum(double[][][] a, double[][][] b)
This static method implements the sum of cubic matrix
a
- The first cubic matrix with double valuesb
- The second cubic matrix with double valuespublic static double[][][] minus(double[][][] a, double[][][] b)
This static method implements the subtract of cubic matrix
a
- The first cubic matrix with double valuesb
- The second cubic matrix with double valuespublic static double[][][] changeSign(double[][][] a)
This static method implements the operation of changing the sing applied to a cubic matrix
a
- The cubic matrix of double valuespublic static double[][][] maximum(double[][][] a, double[][][] b)
This static method implements the maximum operation between two cubic matrix elements
a
- The first cubic matrix of double valuesb
- The second cubic matrix of double valuespublic static double[][][] minimum(double[][][] a, double[][][] b)
This static method implements the minimum operation between two cubic matrix elements
a
- The first cubic matrix of double valuesb
- The second cubic matrix of double valuespublic static double[][][] scale(double[][][] a, double[][][] mx, double[][][] mn)
This static method scales a cubic matrix
a
- The cubic matrix, of double values, to be scaledmx
- The cubic matrix of maximum double valuesmn
- The cubic matrix of minimum double valuespublic static double[][][] invScale(double[][][] a, double[][][] mx, double[][][] mn)
This static method is for inverse scale a cubic mtrix
a
- The cubic matrix, of double values, to be inverse scaledmx
- The cubic matrix of maximum double valuesmn
- The cubic matrix of minimum double valuespublic static double[][][] multiply(double k, double[][][] a)
This static method multiplies each double element of a cubic matrix by a double value
k
- The double valuea
- The cubic matrix with double valuespublic static double multiply(double[][][] a, double[][][] b)
This static method multiplies two cubic matrix and add the result of the multiplications
a
- The first cubic matrix with double valuesb
- The second cubic matrix with double values