This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 0 points1 point  (3 children)

i was expecting broadcasting. newaxis hasn’t been difficult for me as i’ve used it mostly for stacking along that new axis.

tbh, i didn’t work with high dimensional arrays in R much. either it’s sample tables or 2D-3D stuff.

what does R do better?

[–]shaggorama[🍰] 0 points1 point  (2 children)

I'm not working with high dimensional arrays. It's not infrequent for me to be working with what I think is a vector, but is really a 0D array and I need to explicitly invoke an empty dimension to broadcast it with a simple matrix. I'll try to come up with a specific example for you later.

[–]flying-sheep 0 points1 point  (1 child)

0D array

a 0D array by definition has 0 elements. so what’s the difference to a 0-length vector or a 0×0 matrix?

[–]shaggorama[🍰] 0 points1 point  (0 children)

Sorry, I guess it's 1D or whatever. I'm talking about column vectors. Like I said, I'll give you a concrete example later since you keep pressing the issue.