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

Glenn Weidner updated SYSTEMML-515:
-----------------------------------
    Fix Version/s:     (was: SystemML 1.0)
                   SystemML 0.13

> 'Sparsity' Parameter For `rand` Statement Should Allow An Expression
> --------------------------------------------------------------------
>
>                 Key: SYSTEMML-515
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-515
>             Project: SystemML
>          Issue Type: Improvement
>            Reporter: Mike Dusenberry
>             Fix For: SystemML 0.13
>
>
> The {{rand(...)}} function has a {{sparsity}} parameter that allows one to 
> specify the desired sparsity of the generated matrix as in
> {code}
> X = rand(rows=10, cols=20, min=0, max=1, pdf=”uniform”, sparsity=0.2)
> {code}.
> Currently, the {{sparsity}} parameter only accepts {{Literal}} inputs, i.e. 
> hard-coded double values, or variables that are themselves hard-coded double 
> values.  It would be better to allow an expression that evaluates to a double 
> value, such as the following, simple, contrived example:
> {code}
> s = log(0.2)
> X = rand(rows=10, cols=20, min=0, max=1, pdf=”uniform”, sparsity=s)
> {code}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to