blas1.c File Reference


Detailed Description

Test BLAS 1 wrappers.

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

Defines

#define X0_LEN   12
#define Y0_LEN   12

Functions

static oski_value_t * duplicate_vec (const oski_value_t *x0, oski_index_t len)
static void delete_vec (oski_value_t *x)
static void print_vecview (const oski_vecview_t x, const char *message)
static void tests_should_fail (void)
static void testzero_should_pass (oski_index_t m, oski_index_t n, oski_storage_t orient, oski_index_t stride)
static void testscale_should_pass (oski_index_t m, oski_index_t n, oski_storage_t orient, oski_index_t stride)
static void testaxpy_should_pass (oski_index_t m, oski_index_t n, oski_storage_t orient, oski_index_t stride)
static void tests_should_pass (void)
int main (int argc, char *argv[])

Variables

oski_value_t g_x0 [X0_LEN]
oski_value_t g_y0 [Y0_LEN]


Variable Documentation

oski_value_t g_x0[X0_LEN]
 

Initial value:

 {
  MAKE_VAL_COMPLEX (.1, -.1),
  MAKE_VAL_COMPLEX (.2, -.2),
  MAKE_VAL_COMPLEX (.3, -.3),
  MAKE_VAL_COMPLEX (.4, -.4),
  MAKE_VAL_COMPLEX (.5, -.5),
  MAKE_VAL_COMPLEX (.6, -.6),
  MAKE_VAL_COMPLEX (.7, -.7),
  MAKE_VAL_COMPLEX (.8, -.8),
  MAKE_VAL_COMPLEX (.9, -.9),
  MAKE_VAL_COMPLEX (1.0, -1.0),
  MAKE_VAL_COMPLEX (1.1, -1.1),

}

oski_value_t g_y0[Y0_LEN]
 

Initial value:

 {
  MAKE_VAL_COMPLEX (-.21, .21),
  MAKE_VAL_COMPLEX (-.22, .22),
  MAKE_VAL_COMPLEX (-.23, .23),
  MAKE_VAL_COMPLEX (-.24, .24),
  MAKE_VAL_COMPLEX (-.25, .25),
  MAKE_VAL_COMPLEX (-.26, .26),
  MAKE_VAL_COMPLEX (-.27, .27),
  MAKE_VAL_COMPLEX (-.28, .28),
  MAKE_VAL_COMPLEX (-.29, .29),
  MAKE_VAL_COMPLEX (-.30, .30),
  MAKE_VAL_COMPLEX (-.31, .31),
  MAKE_VAL_COMPLEX (-.32, .32),
}


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