incubator-hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: [jira] Commented: (HAMA-80) Add identity(int m, int n) which returns an m-by-n matrix with ones on the diagonal and zeros elsewhere.
Date Mon, 13 Oct 2008 09:43:49 GMT
Well, I'm not sure it is possible simply. However, we should able to
get the inverse of random/identity/.. matrix so let's store it at this
moment. :)

/Edward

On Mon, Oct 13, 2008 at 6:34 PM, Samuel Guo (JIRA) <jira@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/HAMA-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638992#action_12638992
]
>
> Samuel Guo commented on HAMA-80:
> --------------------------------
>
> Hmm, can we create some virtual InputFormat & OutFormat for Identity Matrix, so that
It can be used in MapReduce ?
>
>> Add identity(int m, int n) which returns an m-by-n matrix with ones on the diagonal
and zeros elsewhere.
>> --------------------------------------------------------------------------------------------------------
>>
>>                 Key: HAMA-80
>>                 URL: https://issues.apache.org/jira/browse/HAMA-80
>>             Project: Hama
>>          Issue Type: New Feature
>>          Components: implementation
>>            Reporter: Edward J. Yoon
>>            Assignee: Edward J. Yoon
>>            Priority: Minor
>>             Fix For: 0.1.0
>>
>>         Attachments: HAMA-80.patch
>>
>>
>> double[][] X;
>>       for (int i = 0; i < m; i++) {
>>          for (int j = 0; j < n; j++) {
>>             X[i][j] = (i == j ? 1.0 : 0.0);
>>          }
>>       }
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>



-- 
Best regards, Edward J. Yoon
edwardyoon@apache.org
http://blog.udanax.org

Mime
View raw message