zhipeng93 commented on a change in pull request #73:
URL: https://github.com/apache/flink-ml/pull/73#discussion_r834134335
##########
File path: flink-ml-core/src/main/java/org/apache/flink/ml/linalg/Vectors.java
##########
@@ -30,4 +30,9 @@ public static DenseVector dense(double... values) {
public static SparseVector sparse(int size, int[] indices, double[]
values) {
return new SparseVector(size, indices, values);
}
+
+ /** Converts a sparse vector to a dense vector. */
+ public static DenseVector toDense(SparseVector vec) {
Review comment:
Thanks for the comment. Let's follow the best practice :~
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]