Skip to content

Commit 15a52a7

Browse files
committed
Update Arith.hs documentation.
1 parent 024912a commit 15a52a7

File tree

3 files changed

+171
-125
lines changed

3 files changed

+171
-125
lines changed

src/ArrayFire.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,14 @@ import Data.Word
132132
-- $construction
133133
-- An 'Array' can be constructed using the following smart constructors:
134134
--
135+
-- @
135136
-- >>> scalar @Double 2.0
136137
-- ArrayFire Array
137138
-- [1 1 1 1]
138139
-- 2.0000
140+
-- @
139141
--
142+
-- @
140143
-- >>> vector @Double 10 [1..]
141144
-- ArrayFire Array
142145
-- [10 1 1 1]
@@ -147,6 +150,7 @@ import Data.Word
147150
-- [2 2 1 1]
148151
-- 1.0000 2.0000
149152
-- 3.0000 4.0000
153+
-- @
150154
--
151155
-- @
152156
-- >>> cube @Double (2,2,2) [[[2,2],[2,2]],[[2,2],[2,2]]]
@@ -264,8 +268,7 @@ import Data.Word
264268
-- 'when' (idx == foundIndex) $ do
265269
-- array <- A.'readArrayKey' "file.array" "key"
266270
-- 'print' array
267-
-- @
268-
-- @
271+
--
269272
-- ArrayFire Array
270273
-- [ 1 1 1 1 ]
271274
-- 10

0 commit comments

Comments
 (0)