You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/31 11:00:17 UTC
[jira] [Commented] (FLINK-3996) Add addition, subtraction and
multiply by scalar to DenseVector.scala and SparseVector.scala
[ https://issues.apache.org/jira/browse/FLINK-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307565#comment-15307565 ]
ASF GitHub Bot commented on FLINK-3996:
---------------------------------------
Github user danielblazevski commented on the pull request:
https://github.com/apache/flink/pull/2052
@chiwanpark done.
> 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)