You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Ted Dunning (JIRA)" <ji...@apache.org> on 2009/12/19 03:43:18 UTC

[jira] Commented: (MAHOUT-226) Velocity-based code generation support to support more primitive type collections

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

Ted Dunning commented on MAHOUT-226:
------------------------------------

This bit looks a bit odd:

{noformat}
 public interface IntDoubleFunction {
 
   /**
    * Applies a function to two arguments.
    *
-   * @param first  first argument passed to the function.
-   * @param second second argument passed to the function.
+   * @param x the first argument passed to the function.
+   * @param y the second argument passed to the function.
    * @return the result of the function.
    */
-  double apply(int first, double second);
+    int apply(int x, double y);
 }
{noformat}

Looks like the new code conflicts with some previous code.

Shouldn't the generated code all be in a separate package.


> Velocity-based code generation support to support more primitive type collections
> ---------------------------------------------------------------------------------
>
>                 Key: MAHOUT-226
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-226
>             Project: Mahout
>          Issue Type: Task
>          Components: Matrix
>            Reporter: Benson Margulies
>         Attachments: codegen.patch
>
>
> We want the complete set of hash maps on the primitive types. The code can be generated. So here's a code generator to do it, and, to show it off, the TypeTypeFunction.java family set up to be generated.

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