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.

  1. toPrimitiveMVector :: Index ix => MArray s P ix e -> MVector s e

    massiv Data.Massiv.Array.Manifest

    O(1) - Cast a mutable primitive array to a mutable primitive vector.

  2. toPrimitiveVector :: Index ix => Array P ix e -> Vector e

    massiv Data.Massiv.Array.Manifest

    O(1) - Cast a primitive array to a primitive vector.

  3. toStorableMVector :: Index ix => MArray s S ix e -> MVector s e

    massiv Data.Massiv.Array.Manifest

    O(1) - Unwrap storable mutable array and pull out the underlying storable mutable vector.

  4. toStorableVector :: Index ix => Array S ix e -> Vector e

    massiv Data.Massiv.Array.Manifest

    O(1) - Unwrap storable array and pull out the underlying storable vector.

  5. toUnboxedMVector :: MArray s U ix e -> MVector s e

    massiv Data.Massiv.Array.Manifest

    O(1) - Unwrap unboxed mutable array and pull out the underlying unboxed mutable vector.

  6. toUnboxedVector :: Array U ix e -> Vector e

    massiv Data.Massiv.Array.Manifest

    O(1) - Unwrap unboxed array and pull out the underlying unboxed vector.

  7. castFromVector :: forall v r ix e . (Vector v e, Typeable v, Index ix, ARepr v ~ r) => Comp -> Sz ix -> v e -> Maybe (Array r ix e)

    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)

  8. castToVector :: forall v r ix e . (Manifest r e, Index ix, VRepr r ~ v) => Array r ix e -> Maybe (v e)

    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.

  9. fromVector' :: (HasCallStack, Typeable v, Vector v a, Load (ARepr v) ix a, Load r ix a, Manifest r a) => Comp -> Sz ix -> v a -> Array r ix a

    massiv Data.Massiv.Array.Manifest.Vector

    Just like fromVectorM, but will throw an exception on a mismatched size.

  10. fromVectorM :: (MonadThrow m, Typeable v, Vector v a, Manifest r a, Load (ARepr v) ix a, Load r ix a) => Comp -> Sz ix -> v a -> m (Array r ix a)

    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.

Page 59 of many | Previous | Next