daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

Reshape() by row or column functionality #915

Open Garic152 opened 6 days ago

Garic152 commented 6 days ago

While working on #876, I noticed that the matrix() function from systemds supports a byrow=bool argument which, when used to reshape a matrix, can control whether to reshape it row by row or column by column.

This feature isn't yet included in daphne, so I had to do a little workaround by first transposing the matrix and then using the reshape() function.

A byrow=bool argument like in systemds might be useful in daphne as well, if there are usecases where reshaping column by column is used often.