You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have a solution for this?
Also, is it possible to provide a super simple example file to show how the input should look and how the command for said file should look so someone that is new to C++ tools like myself can get some more help
import numpy as np
a = np.arange(1, 1024000, 1, dtype=float)
with open("example_file.txt", "w") as f:
for i in a:
f.write(f"{i}, ")
f.close()
The text was updated successfully, but these errors were encountered:
Hi @pbjarterot, the input is expected to be a file of binary floating-point values, with 4 bytes per float for the default single-precision setting and 8 bytes per float for -t double.
From how I understand the numpy documentation, you should be able to output the desired format through ndarray.tofile().
-n takes one, two or three arguments for a one, two or three-dimensional input array respectively. For the file resulting from your array a this would be -n 1024000.
Thank you, now it works, however, changing different values for n, i still get the ratio 1.0 every time, is this due to the type of data or any input argument?
Hi,
I've been trying to use build/compress with an example file i generated in python, as below. I keep getting the error
i've tried many different values for -n but none seem to work, the last being
Do you have a solution for this?
Also, is it possible to provide a super simple example file to show how the input should look and how the command for said file should look so someone that is new to C++ tools like myself can get some more help
The text was updated successfully, but these errors were encountered: