matmult.c File Reference


Detailed Description

Test sparse matrix-vector multiply.

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <oski/common.h>
#include <oski/matcreate.h>
#include <oski/matmult.h>

Functions

static oski_matrix_t create_matrix (void)
static oski_vecview_t create_x (void)
static oski_vecview_t create_x_short (void)
static oski_vecview_t create_y (void)
static void test_should_fail_1 (void)
static void test_should_fail_2 (void)
static void tests_should_fail (void)
static void test_should_pass_1 (void)
static void tests_should_pass (void)
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 [] = { -2, 0.5 }
static oski_value_t x [] = { .25, .45, .65 }
static oski_value_t y [] = { 1, 1, 1 }
static oski_value_t alpha = -1
static oski_value_t beta = 1
static oski_value_t y_true [] = { .75, 1.05, .225 }


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