bqn-npy/gentest.py
2023-10-04 17:21:45 +02:00

12 lines
303 B
Python

import numpy as np
def main():
for endianness in "<>":
for typ in "fiu":
for size in "48":
dtype=endianness + typ + size
arr = np.zeros((2,3,4), dtype=dtype)
np.save(f"test{dtype}.npy", arr)
if __name__ == '__main__':
main()