Robotran C Documentation
Classes | Macros | Functions
eig_lapack.c File Reference
#include <stdio.h>
#include <math.h>
#include "mbs_errors_names.h"
#include "mbs_message.h"
#include "useful_functions.h"
#include "lapacke.h"

Classes

struct  complex_float
 Implementation of eig function using lapacke without using the lapackE interface. More...
 
struct  complex_double
 

Macros

#define lapack_complex_float   struct complex_float
 
#define lapack_complex_double   struct complex_double
 

Functions

int mbs_eig_0 (double **A, int n, double *eval_a, double *eval_b, double **evec_a, double **evec_b)
 Compute the eigen values and vector of a matrix with index starting a 0. More...
 

Macro Definition Documentation

◆ lapack_complex_double

#define lapack_complex_double   struct complex_double

◆ lapack_complex_float

#define lapack_complex_float   struct complex_float

Function Documentation

◆ mbs_eig_0()

int mbs_eig_0 ( double **  A,
int  n,
double *  eval_a,
double *  eval_b,
double **  evec_a,
double **  evec_b 
)

Compute the eigen values and vector of a matrix with index starting a 0.

Parameters
[in]Amatrix for the Eigenvalue problem.
[in]nsize of the matrix
[out]eval_aResult of the Eigenvalue problem: real part of the 2*nx eigen values [n X 1]
[out]eval_bResult of the Eigenvalue problem: imag part of the 2*nx eigen values [n X 1]
[out]evec_aResult of the Eigenvalue problem: real part of the eigen vectors (each column is a eigenvector) [n X n]
[out]evec_bResult of the Eigenvalue problem: imag part of the eigen vectors (each column is a eigenvector) [n X n]
Returns
Error status, <0 in case of failure.