TRIQS / nda

C++ library for multi-dimensional arrays
https://triqs.github.io/nda
Other
13 stars 11 forks source link

reshape and reshaped_view syntax #32

Closed jasonkaye closed 1 year ago

jasonkaye commented 1 year ago

When calling reshape or reshaped_view, the syntax

reshape(A,i,j,k)

would be preferable to the current one, which requires you to pass in a vector specifying the shape. Also,

A.reshape(i,j,k)

would be fine as well.

Wentzell commented 1 year ago

Dear @jasonkaye,

Thank you for the suggestion.

The free reshape function has been extended to allow for the first syntax you suggested.