matcommon.h File Reference


Detailed Description

Define properties common to all matrix types.

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

Go to the source code of this file.

Data Structures

struct  oski_matcommon_t
 Matrix type-independent data. More...
struct  oski_matspecific_t
 Matrix type-specific representation. More...

Mangled names.

#define oski_matcommon_t   MANGLE_(oski_matcommon_t)
#define oski_matspecific_t   MANGLE_(oski_matspecific_t)
#define oski_TransposePatternProp   MANGLE_(oski_TransposePatternProp)
#define oski_TransposeProps   MANGLE_(oski_TransposeProps)

Defines

#define INC_OSKI_MATCOMMON_H
 oski/matcommon.h included.
#define OSKI_MATPROP_IS_SQUARE(props)   ((props)->num_rows == (props)->num_cols)
 Returns 1 if the given properties specify a square matrix, and 0 otherwise.
#define OSKI_MATPROP_IS_TRI(props)   ((props)->pattern.is_tri_upper || (props)->pattern.is_tri_lower)
 Returns 1 if the given properties specify a triangular matrix, and 0 otherwise.

Functions

oski_inmatprop_t oski_TransposePatternProp (oski_inmatprop_t pattern)
 Given a pattern type, return the corresponding transposed type.
void oski_TransposeProps (oski_matcommon_t *props)
 Transpose common properties.


Function Documentation

oski_inmatprop_t oski_TransposePatternProp oski_inmatprop_t  pattern  ) 
 

Given a pattern type, return the corresponding transposed type.

For example, if the input pattern is MAT_TRI_UPPER, the corresponding transpose pattern is MAT_TRI_LOWER. Similarly, the transpose of MAT_SYMM_UPPER is MAT_SYMM_LOWER.

void oski_TransposeProps oski_matcommon_t props  ) 
 

Transpose common properties.

Parameters:
[in,out] props Properties to transpose. Overwritten on return.


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