Daniel Blazevski created FLINK-3996:
---------------------------------------

             Summary: Add addition, subtraction and multiply by scalar to 
DenseVector.scala and SparseVector.scala
                 Key: FLINK-3996
                 URL: https://issues.apache.org/jira/browse/FLINK-3996
             Project: Flink
          Issue Type: Improvement
            Reporter: Daniel Blazevski
            Assignee: Daniel Blazevski
            Priority: Minor


Small change to add vector operations. With this small change, can now do 
things like:

val v1 = DenseVector(0.1, 0.1)
val v2 = DenseVector(0.2, 0.2)
val v3 = v1 + v2
instead of what is now has to be done:

val v1 = DenseVector(0.1, 0.1)
val v2 = DenseVector(0.2, 0.2)
val v3 = (v1.asBreeze + v2.asBreeze).fromBreeze



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to