From e6ee631e7a7bdc9d334f5dd1d0c30d639e40612b Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Thu, 29 Feb 2024 11:13:28 -0800 Subject: Fix SIN and COS pseudocode inclusion Previous version accidentally included the copyright in the rendered document. Also made the operator organization match other operators. Signed-off-by: Eric Kunze Change-Id: Iabca81fb84d032f17b6915a3c5135cb469edd797 --- chapters/ewise_unary.adoc | 22 +++++++++++----------- 1 file 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] +---- -- cgit v1.2.1