[SYSTEMML-1923] Support sinh, cosh and tanh as built-in functions - Added sinh, cosh and tanh builtin functions to CP, Spark and GPU backend. - Added these functions to Python DSL. - Also, updated the DML language reference and Python reference documentation.
Closes #668. Project: http://git-wip-us.apache.org/repos/asf/systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/d74abab1 Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/d74abab1 Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/d74abab1 Branch: refs/heads/gh-pages Commit: d74abab185bb60f4a3c7b88f145a5523031d9179 Parents: c95108c Author: Niketan Pansare <npan...@us.ibm.com> Authored: Thu Sep 21 10:06:04 2017 -0700 Committer: Niketan Pansare <npan...@us.ibm.com> Committed: Thu Sep 21 10:07:15 2017 -0700 ---------------------------------------------------------------------- dml-language-reference.md | 2 +- python-reference.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/systemml/blob/d74abab1/dml-language-reference.md ---------------------------------------------------------------------- diff --git a/dml-language-reference.md b/dml-language-reference.md index bd66a42..d8ca07f 100644 --- a/dml-language-reference.md +++ b/dml-language-reference.md @@ -822,7 +822,7 @@ is same as Function | Description | Parameters | Example -------- | ----------- | ---------- | ------- exp(), log(), abs(), sqrt(), round(), floor(), ceil() | Apply mathematical function on input (cell wise if input is matrix) | Input: (<matrix>), or (<scalar>) <br/> Output: <matrix>, or <scalar> | sqrt(X) <br/> log(X,y) <br/> round(X) <br/> floor(X) <br/> ceil(X) -sin(), cos(), tan(), asin(), acos(), atan() | Apply trigonometric function on input (cell wise if input is matrix) | Input: (<matrix>), or (<scalar>) <br/> Output: <matrix>, or <scalar> | sin(X) +sin(), cos(), tan(), sinh(), cosh(), tanh(), asin(), acos(), atan() | Apply trigonometric function on input (cell wise if input is matrix) | Input: (<matrix>), or (<scalar>) <br/> Output: <matrix>, or <scalar> | sin(X) sign() | Returns a matrix representing the signs of the input matrix elements, where 1 represents positive, 0 represents zero, and -1 represents negative | Input : (A <matrix>) <br/> Output : <matrix> | <span style="white-space: nowrap;">A = matrix("-5 0 3 -3",</span> rows=2, cols=2) <br/>signA = sign(A)<br/>Matrix signA: [[-1, 0], [1, -1]] http://git-wip-us.apache.org/repos/asf/systemml/blob/d74abab1/python-reference.md ---------------------------------------------------------------------- diff --git a/python-reference.md b/python-reference.md index 119c1d0..4fd78fe 100644 --- a/python-reference.md +++ b/python-reference.md @@ -191,7 +191,7 @@ In addition to the above mentioned operators, following functions are supported. | argmax(self, axis=None) | Returns the indices of the maximum values along an axis. | axis : int, optional (only axis=1, i.e. rowIndexMax is supported in this version) | | cumsum(self, axis=None) | Returns the indices of the maximum values along an axis. | axis : int, optional (only axis=0, i.e. cumsum along the rows is supported in this version) | -- Global statistical built-In functions: exp, log, abs, sqrt, round, floor, ceil, sin, cos, tan, asin, acos, atan, sign, solve +- Global statistical built-In functions: exp, log, abs, sqrt, round, floor, ceil, sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, sign, solve | | Description | Parameters | |------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|