|
[Sponsors] |
July 4, 2016, 15:31 |
NV_VEC(vector) vs vector(ND_ND)
|
#1 |
New Member
Edoardo
Join Date: Nov 2015
Posts: 6
Rep Power: 12 |
Hi guys.
Do you know if there is a difference between these two ways of defining a vector? real NV_VEC(vector) real vector(ND_ND) |
|
July 5, 2016, 06:25 |
|
#2 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
real NV_VEC(psi); NV_D(psi, =, F_U(f,t), F_V(f,t), F_W(f,t)); While the vector(ND_ND) is used to declare matrix (2x2 and 3x3) for 2D and 3D, for example real A[ND_ND][ND_ND] for (i=0; i<ND_ND; ++i) for (j=0; j<ND_ND; ++j) A[i][j] = f(i, j); not sure I made myself clear. |
||
|
|