Package org.robwork.sdurw_math
Class EigenDecomposition_f
- java.lang.Object
-
- org.robwork.sdurw_math.EigenDecomposition_f
-
public class EigenDecomposition_f extends java.lang.Object
Type representing a set of eigen values and eigen vectors.
-
-
Constructor Summary
Constructors Constructor Description EigenDecomposition_f(long cPtr, boolean cMemoryOwn)
EigenDecomposition_f(SWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_Eigen__Dynamic_t vectors, SWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_1_t values)
Construct new decomposition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(EigenDecomposition_f obj)
float
getEigenValue(long i)
returns the i'th eigenvalueSWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_1_t
getEigenValues()
return all eigenvaluesSWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_1_t
getEigenVector(long i)
returns the i'th eigenvectorSWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_Eigen__Dynamic_t
getEigenVectors()
returns all eigenvectors as columns in a matrixvoid
sort()
sorts the eigen vectors according to their eigen value.
-
-
-
Constructor Detail
-
EigenDecomposition_f
public EigenDecomposition_f(long cPtr, boolean cMemoryOwn)
-
EigenDecomposition_f
public EigenDecomposition_f(SWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_Eigen__Dynamic_t vectors, SWIGTYPE_p_Eigen__MatrixT_float_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_f obj)
-
delete
public void delete()
-
getEigenVectors
public SWIGTYPE_p_Eigen__MatrixT_float_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_float_Eigen__Dynamic_1_t getEigenVector(long i)
returns the i'th eigenvector- Returns:
- the eigen vector.
-
getEigenValues
public SWIGTYPE_p_Eigen__MatrixT_float_Eigen__Dynamic_1_t getEigenValues()
return all eigenvalues- Returns:
- the eigen values.
-
getEigenValue
public float 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
-
-