numjs
numjs copied to clipboard
Array creation type issue
The instructions indicate that
nj.array(new Uint8Array([1, 2, 3]));
and
nj.array([1, 2, 3], "uint8");
are the same, but in fact the first one returns an object with dtype="array", while the second one returns an object with dtype="uint8".