walterddr commented on a change in pull request #9732: [FLINK-14153][ml] Add to
BLAS a method that performs DenseMatrix and SparseVector multiplication.
URL: https://github.com/apache/flink/pull/9732#discussion_r338807443
##########
File path:
flink-ml-parent/flink-ml-lib/src/main/java/org/apache/flink/ml/common/linalg/BLAS.java
##########
@@ -19,26 +19,59 @@
package org.apache.flink.ml.common.linalg;
+import org.apache.flink.util.Preconditions;
+
/**
* A utility class that provides BLAS routines over matrices and vectors.
*/
public class BLAS {
+
+ // For level-1 routines, we use Java implementation.
private static final com.github.fommil.netlib.BLAS NATIVE_BLAS =
com.github.fommil.netlib.BLAS.getInstance();
+
+ // For level-2 and level-3 routines, we use the native BLAS.
Review comment:
nit: use `/* */`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services