create.c File Reference

Test matrix handle creation. More...

#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[])


Detailed Description

Test matrix handle creation.


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

References INDEX_ONE_BASED, INDEX_ZERO_BASED, MAT_DIAG_EXPLICIT, MAT_GENERAL, MAT_TRI_LOWER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.

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

References INDEX_ONE_BASED, INDEX_ZERO_BASED, MAT_SYMM_LOWER, MAT_SYMM_UPPER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.

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

References INDEX_ZERO_BASED, MAT_TRI_LOWER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.

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

References INDEX_ZERO_BASED, MAT_TRI_LOWER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.

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

References INDEX_ZERO_BASED, MAT_SYMM_LOWER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.


Generated on Fri Apr 8 22:35:19 2011 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.5.9