capital-G / musikinformatik-sose2021

Course materials for Musikinformatik course SoSe 2021 at RSH Düsseldorf
https://capital-g.github.io/musikinformatik-sose2021/
6 stars 2 forks source link

one-to-one comparison #56

Open telephon opened 2 years ago

telephon commented 2 years ago

It would be nice to have a one-to-one comparison of the array indexing / manipulation functions in numpy and sclang.

Good sources for sclang:

capital-G commented 2 years ago

What about this segment? Maybe one should enhance it in direct comparison to SC? https://capital-g.github.io/musikinformatik-sose2021/00_basics/py_dimensions.html#working-with-matrices

telephon commented 2 years ago

The interface for the Image class in sclang is not very good actually. One would need to write helper functions...

capital-G commented 2 years ago

I think w/o any sort of easy visualization possibility it is difficult to make the 1:1 comparison obvious to understand on higher dim arrays and at the same time I also am not used to lots of slicing operations in SC (those are only possible with the matrix plugin but isn't this limited to 2dim data which do not reflect our 3 dim tensor of an image X x Y x (R x G x B)).

telephon commented 2 years ago

The slicing operations are documented under J-concepts in SC.

I am also not sure what would be a good illustration. A 1:1 syntax comparison may help in any case.

capital-G commented 2 years ago

Cool, was not aware of this, wished I would have knowen this sooner

telephon commented 2 years ago

sorry, thought I had mentioned it, but probably too briefly ...