bcsr.c File Reference


Detailed Description

Test basic kernel operations for a matrix in BCSR format.

Also implicitly tests oski_ApplyMatTransforms().

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <oski/common.h>
#include <oski/matrix.h>
#include <oski/matcreate.h>
#include <oski/tune.h>
#include "abort_prog.h"
#include "array_util.h"
#include "readhbpat.h"

Defines

#define CONV_TEMPLATE

Functions

void check_MatMult (const oski_matrix_t A0, const oski_matrix_t A1, oski_index_t m, oski_index_t n)
 Verify that the input and tuned matrix return approximately the same answers for $A\cdot x$.
void check_MatTransMult (const oski_matrix_t A0, const oski_matrix_t A1, oski_index_t m, oski_index_t n)
 Verify that the input and tuned matrix return approximately the same answers for $A^T\cdot x$.
void check_MatConjTransMult (const oski_matrix_t A0, const oski_matrix_t A1, oski_index_t m, oski_index_t n)
 Verify that the input and tuned matrix return approximately the same answers for $\bar{A}^T\cdot x$.
int main (int argc, char *argv[])


Define Documentation

#define CONV_TEMPLATE
 

Value:

"A_new = BCSR( InputMat, %d, %d )\n" \
    "return A_new"


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