![]() |
|
|
+ Search |
![]()
|
Jun 13th, 2000 20:30
unknown unknown, Konrad Hinsen
For a specific known shape, just assign a new one: array.shape = (3, 4) For suppressing all axes of length one, no matter where, you can write array.shape = Numeric.repeat(array.shape, Numeric.not_equal(array.shape, 1)) Note that this changes the array, it does not create a new one.