Replaced cython calls for dot operations with BLAS calls