GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
modular.c.h File Reference

Go to the source code of this file.

Macros

#define MATRIX_ELEM(mat, i, j)   (mat[i * N + j])
 
#define modMult(a, s, c, m)   ((MODULAR_NUMBER_TYPE)(((cl_ulong) a * s + c) % m))
 Compute (a*s + c) % m. More...
 

Functions

void modMatVec (size_t N, MODULAR_NUMBER_TYPE *A, MODULAR_NUMBER_TYPE *s, MODULAR_NUMBER_TYPE *v, MODULAR_NUMBER_TYPE m)
 Matrix-vector modular multiplication. More...
 

Macro Definition Documentation

◆ MATRIX_ELEM

#define MATRIX_ELEM (   mat,
  i,
 
)    (mat[i * N + j])

◆ modMult

#define modMult (   a,
  s,
  c,
 
)    ((MODULAR_NUMBER_TYPE)(((cl_ulong) a * s + c) % m))

Compute (a*s + c) % m.

Function Documentation

◆ modMatVec()

void modMatVec ( size_t  N,
MODULAR_NUMBER_TYPE *  A,
MODULAR_NUMBER_TYPE *  s,
MODULAR_NUMBER_TYPE *  v,
MODULAR_NUMBER_TYPE  m 
)

Matrix-vector modular multiplication.