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

Macros

#define MSG_ERR   ">> SCHUR LPK>> "
 
#define MSG_PRE   " >> "
 

Functions

int mbs_select (const double *real, const double *imaginary)
 
int mbs_schur_0 (double **A, int n, double **T, double **Z, double *WR, double *WI, int reorder)
 Compute the Schur decomposition. More...
 

Macro Definition Documentation

◆ MSG_ERR

#define MSG_ERR   ">> SCHUR LPK>> "

◆ MSG_PRE

#define MSG_PRE   " >> "

Function Documentation

◆ mbs_schur_0()

int mbs_schur_0 ( double **  A,
int  n,
double **  T,
double **  Z,
double *  WR,
double *  WI,
int  reorder 
)

Compute the Schur decomposition.

Parameters
AMatrix for the Eigenvalue problem in row major
[in]nSize of the matrix
[out]WRResult of the Eigenvalue problem: real part of the n eigen values (ordered as they appear on the diagonal of the output Schur form T [n x 1]
[out]WIResult of the Eigenvalue problem: real part of the n eigen values (ordered as they appear on the diagonal of the output Schur form T [n x 1]
[out]TSchur decomposition matrix (re-ordered).
[out]ZOrthogonal matrix Z of Schur vectors [n X n] (re-ordered).
[in]reorderFlag for re-ordering:
  • 1: re-ordered
  • 0: non-ordered
Returns
0 for successful exit.

◆ mbs_select()

int mbs_select ( const double *  real,
const double *  imaginary 
)