#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <oski/oski.h>
#include "abort_prog.h"
#include "readhbpat.h"
#include "testvec.h"
#include "parse_opts.h"
#include "matopts.h"
Defines | |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | MIN_LEAST_MULTIPLE(x, a) ((((x) + (a) - 1)/(a))*(a)) |
Returns the least multiple of that is also at least . | |
Functions | |
void | matopts_Init (matopts_t *opts) |
Initialize matrix options to default values. | |
void | matopts_Display (const matopts_t *opts, FILE *fp) |
Display summary of matrix options. | |
void | matopts_Usage (FILE *fp) |
Display summary of command-line matrix options. | |
int | matopts_Process (int argc, char *argv[], int i, matopts_t *opts) |
Process possible matrix-generation command-line option. | |
oski_matrix_t | matopts_CreateMat (const matopts_t *opts, oski_index_t *p_num_rows, oski_index_t *p_num_cols, oski_index_t *p_nnz_stored, oski_index_t *p_nnz) |
Instantiate a matrix from the specified options. |