MCPcopy Create free account
hub / github.com/GollyGang/ready / format3dforcplusplus

Function format3dforcplusplus

Scripts/Python/convolve.py:13–14  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

11 return '{' + ','.join(format1dforcplusplus(e) for e in arr) + '}'
12
13def format3dforcplusplus(arr):
14 return '{' + ','.join('\n'+format2dforcplusplus(e) for e in arr) + '}'
15
16# obtain a 2D tri-Laplacian stencil by convolving lap2d with bilap2d
17lap2d = np.array([[1,4,1], [4,-20,4], [1,4,1]]) # / 6h^2

Callers 1

convolve.pyFile · 0.85

Calls 1

format2dforcplusplusFunction · 0.85

Tested by

no test coverage detected