create.c File Reference


Detailed Description

Test matrix handle creation.

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

Functions

static void test_should_fail_1 (void)
static void test_should_fail_2 (void)
static void test_should_fail_3 (void)
static void tests_should_fail (void)
static void test_should_pass_1 (void)
static void test_should_pass_2 (void)
static void tests_should_pass (void)
int main (int argc, char *argv[])


Function Documentation

static void test_should_fail_1 void   )  [static]
 

User's initial matrix and data for

/ 1 0 0 \ A = | -2 1 0 | \ .5 0 1 /

This CSR representation has the following properties:

  • 0-based indices
  • Lower triangular
  • Implicit unit diagonal

Tunable matrix handle

static void test_should_fail_2 void   )  [static]
 

User's initial matrix and data for

/ 1 -2 .5 \ A = | -2 1 0 | \ .5 0 1 /

This CSR representation has the following properties:

  • 0-based indices
  • Symmetric, w/ lower triangular storage
  • Implicit unit diagonal

Tunable matrix handle

static void test_should_fail_3 void   )  [static]
 

User's initial matrix and data for

/ 1 0 0 \ A = | -2 1 0 | \ .5 0 1 /

This CSR representation has the following properties:

  • 0-based indices
  • Lower triangular
  • Implicit unit diagonal

Tunable matrix handle

static void test_should_pass_1 void   )  [static]
 

User's initial matrix and data for

/ 1 0 0 \ A = | -2 1 0 | \ .5 0 1 /

This CSR representation has the following properties:

  • 0-based indices
  • Lower triangular
  • Implicit unit diagonal

Tunable matrix handle

static void test_should_pass_2 void   )  [static]
 

User's initial matrix and data for

/ 1 -2 .5 \ A = | -2 1 0 | \ .5 0 1 /

This CSR representation has the following properties:

  • 0-based indices
  • Lower triangular
  • Implicit unit diagonal

Tunable matrix handle


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