You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2008/10/13 12:02:46 UTC
[jira] Resolved: (HAMA-80) Add identity(int m, int n) which returns
an m-by-n matrix with ones on the diagonal and zeros elsewhere.
[ https://issues.apache.org/jira/browse/HAMA-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edward J. Yoon resolved HAMA-80.
--------------------------------
Resolution: Fixed
I just committed this. Let's optimizing next step.
> 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.