You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org> on 2015/06/03 01:31:49 UTC

[jira] [Created] (MAHOUT-1725) elementwise power operator ^

Dmitriy Lyubimov created MAHOUT-1725:
----------------------------------------

             Summary: elementwise power operator ^
                 Key: MAHOUT-1725
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1725
             Project: Mahout
          Issue Type: Improvement
            Reporter: Dmitriy Lyubimov
            Assignee: Dmitriy Lyubimov
             Fix For: 0.10.2


this is a power elementwise operation on in-core and out-of-core tensor types. it is only defined on (tensor-type, Double) pair. This is consistent with R caret operator. 

e.g. computing distance between two points(vectors) x and y:

        sqrt((x-y) ^= 2 sum)

Danger is that for integral types in Scala interpret this as exclusive or, which is something completely different altogether .



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