@@ -91,7 +91,7 @@ constant dims val =
9191 cast $ constant' dims (realToFrac (unsafeCoerce val :: Float ))
9292 | otherwise -> error " constant: Invalid array fire type"
9393 where
94- dtyp = afType (Proxy @ a)
94+ dtyp = afType (Proxy @ a )
9595
9696 constant'
9797 :: [Int ]
@@ -112,7 +112,7 @@ constant dims val =
112112 ptr
113113 where
114114 n = fromIntegral (length dims')
115- typ = afType (Proxy @ Double )
115+ typ = afType (Proxy @ Double )
116116
117117 -- | Creates an 'Array (Complex Double)' from a scalar val'ue
118118 --
@@ -139,7 +139,7 @@ constant dims val =
139139 ptr
140140 where
141141 n = fromIntegral (length dims')
142- typ = afType (Proxy @ (Complex arr))
142+ typ = afType (Proxy @ (Complex arr ))
143143
144144 -- | Creates an 'Array Int64' from a scalar val'ue
145145 --
@@ -221,7 +221,7 @@ range dims (fromIntegral -> k) = unsafePerformIO $ do
221221 ptr
222222 where
223223 n = fromIntegral (length dims)
224- typ = afType (Proxy @ a)
224+ typ = afType (Proxy @ a )
225225
226226-- | Create an sequence [0, dims.elements() - 1] and modify to specified dimensions dims and then tile it according to tile_dims.
227227--
@@ -266,7 +266,7 @@ iota dims tdims = unsafePerformIO $ do
266266 af_release_array_finalizer
267267 ptr
268268 where
269- typ = afType (Proxy @ a)
269+ typ = afType (Proxy @ a )
270270
271271-- | Creates the identity `Array` from given dimensions
272272--
@@ -293,7 +293,7 @@ identity dims = unsafePerformIO . mask_ $ do
293293 ptr
294294 where
295295 n = fromIntegral (length dims)
296- typ = afType (Proxy @ a)
296+ typ = afType (Proxy @ a )
297297
298298-- | Create a diagonal matrix from input array when extract is set to false
299299--
0 commit comments