@@ -91,7 +91,7 @@ constant dims val =
91
91
cast $ constant' dims (realToFrac (unsafeCoerce val :: Float ))
92
92
| otherwise -> error " constant: Invalid array fire type"
93
93
where
94
- dtyp = afType (Proxy @ a)
94
+ dtyp = afType (Proxy @ a )
95
95
96
96
constant'
97
97
:: [Int ]
@@ -112,7 +112,7 @@ constant dims val =
112
112
ptr
113
113
where
114
114
n = fromIntegral (length dims')
115
- typ = afType (Proxy @ Double )
115
+ typ = afType (Proxy @ Double )
116
116
117
117
-- | Creates an 'Array (Complex Double)' from a scalar val'ue
118
118
--
@@ -139,7 +139,7 @@ constant dims val =
139
139
ptr
140
140
where
141
141
n = fromIntegral (length dims')
142
- typ = afType (Proxy @ (Complex arr))
142
+ typ = afType (Proxy @ (Complex arr ))
143
143
144
144
-- | Creates an 'Array Int64' from a scalar val'ue
145
145
--
@@ -221,7 +221,7 @@ range dims (fromIntegral -> k) = unsafePerformIO $ do
221
221
ptr
222
222
where
223
223
n = fromIntegral (length dims)
224
- typ = afType (Proxy @ a)
224
+ typ = afType (Proxy @ a )
225
225
226
226
-- | Create an sequence [0, dims.elements() - 1] and modify to specified dimensions dims and then tile it according to tile_dims.
227
227
--
@@ -266,7 +266,7 @@ iota dims tdims = unsafePerformIO $ do
266
266
af_release_array_finalizer
267
267
ptr
268
268
where
269
- typ = afType (Proxy @ a)
269
+ typ = afType (Proxy @ a )
270
270
271
271
-- | Creates the identity `Array` from given dimensions
272
272
--
@@ -293,7 +293,7 @@ identity dims = unsafePerformIO . mask_ $ do
293
293
ptr
294
294
where
295
295
n = fromIntegral (length dims)
296
- typ = afType (Proxy @ a)
296
+ typ = afType (Proxy @ a )
297
297
298
298
-- | Create a diagonal matrix from input array when extract is set to false
299
299
--
0 commit comments