parse_opts.h File Reference


Detailed Description

Parse command-line options.

#include <stdio.h>
#include <oski/common.h>

Go to the source code of this file.

Defines

#define INC_UTIL_PARSE_OPTS_H
 util/parse_opts.h included.

Functions

int StringMatches (const char *source,...)
 Returns 0 <==> the given source string does not match any of a list of possible strings.
size_t ParseByteString (const char *s)
 Parses a string specifying a size in bytes.
oski_storage_t ParseDenseMatLayout (const char *s)
 Parse a vector layout string.
oski_matop_t ParseMatTransOp (const char *s)
 Parse a matrix-transpose option.
void PrintMatTransOp (FILE *fp, const char *matname, oski_matop_t op)
 Print matrix transpose option.
oski_ataop_t ParseMatATAOp (const char *s)
 Parse a $A^TA\cdot x$ matrix-transpose option.
void PrintMatATAOp (FILE *fp, const char *matname, oski_ataop_t op)
 Print $A^TA\cdot x$ matrix-transpose option.
void PrintDebugMatTransOp (int level, const char *matname, oski_matop_t op)
 Print matrix transpose option.
void PrintDebugMatATAOp (int level, const char *matname, oski_ataop_t op)
 Print $A^TA\cdot x$ matrix-transpose option.


Function Documentation

int StringMatches const char *  source,
  ...
 

Returns 0 <==> the given source string does not match any of a list of possible strings.

Parameters:
[in] source Source string (NULL-terminated).
[in] ... List of strings to compare to. The end of the list is marked by a NULL.
Returns:
0 if source is NULL or does not exactly equal any of the list of comparison strings, or the index of the matching item (starting at 1).


Generated on Wed Sep 19 16:41:23 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6