ADOL-C: Automatic Differentiation in C/C++ 2.7.3
Loading...
Searching...
No Matches
sparsedrivers_c.h
Go to the documentation of this file.
1#ifndef ADOLC_SPARSE_DRIVERS_C_H
2#define ADOLC_SPARSE_DRIVERS_C_H
3
5#include <cstdlib>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
36int sparse_jac(short tag, int m, int n, int repeat, const double *x, int *nnz,
37 unsigned int **rind, unsigned int **cind, double **values,
38 int *options);
39
61int sparse_hess(short tag, int n, int repeat, const double *x, int *nnz,
62 unsigned int **rind, unsigned int **cind, double **values,
63 int *options);
64
81int jac_pat(short tag, int m, int n, const double *x, unsigned int **JP,
82 int *options);
83
98int hess_pat(short tag, int n, const double *x, unsigned int **HP, int *option);
99
113void generate_seed_jac(int m, int n, unsigned int **JP, double ***S, int *p,
114 int *options);
115
127void generate_seed_hess(int n, unsigned int **HP, double ***S, int *p,
128 int *options);
129
130#ifdef __cplusplus
131} // extern "C"
132#endif
133#endif // ADOLC_SPARSE_DRIVERS_C_H
void generate_seed_jac(int m, int n, unsigned int **JP, double ***S, int *p, int *options)
Generate a ColPack seed matrix for compressed Jacobian recovery.
int hess_pat(short tag, int n, const double *x, unsigned int **HP, int *option)
Compute a scalar function's Hessian sparsity pattern.
void generate_seed_hess(int n, unsigned int **HP, double ***S, int *p, int *options)
Generate a ColPack seed matrix for compressed Hessian recovery.
int sparse_jac(short tag, int m, int n, int repeat, const double *x, int *nnz, unsigned int **rind, unsigned int **cind, double **values, int *options)
Compute and recover a sparse Jacobian using ColPack.
int sparse_hess(short tag, int n, int repeat, const double *x, int *nnz, unsigned int **rind, unsigned int **cind, double **values, int *options)
Compute and recover a sparse Hessian using ColPack.
int jac_pat(short tag, int m, int n, const double *x, unsigned int **JP, int *options)
Compute a Jacobian sparsity pattern.