Class EigenJNI
java.lang.Object
org.wpilib.math.jni.WPIMathJNI
org.wpilib.math.jni.EigenJNI
Eigen JNI.
-
Nested Class Summary
Nested classes/interfaces inherited from class WPIMathJNI
WPIMathJNI.Helper -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexp(double[] src, int rows, double[] dst) Computes the matrix exp.static voidpow(double[] src, int rows, double exponent, double[] dst) Computes the matrix pow.static voidrankUpdate(double[] mat, int rows, double[] vec, double sigma, boolean lowerTriangular) Performs an inplace rank one update (or downdate) of an upper triangular Cholesky decomposition matrix.Methods inherited from class WPIMathJNI
forceLoad
-
Method Details
-
exp
public static void exp(double[] src, int rows, double[] dst) Computes the matrix exp.- Parameters:
src- Array of elements of the matrix to be exponentiated.rows- How many rows there are.dst- Array where the result will be stored.
-
pow
public static void pow(double[] src, int rows, double exponent, double[] dst) Computes the matrix pow.- Parameters:
src- Array of elements of the matrix to be raised to a power.rows- How many rows there are.exponent- The exponent.dst- Array where the result will be stored.
-
rankUpdate
public static void rankUpdate(double[] mat, int rows, double[] vec, double sigma, boolean lowerTriangular) Performs an inplace rank one update (or downdate) of an upper triangular Cholesky decomposition matrix.- Parameters:
mat- Array of elements of the matrix to be updated.rows- How many rows there are.vec- Vector to use for the rank update.sigma- Sigma value to use for the rank update.lowerTriangular- Whether mat is lower triangular.
-