Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Testing latest pari + WASM + node.js... and it works?! Wow.

28485 views
License: GPL3
ubuntu2004
1
/* Copyright (C) 2000 The PARI group.
2
3
This file is part of the PARI/GP package.
4
5
PARI/GP is free software; you can redistribute it and/or modify it under the
6
terms of the GNU General Public License as published by the Free Software
7
Foundation; either version 2 of the License, or (at your option) any later
8
version. It is distributed in the hope that it will be useful, but WITHOUT
9
ANY WARRANTY WHATSOEVER.
10
11
Check the License for details. You should have received a copy of it, along
12
with the package; see the file 'COPYING'. If not, write to the Free Software
13
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
14
15
#define mael2(m,x1,x2) (((GEN*) (m))[x1][x2])
16
#define mael3(m,x1,x2,x3) (((GEN**) (m))[x1][x2][x3])
17
#define mael4(m,x1,x2,x3,x4) (((GEN***) (m))[x1][x2][x3][x4])
18
#define mael5(m,x1,x2,x3,x4,x5) (((GEN****)(m))[x1][x2][x3][x4][x5])
19
#define mael mael2
20
21
#define gmael1(m,x1) (((GEN*) (m))[x1])
22
#define gmael2(m,x1,x2) (((GEN**) (m))[x1][x2])
23
#define gmael3(m,x1,x2,x3) (((GEN***) (m))[x1][x2][x3])
24
#define gmael4(m,x1,x2,x3,x4) (((GEN****) (m))[x1][x2][x3][x4])
25
#define gmael5(m,x1,x2,x3,x4,x5) (((GEN*****)(m))[x1][x2][x3][x4][x5])
26
#define gmael(m,x,y) gmael2(m,x,y)
27
#define gel(m,x) gmael1(m,x)
28
29
#define gcoeff(a,i,j) (((GEN**)(a))[j][i])
30
#define coeff(a,i,j) (((GEN*)(a))[j][i])
31
32
#define GSTR(x) ((char*) (((GEN) (x)) + 1 ))
33
34