Skip to content

Fix reorder documentation for second argument #202

Closed
@srenevey

Description

@srenevey

Using reorder() with what seems to be valid inputs makes the thread panic.

MWE:

let val = [1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12.];
let arr = Array::new(&val, Dim4::new(&[2, 3, 1, 2]));
let re_arr = reorder(&arr, Dim4::new(&[3, 2, 1, 2]));

Results in:

thread 'main' panicked at 'Error message: Size is incorrect
Last error: In function af_err af_reorder(af_array *, const af_array, const af::dim4 &)
In file src/api/c/reorder.cpp:84
Invalid dimension for argument 5
Expected: rdims[i] == allDims[rdims[i]]...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions