aboutsummaryrefslogtreecommitdiff
path: root/chapters/ewise_unary.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'chapters/ewise_unary.adoc')
-rw-r--r--chapters/ewise_unary.adoc22
1 files changed, 11 insertions, 11 deletions
diff --git a/chapters/ewise_unary.adoc b/chapters/ewise_unary.adoc
index e2d3779..3dd5bc4 100644
--- a/chapters/ewise_unary.adoc
+++ b/chapters/ewise_unary.adoc
@@ -73,11 +73,6 @@ Elementwise cosine operation for values given in radians.
include::{generated}/operators/COS.adoc[]
-[source, c++]
-----
-include::{pseudocode}/operators/COS.tosac[]
-----
-
*Floating-point behavior:*
|===
|Input|-infinity|+infinity|-0|+0|NaN
@@ -85,6 +80,11 @@ include::{pseudocode}/operators/COS.tosac[]
|Output|NaN|NaN|+1|+1|NaN
|===
+[source, c++]
+----
+include::{pseudocode}/operators/COS.tosac[lines=10..-1]
+----
+
==== EXP
Elementwise e to the x operation
@@ -208,12 +208,7 @@ include::{pseudocode}/operators/RSQRT.tosac[lines=10..-1]
Elementwise sine operation for values given in radians.
-include::{generated}/operators/COS.adoc[]
-
-[source, c++]
-----
-include::{pseudocode}/operators/COS.tosac[]
-----
+include::{generated}/operators/SIN.adoc[]
*Floating-point behavior:*
|===
@@ -221,3 +216,8 @@ include::{pseudocode}/operators/COS.tosac[]
|Output|NaN|NaN|-0|+0|NaN
|===
+
+[source, c++]
+----
+include::{pseudocode}/operators/SIN.tosac[lines=10..-1]
+----