8 #ifndef SCAMAC_COLLECTION_H 9 #define SCAMAC_COLLECTION_H 15 ScamacErrorCode scamac_generator_obtain(
const char * matname,
ScamacGenerator ** gen);
17 ScamacErrorCode scamac_parse_argstr(
const char * argstr,
ScamacGenerator ** gen,
char ** errdesc);
19 ScamacErrorCode scamac_generator_set_int (
ScamacGenerator * gen,
const char * parname,
int val);
20 ScamacErrorCode scamac_generator_set_idx (
ScamacGenerator * gen,
const char * parname, ScamacIdx val);
21 ScamacErrorCode scamac_generator_set_double (
ScamacGenerator * gen,
const char * parname,
double val);
22 ScamacErrorCode scamac_generator_set_bool (
ScamacGenerator * gen,
const char * parname,
bool val);
34 ScamacErrorCode scamac_generator_set_option (
ScamacGenerator * gen,
const char * parname,
const char * option);
45 ScamacErrorCode scamac_list_examples(
char ** desc);
46 ScamacErrorCode scamac_example_parameters(
const char * matname,
char ** desc);
47 ScamacErrorCode scamac_example_desc(
const char * matname,
int * valtype,
int * symmetry,
char ** desc);
49 ScamacPar scamac_identify_parameter(
const char * matname,
const char * parname);
ScamacErrorCode scamac_generator_parameter_desc(const ScamacGenerator *gen, const char *format, char **desc)
generic ScaMaC generator routines
struct scamac_generator_st ScamacGenerator
Abstract generator object.
Definition: scamac_generator.h:24
ScaMaC data structure and macro definitions.
ScamacErrorCode scamac_generator_set_rngseed(ScamacGenerator *gen, const char *parname, uint64_t seed)
set random seed
ScamacErrorCode scamac_generator_set_rngseed_str(ScamacGenerator *gen, const char *parname, const char *seedstr)
set random seed, reading from an arbitrary (random) string