Matrix  $Rev: 3071 $ at $LastChangedDate: 2015-03-26 15:35:47 +0100 (Thu, 26 Mar 2015) $
t_sparseVector.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static R_INLINE Type_ans sparseVector_sub (int64_t i, int nnz_v, double *v_i, Type_ans *v_x, int64_t len_v)
 Indexing a sparseVector 'vec', including recycling it (conceptually), i.e. More...
 

Function Documentation

static R_INLINE Type_ans sparseVector_sub ( int64_t  i,
int  nnz_v,
double *  v_i,
Type_ans *  v_x,
int64_t  len_v 
)
static

Indexing a sparseVector 'vec', including recycling it (conceptually), i.e.

return vec[i]

Parameters
iindex (0-based, contrary to the i-slot)
nnz_vthe number of non-zero entries of 'vec' == length(vec@ i)
v_i(a int * pointer to) the 'i' slot of 'vec'
v_x(a ... * pointer to) the 'x' slot of 'vec'
len_vinteger = the 'length' slot of 'vec
Returns

Definition at line 132 of file t_sparseVector.c.