call overhead still way too big
This commit is contained in:
parent
a6e601b648
commit
6c3313d7c9
2 changed files with 8 additions and 4 deletions
|
|
@ -30,7 +30,8 @@ const int diy = sz;
|
|||
const int diz = 1;
|
||||
"""
|
||||
|
||||
# Given a linear index i and shape sx, sy, sz, defines x, y, and z as the 3D indices of the current element (i).
|
||||
# Given a linear index i and shape sx, sy, sz, defines x, y, and z
|
||||
# as the 3D indices of the current element (i).
|
||||
xyz_source = """
|
||||
// Convert linear index to field index (xyz)
|
||||
const int x = i / (sz * sy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue