You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2017/02/02 00:58:49 UTC
incubator-systemml git commit: [MINOR] Fixed malformed HTML error in
javadoc
Repository: incubator-systemml
Updated Branches:
refs/heads/master 6fad65d1d -> 633cb6787
[MINOR] Fixed malformed HTML error in javadoc
Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/633cb678
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/633cb678
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/633cb678
Branch: refs/heads/master
Commit: 633cb67874c4efc9f7619908f694031534767600
Parents: 6fad65d
Author: Deron Eriksson <de...@us.ibm.com>
Authored: Wed Feb 1 16:57:37 2017 -0800
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Wed Feb 1 16:57:37 2017 -0800
----------------------------------------------------------------------
.../org/apache/sysml/udf/lib/CumSumProd.java | 44 +++++++++++---------
1 file changed, 25 insertions(+), 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/633cb678/src/main/java/org/apache/sysml/udf/lib/CumSumProd.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/udf/lib/CumSumProd.java b/src/main/java/org/apache/sysml/udf/lib/CumSumProd.java
index bdb2231..e6a0aaa 100644
--- a/src/main/java/org/apache/sysml/udf/lib/CumSumProd.java
+++ b/src/main/java/org/apache/sysml/udf/lib/CumSumProd.java
@@ -34,21 +34,22 @@ import org.apache.sysml.udf.Scalar;
import org.apache.sysml.udf.Matrix.ValueType;
/**
- * Variant of cumsum:
- * Computes following two functions:
- *
+ * Variant of cumsum:<br>
+ * Computes following two functions:<br>
+ * <pre>
+ * <code>
* cumsum_prod = function (Matrix[double] X, Matrix[double] C, double start) return (Matrix[double] Y)
* # Computes the following recurrence in log-number of steps:
* # Y [1, ] = X [1, ] + C [1, ] * start;
* # Y [i+1, ] = X [i+1, ] + C [i+1, ] * Y [i, ]
* {
- * Y = X; P = C; m = nrow(X); k = 1;
- * Y [1, ] = Y [1, ] + C [1, ] * start;
- * while (k < m) {
- * Y [k+1 : m, ] = Y [k+1 : m, ] + Y [1 : m-k, ] * P [k+1 : m, ];
- * P [k+1 : m, ] = P [1 : m-k, ] * P [k+1 : m, ];
- * k = 2 * k;
- * }
+ * Y = X; P = C; m = nrow(X); k = 1;
+ * Y [1, ] = Y [1, ] + C [1, ] * start;
+ * while (k < m) {
+ * Y [k+1 : m, ] = Y [k+1 : m, ] + Y [1 : m-k, ] * P [k+1 : m, ];
+ * P [k+1 : m, ] = P [1 : m-k, ] * P [k+1 : m, ];
+ * k = 2 * k;
+ * }
* }
*
* cumsum_prod_reverse = function (Matrix[double] X, Matrix[double] C, double start) return (Matrix[double] Y)
@@ -56,19 +57,24 @@ import org.apache.sysml.udf.Matrix.ValueType;
* # Y [m, ] = X [m, ] + C [m, ] * start;
* # Y [i-1, ] = X [i-1, ] + C [i-1, ] * Y [i, ]
* {
- * Y = X; P = C; m = nrow(X); k = 1;
- * Y [m, ] = Y [m, ] + C [m, ] * start;
- * while (k < m) {
- * Y [1 : m-k, ] = Y [1 : m-k, ] + Y [k+1 : m, ] * P [1 : m-k, ];
- * P [1 : m-k, ] = P [k+1 : m, ] * P [1 : m-k, ];
- * k = 2 * k;
- * }
+ * Y = X; P = C; m = nrow(X); k = 1;
+ * Y [m, ] = Y [m, ] + C [m, ] * start;
+ * while (k < m) {
+ * Y [1 : m-k, ] = Y [1 : m-k, ] + Y [k+1 : m, ] * P [1 : m-k, ];
+ * P [1 : m-k, ] = P [k+1 : m, ] * P [1 : m-k, ];
+ * k = 2 * k;
+ * }
* }
+ * </code>
+ * </pre>
*
- * The API of this external built-in function is as follows:
- *
+ * The API of this external built-in function is as follows:<br>
+ * <pre>
+ * <code>
* func = externalFunction(matrix[double] X, matrix[double] C, double start, boolean isReverse) return (matrix[double] Y)
* implemented in (classname="org.apache.sysml.udf.lib.CumSumProd",exectype="mem");
+ * </code>
+ * </pre>
*/
public class CumSumProd extends PackageFunction {