hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suh Changhee (JIRA)" <j...@apache.org>
Subject [jira] Created: (HAMA-45) Add method's parameter order in a Vector and Matrix interface
Date Tue, 26 Aug 2008 02:03:44 GMT
Add method's parameter order in a Vector and Matrix interface 
--------------------------------------------------------------

                 Key: HAMA-45
                 URL: https://issues.apache.org/jira/browse/HAMA-45
             Project: Hama
          Issue Type: Improvement
          Components: interface
    Affects Versions: 0.1.0
            Reporter: Suh Changhee 
            Assignee: Suh Changhee 
            Priority: Minor
             Fix For: 0.1.0


In a Vector interface and Matrix interface, some "add" method has a little confusing parameter
order.
-> public Vector add(double alpha, Vector v); 

Parameter v is a target, alpha is a value.
I think the target parameter appearing first is more clearer.
 
For example, see another "add" method
-> public void add(int index, double value);
or "set" method.
-> public void set(int index, double value);

Index(target) parameter is first.
 
I'm goint to patch it.
 
Please advise.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message