#include <assert.h>
#include <stdio.h>
#include <oski/config.h>
#include <oski/common.h>
#include <oski/matrix.h>
#include <oski/getset.h>
#include <oski/CSR/module.h>
Functions | |
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_matCSR_t *A, oski_index_t i0, oski_index_t j0, oski_index_t b, 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 int SetEntry | ( | oski_matCSR_t * | A, | |
oski_index_t | i0, | |||
oski_index_t | j0, | |||
oski_index_t | b, | |||
oski_value_t | new_val | |||
) | [static] |
Returns 1 on success, or 0 on error.
References oski_matCSR_t::ind, oski_matCSR_t::ptr, oski_matCSR_t::val, VAL_ASSIGN, and VAL_SET_ZERO.