scalanlp / breeze

Breeze is/was a numerical processing library for Scala.
https://www.scalanlp.org
Apache License 2.0
3.45k stars 692 forks source link

vectorization and simd #787

Closed lecssmi closed 4 years ago

lecssmi commented 4 years ago

Can you use this library to achieve vectorized calculations? If yes, and Java and Scala do not have vectorized operators. How is this library implemented at the bottom?

dlwh commented 4 years ago

For dense vectors and matrices, Breeze relies on https://github.com/fommil/netlib-java . In particular, if you use the breeze-natives dependency, netlib-java will attempt to load your system's native BLAS, which is likely to be vectorized, especially if you follow the setup instructions in netlib-java.