Package jgpml.covariancefunctions
Class MatrixOperations
java.lang.Object
jgpml.covariancefunctions.MatrixOperations
Some useful operations defined over Matrices
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Jama.MatrixaddValue(Jama.Matrix A, double val) Adds a value to each elemnts of theMatrixstatic Jama.Matrixasin(Jama.Matrix A) Computes the arcsin of the inputMatrix(element by element)static Jama.Matrixdiag(Jama.Matrix A) If the argument is a row or columnMatrixit returns a new diagonalMatrixwith the input as diagonal elements.static Jama.Matrixexp(Jama.Matrix A) Computes the exponential of the inputMatrixstatic Jama.Matrixmean(Jama.Matrix A) static Jama.Matrixsqrt(Jama.Matrix A) Computes the square root of the inputMatrix(element by element)static Jama.Matrixstd(Jama.Matrix A) static Jama.MatrixsumRows(Jama.Matrix A) Sums across the rows of theMatrixand return the result as a single columnMAtrix
- 
Constructor Details- 
MatrixOperationspublic MatrixOperations()
 
- 
- 
Method Details- 
exppublic static Jama.Matrix exp(Jama.Matrix A) Computes the exponential of the inputMatrix- Parameters:
- A- input- Matrix
- Returns:
- exp(A) result
 
- 
sumRowspublic static Jama.Matrix sumRows(Jama.Matrix A) Sums across the rows of theMatrixand return the result as a single columnMAtrix- Parameters:
- A- input- Matrix
- Returns:
- result
 
- 
addValuepublic static Jama.Matrix addValue(Jama.Matrix A, double val) Adds a value to each elemnts of theMatrix- Parameters:
- A-- Matrix
- val- value to be added
- Returns:
- result
 
- 
asinpublic static Jama.Matrix asin(Jama.Matrix A) Computes the arcsin of the inputMatrix(element by element)- Parameters:
- A- input- Matrix
- Returns:
- asin(A) result
 
- 
sqrtpublic static Jama.Matrix sqrt(Jama.Matrix A) Computes the square root of the inputMatrix(element by element)- Parameters:
- A- input- Matrix
- Returns:
- sqrt(A) result
 
- 
diagpublic static Jama.Matrix diag(Jama.Matrix A) If the argument is a row or columnMatrixit returns a new diagonalMatrixwith the input as diagonal elements. If the argument is aMatrixit returns the diagonal elements as a single columnMatrixIs a clone of the Matlab's function diag(A)- Parameters:
- A- input- Matrix
- Returns:
- diag(A) result
 
- 
meanpublic static Jama.Matrix mean(Jama.Matrix A) 
- 
stdpublic static Jama.Matrix std(Jama.Matrix A) 
 
-