matcreate.h File Reference


Detailed Description

Matrix creation routines.

#include <oski/matrix.h>
#include <oski/inmatprop.h>

Go to the source code of this file.

Names, defined in this module, to be mangled.

#define oski_CreateMatCSR   MANGLE_(oski_CreateMatCSR)
#define oski_CreateMatCSC   MANGLE_(oski_CreateMatCSC)
#define oski_CreateMatCSR_va   MANGLE_(oski_CreateMatCSR_va)
#define oski_CreateMatCSC_va   MANGLE_(oski_CreateMatCSC_va)
#define oski_CreateMatCSR_arr   MANGLE_(oski_CreateMatCSR_arr)
#define oski_CreateMatCSC_arr   MANGLE_(oski_CreateMatCSC_arr)
#define oski_CopyMat   MANGLE_(oski_CopyMat)
#define oski_DestroyMat   MANGLE_(oski_DestroyMat)
#define oski_CalcMat1Norm   MANGLE_(oski_CalcMat1Norm)
#define oski_GetMatProps   MANGLE_(oski_GetMatProps)

Defines

#define INC_OSKI_MATCREATE_H
 oski/matcreate.h has been included.

Functions

oski_matrix_t oski_CreateMatCSR (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k,...)
 Creates and returns a valid tunable matrix object from a compressed sparse row (CSR) representation.
oski_matrix_t oski_CreateMatCSR_va (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k, va_list ap)
 Explicit variable-argument version of oski_CreateMatCSR().
oski_matrix_t oski_CreateMatCSR_arr (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k, const oski_inmatprop_t *in_props)
 Explicit property-array version of oski_CreateMatCSR().
oski_matrix_t oski_CreateMatCSC (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k,...)
 Creates and returns a valid tunable matrix object from a compressed sparse column (CSC) representation.
oski_matrix_t oski_CreateMatCSC_va (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k, va_list ap)
 Variable-argument version of oski_CreateMatCSC.
oski_matrix_t oski_CreateMatCSC_arr (oski_index_t *Aptr, oski_index_t *Aind, oski_value_t *Aval, oski_index_t num_rows, oski_index_t num_cols, oski_copymode_t mode, int k, const oski_inmatprop_t *in_props)
 Explicit property-array version of oski_CreateMatCSC.
oski_matrix_t oski_CopyMat (const oski_matrix_t A_tunable)
 Creates a copy of a matrix object.
int oski_DestroyMat (oski_matrix_t A_tunable)
 Frees object memory associated with a given matrix object.
double oski_CalcMat1Norm (const oski_matrix_t A_tunable)
 Computes the 1-norm (maximum absolute row sum) of the specified matrix.
const oski_matcommon_toski_GetMatProps (const oski_matrix_t A)
 Returns a matrix's type-independent properties.


Function Documentation

double oski_CalcMat1Norm const oski_matrix_t  A  ) 
 

Computes the 1-norm (maximum absolute row sum) of the specified matrix.

Returns:
$||A||_1 = \max_{1 \leq i \leq m} \sum_{j=1}^n |a_{ij}|$, or -1 on error.

oski_matrix_t oski_CreateMatCSC_arr oski_index_t *  Aptr,
oski_index_t *  Aind,
oski_value_t *  Aval,
oski_index_t  num_rows,
oski_index_t  num_cols,
oski_copymode_t  mode,
int  k,
const oski_inmatprop_t in_props
 

Explicit property-array version of oski_CreateMatCSC.

Check input arguments.

Collect asserted input matrix properties.

Load CSC wrapping routine.

Create handle by wrapping input matrix in a matCSC_t data structure.

Cache streaming time for future cost estimates.

oski_matrix_t oski_CreateMatCSR_arr oski_index_t *  Aptr,
oski_index_t *  Aind,
oski_value_t *  Aval,
oski_index_t  num_rows,
oski_index_t  num_cols,
oski_copymode_t  mode,
int  k,
const oski_inmatprop_t in_props
 

Explicit property-array version of oski_CreateMatCSR().

Check input arguments.

Collect asserted input matrix properties.

Load CSR wrapping routine.

Create handle by wrapping input matrix in a matCSR_t data structure.

Cache streaming time for future cost estimates.

const oski_matcommon_t* oski_GetMatProps const oski_matrix_t  A  ) 
 

Returns a matrix's type-independent properties.

Parameters:
[in] A A valid tunable matrix object.
Returns:
A's type-independent properties (a read-only pointer to its oski_matcommon_t structure, valid only for the lifetime of A), or NULL on error.


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