|
Robotran C Documentation
|
void cubic_spline_comp_val_and_der(CubicSpline *cs, double x_in, int index, double *y, double *yp, double *ypp)
Compute the value of the cubic spline and its first and second derivatives at the specified coordinat...
Definition: cubic_spline.c:166
double * x
Starting value of each segment.
Definition: cubic_spline.h:20
void cubic_spline_comp_val_and_der(CubicSpline *cs, double x_in, int index, double *y, double *yp, double *ypp)
Compute the value of the cubic spline and its first and second derivatives at the specified coordinat...
Definition: cubic_spline.c:166
void mbs_error_msg(char *msg,...)
Send an error message.
Definition: mbs_message.c:102
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:880
void free_dmat_0(double **mat)
release memory for a matrix of doubles, starting at index 0
Definition: mbs_matrix.c:293
int get_dmatfiles_size(const char *fileName, int *n_row, int *n_col)
Function to load a file and calculate the number of rows and columns.
Definition: mbs_matrix.c:858
int cubic_spline_get_index(CubicSpline *cs, double x_in)
Retrieve the index (starting at zero) in the spline coefficient table corresponding to the specified ...
Definition: cubic_spline.c:69
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
Definition: mbs_matrix.c:238
double cubic_spline_comp_value(CubicSpline *cs, double x_in, int index)
Compute the value of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:102
int cubic_spline_get_index(CubicSpline *cs, double x_in)
Retrieve the index (starting at zero) in the spline coefficient table corresponding to the specified ...
Definition: cubic_spline.c:69
Definition: cubic_spline.h:17
double cubic_spline_comp_value(CubicSpline *cs, double x_in, int index)
Compute the value of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:102
double cubic_spline_comp_firstder(CubicSpline *cs, double x_in, int index)
Compute the value of the first derivative of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:124
CubicSpline * cubic_spline_new_from_file(const char *filename)
Load the coefficient of the cubic splines from a file.
Definition: cubic_spline.c:21
int lastindex
Last used index (line). Default value -1.
Definition: cubic_spline.h:26
void cubic_spline_delete(CubicSpline *cs)
Free the memory of cubic spline.
Definition: cubic_spline.c:191
double cubic_spline_comp_secondder(CubicSpline *cs, double x_in, int index)
Compute the value of the second derivative of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:145
double cubic_spline_comp_firstder(CubicSpline *cs, double x_in, int index)
Compute the value of the first derivative of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:124
void cubic_spline_delete(CubicSpline *cs)
Free the memory of cubic spline.
Definition: cubic_spline.c:191
double cubic_spline_comp_secondder(CubicSpline *cs, double x_in, int index)
Compute the value of the second derivative of the cubic spline at the specified coordinate.
Definition: cubic_spline.c:145
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:896
double ** coef
The size is [CubicSpline::nx,4]
Definition: cubic_spline.h:24
int nx
Number of cubic spline segments.
Definition: cubic_spline.h:19
int read_dmat_0(double **mat, int nb_r, int nb_c, const char *name)
read a [nb_r times nb_c] matrix of doubles from a file starting with index 0 and store the values in ...
Definition: mbs_matrix.c:495
CubicSpline * cubic_spline_new_from_file(const char *filename)
Load the coefficient of the cubic splines from a file.
Definition: cubic_spline.c:21