[ 
https://issues.apache.org/jira/browse/MAHOUT-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988069#comment-13988069
 ] 

Dmitriy Lyubimov commented on MAHOUT-1532:
------------------------------------------

[~ssc] i think R solve also makes second parameter optional with a default 
eye(). In our case we could just define yet another solve() with single 
parameter that just returns an inverse. This is a bad practice but i think we 
need it just to be consistent with R. 

[~tdunning] what you are inquiring about i guess in our case analytically would 
correspond to 
{code}
solve(X.t %*% X - diag(lambda, X.nrow), X.t %*% y) 
{code}
but solve() doesn't do it in either R nor i think it is an intent here either.

> Add solve() function to the Scala DSL 
> --------------------------------------
>
>                 Key: MAHOUT-1532
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1532
>             Project: Mahout
>          Issue Type: Bug
>          Components: Math
>            Reporter: Sebastian Schelter
>             Fix For: 1.0
>
>         Attachments: MAHOUT-1532.patch
>
>
> We should add a solve() function to the Scala DSL with helps with solving Ax 
> = b for in-core matrices and vectors.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to