You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Matthias Boehm (JIRA)" <ji...@apache.org> on 2017/03/01 02:05:45 UTC

[jira] [Updated] (SYSTEMML-1357) Fix value type promotion semantics of all scalar-scalar operations

     [ https://issues.apache.org/jira/browse/SYSTEMML-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Boehm updated SYSTEMML-1357:
-------------------------------------
    Description: 
Right now our value type promotion semantics are inconsistent across matrices and scalars and across different types of binary scalar-scalar operations (relational, arithmetic, builtin). This task aims to fix this and establish the following value type promotion semantics:

* if any input type is double, both inputs are interpreted as doubles 
* else if any input type is long, both inputs are interpreted as long
* else if any input type is boolean, both inputs are interpreted as boolean

Furthermore, (1) strings are not part of type promotion, and (2) boolean true/false is interpreted as 1/0 (consistent with matrix relational operations).

  was:
Right now our value type promotion semantics are inconsistent across matrices and scalars and across different types of binary scalar-scalar operations (relational, arithmetic, builtin). This task aims to fix this and establish the following value type promotion semantics:
* if any input type is double, both inputs are interpreted as doubles 
* else if any input type is long, both inputs are interpreted as long
* else if any input type is boolean, both inputs are interpreted as boolean

Furthermore, (1) strings are not part of type promotion, and (2) boolean true/false is interpreted as 1/0 (consistent with matrix relational operations).


> Fix value type promotion semantics of all scalar-scalar operations
> ------------------------------------------------------------------
>
>                 Key: SYSTEMML-1357
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1357
>             Project: SystemML
>          Issue Type: Bug
>            Reporter: Matthias Boehm
>
> Right now our value type promotion semantics are inconsistent across matrices and scalars and across different types of binary scalar-scalar operations (relational, arithmetic, builtin). This task aims to fix this and establish the following value type promotion semantics:
> * if any input type is double, both inputs are interpreted as doubles 
> * else if any input type is long, both inputs are interpreted as long
> * else if any input type is boolean, both inputs are interpreted as boolean
> Furthermore, (1) strings are not part of type promotion, and (2) boolean true/false is interpreted as 1/0 (consistent with matrix relational operations).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)