heur.c File Reference


Detailed Description

Test sparse matrix-vector multiply tuning.

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

Functions

static oski_matrix_t create_matrix (void)
static oski_vecview_t create_x (void)
static oski_vecview_t create_y (void)
static void test_should_pass_1 (int num_times)
static void tests_should_pass (int num_times)
int main (int argc, char *argv[])

Variables

static oski_index_t Aptr [] = { 0, 0, 1, 2 }
static oski_index_t Aind [] = { 0, 0 }
static oski_value_t Aval []
static oski_value_t x []
static oski_value_t y []
static oski_value_t alpha = MAKE_VAL_COMPLEX (-1, 0)
static oski_value_t beta = MAKE_VAL_COMPLEX (1, 0)
static oski_value_t y_true []


Variable Documentation

oski_value_t Aval[] [static]
 

Initial value:

 {
  MAKE_VAL_COMPLEX (-2, 0), MAKE_VAL_COMPLEX (0.5, 0)
}

oski_value_t x[] [static]
 

Initial value:

 {
  MAKE_VAL_COMPLEX (.25, 0),
  MAKE_VAL_COMPLEX (.45, 0),

}

oski_value_t y[] [static]
 

Initial value:

oski_value_t y_true[] [static]
 

Initial value:

 {
  MAKE_VAL_COMPLEX (.75, 0),
  MAKE_VAL_COMPLEX (1.05, 0),

}


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