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



##########
File path: 
flink-ml-api/src/main/java/org/apache/flink/ml/linalg/DenseVector.java
##########
@@ -60,6 +75,74 @@ public boolean equals(Object obj) {
         return Arrays.equals(values, ((DenseVector) obj).values);
     }
 
+    /**
+     * Parse the dense vector from a formatted string.
+     *
+     * <p>The format of a dense vector is space separated values such as "1 2 
3 4".
+     *
+     * @param str A string of space separated values.
+     * @return The parsed vector.
+     */
+    public static DenseVector fromString(String str) {

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