Skip to content

Commit 09c35aa

Browse files
committed
wibble
1 parent f5cfcf0 commit 09c35aa

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

documentation/users-guide/language.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
5151
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
5252
</style>
53-
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML-full" type="text/javascript"></script>
5453
</head>
5554

5655
<nav class="navbar navbar-inverse navbar-fixed-top">
@@ -134,7 +133,7 @@ <h2 id="embedded-scalar-operations">Embedded scalar operations</h2>
134133
<p>Analogously to <code>use</code>, to make scalar values accessible to Accelerate computations they must first be embedded with the <code>constant</code> function.</p>
135134
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span class="ot">use ::</span> <span class="dt">Elt</span> t <span class="ot">=&gt;</span> t <span class="ot">-&gt;</span> <span class="dt">Exp</span> t</code></pre></div>
136135
<div class="alert alert-success" role="alert">
137-
<p><strong>Tip!</strong> For constant numeric values this is often performed automatically. Notice in the <code>dotp</code> program we did not need to use the <code>constant</code> function to inject the initial value <span class="math inline">\(0\)</span>. This is because GHC applies the <code>fromInteger</code> function of the <code>Num</code> typeclass (or the <code>fromRational</code> function of the <code>Fractional</code> typeclass for floating point values) to the constant value, which implements the lifting operation for us.</p>
136+
<p><strong>Tip!</strong> For constant numeric values this is often performed automatically. Notice in the <code>dotp</code> program we did not need to use the <code>constant</code> function to inject the initial value 0. This is because GHC applies the <code>fromInteger</code> function of the <code>Num</code> typeclass (or the <code>fromRational</code> function of the <code>Fractional</code> typeclass for floating point values) to the constant value, which implements the lifting operation for us.</p>
138137
</div>
139138
<h2 id="arrays">Arrays</h2>
140139
<p>The <code>Array</code> is the core computational unit of Accelerate. Computations in Accelerate take the form of collective operations over arrays of the type <code>Array sh e</code>. All programs in Accelerate take zero or more arrays as input and produce one or more arrays as output. The <code>Array</code> type has two parameters:</p>

md/documentation/users-guide/language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ use :: Elt t => t -> Exp t
126126
<div class="alert alert-success" role="alert">
127127
**Tip!** For constant numeric values this is often performed automatically.
128128
Notice in the `dotp` program we did not need to use the `constant` function to
129-
inject the initial value $0$. This is because GHC applies the `fromInteger`
129+
inject the initial value 0. This is because GHC applies the `fromInteger`
130130
function of the `Num` typeclass (or the `fromRational` function of the
131131
`Fractional` typeclass for floating point values) to the constant value, which
132132
implements the lifting operation for us.

0 commit comments

Comments
 (0)