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

Mikalai Parafeniuk commented on HAMA-524:
-----------------------------------------

I thought that "init" method will be useful when user doesn't exactly knows 
matrix size in creation time (for example, reading matrix from file). But you 
are totally right, that it is easily to forget to call "init" method after 
matrix creation. So I created new constructor in {{AbstractMatrixFormat}} and 
{{AbstractVectorFormat}} classes. Constructor looks like this:
{code:java}
  public AbstractMatrixFormat(int rows, int columns) {
    this.rows = rows;
    this.columns = columns;
    init();
}
{code}
I think that RandomAccessSparse matrix format will be useful, so I added it. 
Refactored code with new format can be found in my github repository. Thanks 
for response, Thomas.
                
> [GSoC 2012] Sparse Matrix-Vector multiplication (SpMV) on Hama
> --------------------------------------------------------------
>
>                 Key: HAMA-524
>                 URL: https://issues.apache.org/jira/browse/HAMA-524
>             Project: Hama
>          Issue Type: New Feature
>          Components: bsp core, examples, math
>            Reporter: Edward J. Yoon
>            Assignee: Mikalai Parafeniuk
>              Labels: gsoc, gsoc2012, newbie
>
> Implement Efficient and Fast SpMV algorithm which can be widely used in 
> scientific computing, financial modeling, information retrieval, and others, 
> using Hama Bulk Synchronous Parallel framework.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to