weibozhao commented on a change in pull request #24:
URL: https://github.com/apache/flink-ml/pull/24#discussion_r768301239



##########
File path: flink-ml-core/src/main/java/org/apache/flink/ml/linalg/BLAS.java
##########
@@ -52,4 +52,37 @@ public static double norm2(DenseVector x) {
     public static void scal(double a, DenseVector x) {
         JAVA_BLAS.dscal(x.size(), a, x.values, 1);
     }
-}
+
+    /**
+     * y = alpha * matrix * x + beta * y or y = alpha * (matrix^T) * x + beta 
* y.
+     *
+     * @param matrix m x n matrix.
+     * @param transMatrix Whether transposes matrix before multiply.
+     * @param x dense vector with size n.
+     * @param y dense vector with size m.
+     */
+    public static void gemv(
+        double alpha,
+        DenseMatrix matrix,
+        boolean transMatrix,
+        DenseVector x,
+        double beta,
+        DenseVector y) {
+        Preconditions.checkArgument(

Review comment:
       OK




-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to