overview of functions provided#
// typedefs typedef float spc_; typedef double rpc_; typedef int ipc_; // structs struct gls_ainfo; struct gls_control; struct gls_finfo; struct gls_sinfo; // global functions void gls_initialize(void **data, struct gls_control* control); void gls_read_specfile(struct gls_control* control, const char specfile[]); void gls_import(struct gls_control* control, void **data, ipc_ *status); void gls_reset_control(struct gls_control* control, void **data, ipc_ *status); void gls_information( void **data, struct gls_ainfo* ainfo, struct gls_finfo* finfo, struct gls_sinfo* sinfo, ipc_ *status ); void gls_finalize(void **data, struct gls_control* control, ipc_ *status);
typedefs#
typedef float spc_
spc_
is real single precision
typedef double rpc_
rpc_
is the real working precision used, but may be changed to float
by
defining the preprocessor variable REAL_32
or (if supported) to
__real128
using the variable REAL_128
.
typedef int ipc_
ipc_
is the default integer word length used, but may be changed to
int64_t
by defining the preprocessor variable INTEGER_64
.
function calls#
void gls_initialize(void **data, struct gls_control* control)
Set default control values and initialize private data
Parameters:
data |
holds private internal data |
control |
is a struct containing control information (see gls_control) |
void gls_read_specfile(struct gls_control* control, const char specfile[])
Read the content of a specification file, and assign values associated with given keywords to the corresponding control parameters. An in-depth discussion of specification files is available, and a detailed list of keywords with associated default values is provided in $GALAHAD/src/gls/GLS.template. See also Table 2.1 in the Fortran documentation provided in $GALAHAD/doc/gls.pdf for a list of how these keywords relate to the components of the control structure.
Parameters:
control |
is a struct containing control information (see gls_control) |
specfile |
is a character string containing the name of the specification file |
void gls_import(struct gls_control* control, void **data, ipc_ *status)
Import problem data into internal storage prior to solution.
Parameters:
control |
is a struct whose members provide control paramters for the remaining prcedures (see gls_control) |
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are:
|
void gls_reset_control(struct gls_control* control, void **data, ipc_ *status)
Reset control parameters after import if required.
Parameters:
control |
is a struct whose members provide control paramters for the remaining prcedures (see gls_control) |
data |
holds private internal data |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are:
|
void gls_information( void **data, struct gls_ainfo* ainfo, struct gls_finfo* finfo, struct gls_sinfo* sinfo, ipc_ *status )
Provides output information
Parameters:
data |
holds private internal data |
ainfo |
is a struct containing analysis output information (see gls_ainfo) |
finfo |
is a struct containing factorization output information (see gls_finfo) |
sinfo |
is a struct containing solver output information (see gls_sinfo) |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are (currently):
|
void gls_finalize(void **data, struct gls_control* control, ipc_ *status)
Deallocate all internal private storage
Parameters:
data |
holds private internal data |
control |
is a struct containing control information (see gls_control) |
status |
is a scalar variable of type ipc_, that gives the exit status from the package. Possible values are (currently):
|