hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Trivial Update of "InterfaceConsiderations" by udanax
Date Fri, 08 Aug 2008 05:15:21 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.

The following page has been changed by udanax:
http://wiki.apache.org/hama/InterfaceConsiderations

The comment on the change is:
Add vector-norms

------------------------------------------------------------------------------
     * @param type
     * @return norm of the vector
     */
-   public double norm(Vector.Norm type);
+   public double norm(Norm type);
+ 
+   /**
+    * Supported vector-norms.
+    */
+   enum Norm {
+ 
+     /** Sum of the absolute values of the entries */
+     One,
+ 
+     /** The root of sum of squares */
+     Two,
+ 
+     /**
+      * As the 2 norm may overflow, an overflow resistant version is also
+      * available. Note that it may be slower.
+      */
+     TwoRobust,
+ 
+     /** Largest entry in absolute value */
+     Infinity
+   }
  }
  
  }}}

Mime
View raw message