Go to the source code of this file.
|
#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...
|
|
|
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...
|
|
◆ MATRIX_ELEM
#define MATRIX_ELEM |
( |
|
mat, |
|
|
|
i, |
|
|
|
j |
|
) |
| (mat[i * N + j]) |
◆ modMult
#define modMult |
( |
|
a, |
|
|
|
s, |
|
|
|
c, |
|
|
|
m |
|
) |
| ((MODULAR_NUMBER_TYPE)(((cl_ulong) a * s + c) % m)) |
◆ 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.