Package org.robwork.sdurw_math
Class EigenDecomposition
- java.lang.Object
-
- org.robwork.sdurw_math.EigenDecomposition
-
public class EigenDecomposition extends java.lang.ObjectType representing a set of eigen values and eigen vectors.
-
-
Constructor Summary
Constructors Constructor Description EigenDecomposition(long cPtr, boolean cMemoryOwn)EigenDecomposition(SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_Eigen__Dynamic_t vectors, SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_t values)Construct new decomposition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(EigenDecomposition obj)doublegetEigenValue(long i)returns the i'th eigenvalueSWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_tgetEigenValues()return all eigenvaluesSWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_tgetEigenVector(long i)returns the i'th eigenvectorSWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_Eigen__Dynamic_tgetEigenVectors()returns all eigenvectors as columns in a matrixvoidsort()sorts the eigen vectors according to their eigen value.
-
-
-
Constructor Detail
-
EigenDecomposition
public EigenDecomposition(long cPtr, boolean cMemoryOwn)
-
EigenDecomposition
public EigenDecomposition(SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_Eigen__Dynamic_t vectors, SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_t values)
Construct new decomposition.- Parameters:
vectors- [in] the eigen vectors as columns in a matrix.values- [in] the corresponding eigen values.
-
-
Method Detail
-
getCPtr
public static long getCPtr(EigenDecomposition obj)
-
delete
public void delete()
-
getEigenVectors
public SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_Eigen__Dynamic_t getEigenVectors()
returns all eigenvectors as columns in a matrix- Returns:
- reference to the matrix.
-
getEigenVector
public SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_t getEigenVector(long i)
returns the i'th eigenvector- Returns:
- the eigen vector.
-
getEigenValues
public SWIGTYPE_p_Eigen__MatrixT_double_Eigen__Dynamic_1_t getEigenValues()
return all eigenvalues- Returns:
- the eigen values.
-
getEigenValue
public double getEigenValue(long i)
returns the i'th eigenvalue- Returns:
- the eigenvalue.
-
sort
public void sort()
sorts the eigen vectors according to their eigen value. The vector with smallest
eigen value has index 0
-
-