BeBOP Optimized Sparse Kernel Interface Library
1.0.1h
|
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[]) |
Test matrix handle creation.
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:
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:
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:
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:
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:
Tunable matrix handle
References INDEX_ZERO_BASED, MAT_SYMM_LOWER, MAT_UNIT_DIAG_IMPLICIT, oski_PrintDebugMessage(), and SHARE_INPUTMAT.