Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toPrimitiveMVector :: Index ix => MArray s P ix e -> MVector s emassiv Data.Massiv.Array.Manifest O(1) - Cast a mutable primitive array to a mutable primitive vector.
toPrimitiveVector :: Index ix => Array P ix e -> Vector emassiv Data.Massiv.Array.Manifest O(1) - Cast a primitive array to a primitive vector.
toStorableMVector :: Index ix => MArray s S ix e -> MVector s emassiv Data.Massiv.Array.Manifest O(1) - Unwrap storable mutable array and pull out the underlying storable mutable vector.
toStorableVector :: Index ix => Array S ix e -> Vector emassiv Data.Massiv.Array.Manifest O(1) - Unwrap storable array and pull out the underlying storable vector.
toUnboxedMVector :: MArray s U ix e -> MVector s emassiv Data.Massiv.Array.Manifest O(1) - Unwrap unboxed mutable array and pull out the underlying unboxed mutable vector.
toUnboxedVector :: Array U ix e -> Vector emassiv Data.Massiv.Array.Manifest O(1) - Unwrap unboxed array and pull out the underlying unboxed vector.
-
massiv Data.Massiv.Array.Manifest.Vector O(1) - conversion from vector to an array with a corresponding representation. Will return Nothing if there is a size mismatch or if some non-standard vector type is supplied. Is suppplied is the boxed Vector then it's all elements will be evaluated toWHNF, therefore complexity will be O(n)
-
massiv Data.Massiv.Array.Manifest.Vector O(1) - conversion from Mutable array to a corresponding vector. Will return Nothing only if source array representation was not one of B, N, P, S or U.
-
massiv Data.Massiv.Array.Manifest.Vector Just like fromVectorM, but will throw an exception on a mismatched size.
-
massiv Data.Massiv.Array.Manifest.Vector In case when resulting array representation matches the one of vector's it will do a O(1) - conversion using castFromVector, otherwise Vector elements will be copied into a new array. Will throw an error if length of resulting array doesn't match the source vector length.