ScaMaC  0.8.2
A Scalable Matrix Collection
scamac_collection.h
Go to the documentation of this file.
1 
8 #ifndef SCAMAC_COLLECTION_H
9 #define SCAMAC_COLLECTION_H
10 
11 #include "scamac_error.h"
12 #include "scamac_generator.h"
13 #include <stdbool.h>
14 
15 ScamacErrorCode scamac_generator_obtain(const char * matname, ScamacGenerator ** gen);
16 
17 ScamacErrorCode scamac_parse_argstr(const char * argstr, ScamacGenerator ** gen, char ** errdesc);
18 
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);
26 ScamacErrorCode scamac_generator_set_rngseed (ScamacGenerator * gen, const char * parname, uint64_t seed);
33 ScamacErrorCode scamac_generator_set_rngseed_str(ScamacGenerator * gen, const char * parname, const char * seedstr);
34 ScamacErrorCode scamac_generator_set_option (ScamacGenerator * gen, const char * parname, const char * option);
35 
42 ScamacErrorCode scamac_generator_parameter_desc(const ScamacGenerator * gen, const char * format, char ** desc);
43 
44 
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);
48 
49 ScamacPar scamac_identify_parameter(const char * matname, const char * parname);
50 
54 //ScamacErrorCode scamac_parameter_option_values(const char * matname, const char * parname, char ** desc);
55 
56 
57 #endif /* SCAMAC_COLLECTION_H */
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