Class EigenJNI

java.lang.Object
org.wpilib.math.jni.WPIMathJNI
org.wpilib.math.jni.EigenJNI

public final class EigenJNI extends WPIMathJNI
Eigen JNI.
  • Nested Class Summary

    Nested classes/interfaces inherited from class WPIMathJNI

    WPIMathJNI.Helper
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    exp(double[] src, int rows, double[] dst)
    Computes the matrix exp.
    static void
    pow(double[] src, int rows, double exponent, double[] dst)
    Computes the matrix pow.
    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.

    Methods inherited from class WPIMathJNI

    forceLoad

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.