Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
matrixutils.cpp File Reference
#include "matrixutils.h"
#include <cmath>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_eigen.h>
Include dependency graph for matrixutils.cpp:

Namespaces

 matrix
 namespace for the matrix library
 

Functions

gsl_matrix * toGSL (const Matrix &src)
 copies our matrix into a gsl matrix (don't forget gsl_matrix_free) More...
 
Matrix fromGSL (const gsl_matrix *src)
 copies gsl matrix to our matrix More...
 
Matrix fromGSL (const gsl_vector *src)
 copies gsl vector to our matrix (column-vector) More...
 
Matrix fromGSL_real (const gsl_matrix_complex *src)
 copies the real part of gsl matrix_complex to our matrix More...
 
Matrix fromGSL_imag (const gsl_matrix_complex *src)
 copies the imag part of gsl matrix_complex to our matrix More...
 
Matrix eigenValuesRealSym (const Matrix &m)
 calculates the eigenvalues of the real and symmetric matrix m and returns them as a column vector in descending order More...
 
bool eigenValuesVectorsRealSym (const Matrix &m, Matrix &eigenvalues, Matrix &eigenvectors)
 calculates the eigenvalues and corresponding eigenvectors of the the real and symmetric matrix m. More...
 
bool eigenValues (const Matrix &m, Matrix &vals_real, Matrix &vals_imag)
 calculates the eigenvalues of the matrix m and returns them as a column vectors seperated to real and imaginary part in descending order. More...
 
bool eigenValuesVectors (const Matrix &m, Matrix &vals_real, Matrix &vals_imag, Matrix &vecs_real, Matrix &vecs_imag)
 calculates the eigenvalues and corresponding eigenvectors of the matrix m. More...
 
std::vector< int > toPositiveSignEigenVectors (Matrix &vecs_real, Matrix &vecs_imag)
 flips the signs of the eigenvectors such that their first entry has positive real part. More...
 
double __matutils_euklidlen (double a, double b)
 
Matrix scaleEigenVectorsWithValue (const Matrix &vals_real, const Matrix &vals_imag, Matrix &vecs_real, Matrix &vecs_imag)
 scales the eigenvectors with the absolute value of the eigenvalues. More...