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
I create a 4dim matrix and then print the elements using createIndexer.toString()
code:
public void testToString4D() {
Mat mat = mat4d(5, 4, 2, 3);
System.out.println(mat.createIndexer().toString());
}
private Mat mat4d(int s1, int s2, int s3, int s4) {
int[] data = new int[s1 * s2 * s3 * s4];
for (int n = 0; n < s1 * s2 * s3 * s4; n++)
data[n] = n;
Mat mat = new Mat(data).reshape(1, 4, new int[] { s1, s2, s3, s4 });
return mat;
}
I create a 4dim matrix and then print the elements using createIndexer.toString()
code:
It shows
The deepest dimension is completely missing, instead it shows just a single double with what looks like the forst element of the deepest dimension
The text was updated successfully, but these errors were encountered: