Robotran C Documentation
Macros | Functions
eig_lapack.c File Reference
#include <stdio.h>
#include <math.h>
#include "mbs_matrix.h"
#include "mbs_lapack.h"
#include "mbs_message.h"
#include "mbs_1D_array.h"
#include "mbs_errors_names.h"

Macros

#define MSG_ERR   ">> EIGEN LPK>> "
 
#define MSG_PRE   " >> "
 

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

◆ MSG_ERR

#define MSG_ERR   ">> EIGEN LPK>> "

◆ MSG_PRE

#define MSG_PRE   " >> "

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.