Given an array T of integers, if we want to multiply each item by 2, in Java we will do it via a for-loop (Known as scalar operation). With python 's numpy array, we can just multiply array by 2 (Known as vectorized operation).
My question is: Is there a way in Java that allows us to perform that multiply operation in a vectorized way?
And if Java doesn't support that, is there a reason why?
Update: I'm not asking for sugar syntax. It is about CPU instruction vectorization like SIMD What is "vectorization"?
Thank you.