#include <assert.h>
#include <stdio.h>
#include <oski/config.h>
#include <oski/common.h>
#include <oski/matrix.h>
#include <oski/getset.h>
#include <oski/VBR/module.h>
Functions | |
static oski_index_t | FindRowVBR (const oski_matVBR_t *A, oski_index_t I_min, oski_index_t I_max, oski_index_t i0) |
Find block row containing a given row using binary search. | |
int | oski_GetMatReprEntry (const void *mat, const oski_matcommon_t *props, oski_index_t row, oski_index_t col, oski_value_t *p_value) |
static int | SetEntry (oski_matVBR_t *A, oski_index_t i0, oski_index_t j0, oski_value_t new_val) |
Returns 1 on success, or 0 on error. | |
int | oski_SetMatReprEntry (void *mat, const oski_matcommon_t *props, oski_index_t row, oski_index_t col, oski_value_t new_val) |
static oski_index_t FindRowVBR | ( | const oski_matVBR_t * | A, | |
oski_index_t | I_min, | |||
oski_index_t | I_max, | |||
oski_index_t | i0 | |||
) | [static] |
static int SetEntry | ( | oski_matVBR_t * | A, | |
oski_index_t | i0, | |||
oski_index_t | j0, | |||
oski_value_t | new_val | |||
) | [static] |
Returns 1 on success, or 0 on error.
Input indices (i0, j0) are 0-based.
References FindRowVBR(), VAL_ASSIGN, and VAL_SET_ZERO.