Package cern.accsoft.steering.util
Class MatrixUtil
- java.lang.Object
-
- cern.accsoft.steering.util.MatrixUtil
-
public final class MatrixUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Jama.MatrixcreateVector(java.util.List<java.lang.Double> values)converts a list of doubles to a jama - matrix with one column.static Jama.MatrixsqrtByElements(Jama.Matrix matrix)creates a new matrix that contains the square-roots of the elements of the input matrix.
-
-
-
Method Detail
-
createVector
public static Jama.Matrix createVector(java.util.List<java.lang.Double> values)
converts a list of doubles to a jama - matrix with one column.- Parameters:
values- the list of values- Returns:
- a matrix containing the values.
-
sqrtByElements
public static Jama.Matrix sqrtByElements(Jama.Matrix matrix)
creates a new matrix that contains the square-roots of the elements of the input matrix.- Parameters:
matrix- the matrix of whose elements to take the input values- Returns:
- a matrix containing the square-roots of the elements of the input matrix.
-
-