BeBOP Optimized Sparse Kernel Interface Library  1.0.1h
Defines | Functions
matopts.c File Reference
#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 $a$ that is also at least $x$.

Functions

void matopts_Init (matopts_t *opts)
void matopts_Display (const matopts_t *opts, FILE *fp)
void matopts_Usage (FILE *fp)
int matopts_Process (int argc, char *argv[], int i, matopts_t *opts)
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)

Detailed Description