Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
auto_plot.h
Go to the documentation of this file.
1 
8 #ifndef _AUTO_PLOT_H_
9 #define _AUTO_PLOT_H_
10 
11 #include "mbs_realtime_struct.h"
12 
13 
17 // functions prototypes
18 AutoPlot* init_auto_plot(int max_nb);
20 void update_auto_plot(AutoPlot *auto_plot, double value, const char* label);
21 int index_plot_string(AutoPlot *auto_plot, const char* label);
22 
23 
24 #endif
MSG_ERR
#define MSG_ERR
Definition: svdcmp_lapack.c:11
mbs_msg
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
LAPACKE_malloc
#define LAPACKE_malloc(size)
Definition: mbs_lapack.h:43
auto_plot.h
functions used to automatically update the user curves plotted
useful_functions.h
MSG_PRE
#define MSG_PRE
Definition: schur_lapack.c:20
AutoPlot::max_nb
int max_nb
maximum number of curves to plot
Definition: mbs_realtime_struct.h:61
svbksb
void svbksb(double **u, double w[], double **v, int m, int n, double b[], double x[])
Definition: svbksb.c:16
AutoPlot
User curves to plot auto-update.
Definition: mbs_realtime_struct.h:58
get_dvec_0
double * get_dvec_0(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 0....
Definition: mbs_1D_array.c:1055
AutoPlot::label_curves
char ** label_curves
tabular with the current curves labels
Definition: mbs_realtime_struct.h:63
free_ivec_0
void free_ivec_0(int *vec)
release memory for a vector of integers, starting with index 0
Definition: mbs_1D_array.c:590
free_dmat_0
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:374
auto_plot
static AutoPlot * auto_plot
Definition: set_plot.c:5
dmaxarg2
static double dmaxarg2
Definition: svdcmp.c:21
LAPACK_dgelss
static void LAPACK_dgelss(lapack_int *m, lapack_int *n, lapack_int *nrhs, double *a, lapack_int *lda, double *b, lapack_int *ldb, double *s, double *rcond, lapack_int *rank, double *work, lapack_int *lwork, lapack_int *info)
Definition: mbs_lapack.h:74
SIGN
#define SIGN(a, b)
Definition: nrfct.h:90
mbs_realtime_struct.h
mbs_matrix.h
MSG_PRE
#define MSG_PRE
Definition: svdcmp_lapack.c:12
AutoPlot::nb
int nb
current number of curves to plot
Definition: mbs_realtime_struct.h:60
mbs_1D_array.h
free_char_tab
void free_char_tab(char **mat)
release memory for a matrix of chars
Definition: useful_functions.c:294
mbs_svdDcmp_0
int mbs_svdDcmp_0(double **A, int x, int y, double **U, double **S, double **VT)
Realize the singular value decomposition.
Definition: svdcmp_lapack.c:80
get_dmat_0
double ** get_dmat_0(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of doubles, starting at index 0 The functi...
Definition: mbs_matrix.c:294
free_auto_plot
void free_auto_plot(AutoPlot *auto_plot)
release memory for AutoPlot
Definition: auto_plot.c:43
LAPACK_dgees
static void LAPACK_dgees(char *jobvs, char *sort, LAPACK_D_SELECT2 select, lapack_int *n, double *a, lapack_int *lda, lapack_int *sdim, double *wr, double *wi, double *vs, lapack_int *ldvs, double *work, lapack_int *lwork, lapack_logical *bwork, lapack_int *info)
Definition: mbs_lapack.h:49
mbs_lapack.h
This file define/declare required function type to use LAPACK in MBsysC.
dmaxarg1
static double dmaxarg1
Definition: svdcmp.c:21
AutoPlot::y_curves
double * y_curves
tabular with the current values of the plots to curve
Definition: mbs_realtime_struct.h:65
update_auto_plot
void update_auto_plot(AutoPlot *auto_plot, double value, const char *label)
update auto_plot when a 'set_plot' is encountered
Definition: auto_plot.c:56
pythag
double pythag(double a, double b)
Definition: svdcmp.c:399
iminarg2
static int iminarg2
Definition: svdcmp.c:22
index_plot_string
int index_plot_string(AutoPlot *auto_plot, const char *label)
get index for a curve with its label
Definition: auto_plot.c:92
MSG_ERR
#define MSG_ERR
Definition: schur_lapack.c:19
free_auto_plot
void free_auto_plot(AutoPlot *auto_plot)
release memory for AutoPlot
Definition: auto_plot.c:43
update_auto_plot
void update_auto_plot(AutoPlot *auto_plot, double value, const char *label)
update auto_plot when a 'set_plot' is encountered
Definition: auto_plot.c:56
get_char_tab
char ** get_char_tab(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of chars WARNING: only the first dimension...
Definition: useful_functions.c:178
free_dvec_1
void free_dvec_1(double *vec)
release memory for a vector of doubles, starting at index 1
Definition: mbs_1D_array.c:1095
IMIN
#define IMIN(a, b)
Definition: nrfct.h:92
lapack_logical
#define lapack_logical
Definition: mbs_lapack.h:41
nrfct.h
transpose_dmat_0
void transpose_dmat_0(double **tab_src, double **tab_dest, int nb_r, int nb_c)
Transpose a [nb_r times nb_c] matrix of doubles and store the results in a [y times nb_r] matrix,...
Definition: mbs_matrix.c:524
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.
Definition: schur_lapack.c:34
mbs_message.h
LAPACKE_free
#define LAPACKE_free(p)
Definition: mbs_lapack.h:44
get_ivec_0
int * get_ivec_0(int l_v)
create (with memory allocation) a vector (length l_v) of integers, starting at index 0....
Definition: mbs_1D_array.c:555
mbs_select
int mbs_select(const double *real, const double *imaginary)
Definition: schur_lapack.c:22
LAPACK_dgesvd
static void LAPACK_dgesvd(char *jobu, char *jobvt, lapack_int *m, lapack_int *n, double *a, lapack_int *lda, double *s, double *u, lapack_int *ldu, double *vt, lapack_int *ldvt, double *work, lapack_int *lwork, lapack_int *info)
Definition: mbs_lapack.h:86
svdcmp_0
void svdcmp_0(double **a, int m, int n, double w[], double **v)
computes the Singular Value Decomposition a = u.w.v'
Definition: svdcmp.c:211
svdcmp
void svdcmp(double **a, int m, int n, double w[], double **v)
computes the Singular Value Decomposition a = u.w.v'
Definition: svdcmp.c:25
LAPACK_dtrsen
static void LAPACK_dtrsen(char *job, char *compq, const lapack_logical *select, lapack_int *n, double *t, lapack_int *ldt, double *q, lapack_int *ldq, double *wr, double *wi, lapack_int *m, double *s, double *sep, double *work, lapack_int *lwork, lapack_int *iwork, lapack_int *liwork, lapack_int *info)
Definition: mbs_lapack.h:141
svbksb_0
void svbksb_0(double **u, double w[], double **v, int m, int n, double b[], double x[])
Definition: svbksb.c:38
lapack_int
#define lapack_int
Definition: mbs_lapack.h:40
mbs_over_under_determined
int mbs_over_under_determined(double **A, double *b, int x, int y)
Solve a linear system of equations, A*x=b, using dgelss lapack function.
Definition: svdcmp_lapack.c:14
get_dvec_1
double * get_dvec_1(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 1
Definition: mbs_1D_array.c:1071
dsqrarg
static double dsqrarg
Definition: svdcmp.c:23
free_dvec_0
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:1090
AutoPlot::nb_new_curves
int nb_new_curves
number of new curves discovered during this time step
Definition: mbs_realtime_struct.h:67
DMAX
#define DMAX(a, b)
Definition: nrfct.h:95
MAX
#define MAX(a, b)
Definition: useful_functions.h:14
init_auto_plot
AutoPlot * init_auto_plot(int max_nb)
initialize the AutoPlot structure
Definition: auto_plot.c:13
iminarg1
static int iminarg1
Definition: svdcmp.c:22
DSQR
#define DSQR(a)
Definition: nrfct.h:98
_MBS_ERR_LOW_LAPACKE
#define _MBS_ERR_LOW_LAPACKE
Low Level error number problem with Lapacke system resolution = -5.
Definition: mbs_errors_names.h:137
init_auto_plot
AutoPlot * init_auto_plot(int max_nb)
User curves to plot auto-update.
Definition: auto_plot.c:13
index_plot_string
int index_plot_string(AutoPlot *auto_plot, const char *label)
get index for a curve with its label
Definition: auto_plot.c:92
mbs_errors_names.h