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

Function format1dforcplusplus

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

Source from the content-addressed store, hash-verified

5import numpy as np
6
7def format1dforcplusplus(arr):
8 return '{' + ','.join(str(round(e)) for e in arr) + '}'
9
10def format2dforcplusplus(arr):
11 return '{' + ','.join(format1dforcplusplus(e) for e in arr) + '}'

Callers 2

format2dforcplusplusFunction · 0.85
convolve.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected