|
BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
Test sparse matrix-vector multiply tuning. More...
#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 [] |
Test sparse matrix-vector multiply tuning.
oski_value_t Aval[] [static] |
{
MAKE_VAL_COMPLEX (-2, 0), MAKE_VAL_COMPLEX (0.5, 0)
}
oski_value_t x[] [static] |
{
MAKE_VAL_COMPLEX (.25, 0),
MAKE_VAL_COMPLEX (.45, 0),
}
oski_value_t y[] [static] |
{ MAKE_VAL_COMPLEX (1, 0), MAKE_VAL_COMPLEX (1, 0), MAKE_VAL_COMPLEX (1,
0) }
oski_value_t y_true[] [static] |
{
MAKE_VAL_COMPLEX (.75, 0),
MAKE_VAL_COMPLEX (1.05, 0),
}
1.7.6.1