Closed harold closed 2 years ago
Right- that is an issue. Theoretically any shape can be extended at any point with a '1' and nothing about the actual data layout changes. In this case the broadcast operator should be able to left-extend the source shape with '1's until it matches the target shape in length.
Great pic!
Fixed in 8.064
Okay! This is working:
Very cool.
https://user-images.githubusercontent.com/7443/151045166-1c81b938-9b81-4a58-95e3-38d3d9642154.mp4
Nice retro! Did you literally do the raster yourself?
I did. And with some new thoughts, as well.
Clojure is really a fun programming language.
Related: This gif made me realize how uptight might thinking had become:
Here are some of my thoughts about broadcast from the last couple days:
1) Docstring typos "Broadcase":
https://github.com/cnuernber/dtype-next/blob/5008ddbaf696ae5d66172caa4331eeb643f8d64d/src/tech/v3/datatype/base.clj#L967
2) Trouble broadcasting up more than one dimension, at least in this case:
Got a tensor:
Up one dimension, no problem:
Up two dimensions raises an exception:
But one at a time I can get the result I want:
hth- thanks for this awesome lib, it's definitely helping me down the path I'm on at the moment.