{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE CPP #-}
#if MIN_VERSION_base(4,12,0)
{-# LANGUAGE NoStarIsType #-}
#endif
module Data.Vector.Sized
( Vector
, pattern SomeSized
, VM.MVector
, length
, length'
, knownLength
, knownLength'
, index
, index'
, unsafeIndex
, head
, last
, indexM
, indexM'
, unsafeIndexM
, headM
, lastM
, slice
, slice'
, init
, tail
, take
, take'
, drop
, drop'
, splitAt
, splitAt'
, empty
, singleton
, fromTuple
, replicate
, replicate'
, generate
, generate'
, iterateN
, iterateN'
, replicateM
, replicateM'
, generateM
, generateM'
, unfoldrN
, unfoldrN'
, enumFromN
, enumFromN'
, enumFromStepN
, enumFromStepN'
, cons
, snoc
, (++)
, force
, (//)
, update
, update_
, unsafeUpd
, unsafeUpdate
, unsafeUpdate_
, accum
, accumulate
, accumulate_
, unsafeAccum
, unsafeAccumulate
, unsafeAccumulate_
, reverse
, backpermute
, unsafeBackpermute
, ix
, ix'
, _head
, _last
, indexed
, map
, imap
, concatMap
, mapM
, imapM
, mapM_
, imapM_
, forM
, forM_
, zipWith
, zipWith3
, zipWith4
, zipWith5
, zipWith6
, izipWith
, izipWith3
, izipWith4
, izipWith5
, izipWith6
, zip
, zip3
, zip4
, zip5
, zip6
, zipWithM
, izipWithM
, zipWithM_
, izipWithM_
, unzip
, unzip3
, unzip4
, unzip5
, unzip6
, elem
, notElem
, find
, findIndex
, elemIndex
, foldl
, foldl1
, foldl'
, foldl1'
, foldr
, foldr1
, foldr'
, foldr1'
, ifoldl
, ifoldl'
, ifoldr
, ifoldr'
, all
, any
, and
, or
, sum
, product
, maximum
, maximumBy
, minimum
, minimumBy
, maxIndex
, maxIndexBy
, minIndex
, minIndexBy
, foldM
, ifoldM
, fold1M
, foldM'
, ifoldM'
, fold1M'
, foldM_
, ifoldM_
, fold1M_
, foldM'_
, ifoldM'_
, fold1M'_
, sequence
, sequence_
, prescanl
, prescanl'
, postscanl
, postscanl'
, scanl
, scanl'
, scanl1
, scanl1'
, prescanr
, prescanr'
, postscanr
, postscanr'
, scanr
, scanr'
, scanr1
, scanr1'
, toList
, fromList
, fromListN
, fromListN'
, withSizedList
, freeze
, thaw
, copy
, unsafeFreeze
, unsafeThaw
, toSized
, withSized
, fromSized
, withVectorUnsafe
, zipVectorsUnsafe
) where
import qualified Data.Vector.Generic.Sized as V
import qualified Data.Vector as VU
import qualified Data.Vector.Mutable.Sized as VM
import GHC.TypeLits
import Data.Finite
import Data.Proxy
import Data.IndexedListLiterals hiding (toList, fromList)
import Control.Monad.Primitive
import Prelude hiding ( length, null,
replicate, (++), concat,
head, last,
init, tail, take, drop, splitAt, reverse,
map, concat, concatMap,
zipWith, zipWith3, zip, zip3, unzip, unzip3,
filter, takeWhile, dropWhile, span, break,
elem, notElem,
foldl, foldl1, foldr, foldr1,
all, any, and, or, sum, product, maximum, minimum,
scanl, scanl1, scanr, scanr1,
enumFromTo, enumFromThenTo,
mapM, mapM_, sequence, sequence_,
showsPrec )
type Vector = V.Vector VU.Vector
length :: forall n a. KnownNat n
=> Vector n a -> Int
length :: forall (n :: Nat) a. KnownNat n => Vector n a -> Int
length = Vector Vector n a -> Int
forall (v :: Type -> Type) (n :: Nat) a.
KnownNat n =>
Vector v n a -> Int
V.length
{-# inline length #-}
length' :: forall n a.
Vector n a -> Proxy n
length' :: forall (n :: Nat) a. Vector n a -> Proxy n
length' = Vector Vector n a -> Proxy n
forall (v :: Type -> Type) (n :: Nat) a. Vector v n a -> Proxy n
V.length'
{-# inline length' #-}
knownLength :: forall n a r.
Vector n a
-> (KnownNat n => r)
-> r
knownLength :: forall (n :: Nat) a r. Vector n a -> (KnownNat n => r) -> r
knownLength = Vector Vector n a -> (KnownNat n => r) -> r
forall (v :: Type -> Type) (n :: Nat) a r.
Vector v a =>
Vector v n a -> (KnownNat n => r) -> r
V.knownLength
knownLength' :: forall n a r.
Vector n a
-> (KnownNat n => Proxy n -> r)
-> r
knownLength' :: forall (n :: Nat) a r.
Vector n a -> (KnownNat n => Proxy n -> r) -> r
knownLength' = Vector Vector n a -> (KnownNat n => Proxy n -> r) -> r
forall (v :: Type -> Type) (n :: Nat) a r.
Vector v a =>
Vector v n a -> (KnownNat n => Proxy n -> r) -> r
V.knownLength'
index :: forall n a. ()
=> Vector n a -> Finite n -> a
index :: forall (n :: Nat) a. Vector n a -> Finite n -> a
index = Vector Vector n a -> Finite n -> a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v n a -> Finite n -> a
V.index
{-# inline index #-}
index' :: forall n m a p. KnownNat n
=> Vector (n+m+1) a -> p n -> a
index' :: forall (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
KnownNat n =>
Vector ((n + m) + 1) a -> p n -> a
index' = Vector Vector ((n + m) + 1) a -> p n -> a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat n, Vector v a) =>
Vector v ((n + m) + 1) a -> p n -> a
V.index'
{-# inline index' #-}
unsafeIndex :: forall n a. ()
=> Vector n a -> Int -> a
unsafeIndex :: forall (n :: Nat) a. Vector n a -> Int -> a
unsafeIndex = Vector Vector n a -> Int -> a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v n a -> Int -> a
V.unsafeIndex
{-# inline unsafeIndex #-}
head :: forall n a. Vector (1+n) a -> a
head :: forall (n :: Nat) a. Vector (1 + n) a -> a
head = Vector Vector (1 + n) a -> a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v (1 + n) a -> a
V.head
{-# inline head #-}
last :: forall n a. Vector (n+1) a -> a
last :: forall (n :: Nat) a. Vector (n + 1) a -> a
last = Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v (n + 1) a -> a
V.last
{-# inline last #-}
ix :: forall n a f. Functor f
=> Finite n -> (a -> f a) -> Vector n a -> f (Vector n a)
ix :: forall (n :: Nat) a (f :: Type -> Type).
Functor f =>
Finite n -> (a -> f a) -> Vector n a -> f (Vector n a)
ix = Finite n
-> (a -> f a) -> Vector Vector n a -> f (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) a (f :: Type -> Type).
(Vector v a, Functor f) =>
Finite n -> (a -> f a) -> Vector v n a -> f (Vector v n a)
V.ix
{-# inline ix #-}
ix' :: forall i n a f. (Functor f,
KnownNat i, KnownNat n, i+1 <= n)
=> (a -> f a) -> Vector n a -> f (Vector n a)
ix' :: forall (i :: Nat) (n :: Nat) a (f :: Type -> Type).
(Functor f, KnownNat i, KnownNat n, (i + 1) <= n) =>
(a -> f a) -> Vector n a -> f (Vector n a)
ix' = forall (i :: Nat) (v :: Type -> Type) (n :: Nat) a
(f :: Type -> Type).
(Vector v a, Functor f, KnownNat i, KnownNat n, (i + 1) <= n) =>
(a -> f a) -> Vector v n a -> f (Vector v n a)
V.ix' @i
{-# inline ix' #-}
_head :: forall n a f. Functor f
=> (a -> f a) -> Vector (1+n) a -> f (Vector (1+n) a)
_head :: forall (n :: Nat) a (f :: Type -> Type).
Functor f =>
(a -> f a) -> Vector (1 + n) a -> f (Vector (1 + n) a)
_head = (a -> f a)
-> Vector Vector (1 + n) a -> f (Vector Vector (1 + n) a)
forall (v :: Type -> Type) (n :: Nat) a (f :: Type -> Type).
(Vector v a, Functor f) =>
(a -> f a) -> Vector v (1 + n) a -> f (Vector v (1 + n) a)
V._head
{-# inline _head #-}
_last :: forall n a f. Functor f
=> (a -> f a) -> Vector (n+1) a -> f (Vector (n+1) a)
_last :: forall (n :: Nat) a (f :: Type -> Type).
Functor f =>
(a -> f a) -> Vector (n + 1) a -> f (Vector (n + 1) a)
_last = (a -> f a)
-> Vector Vector (n + 1) a -> f (Vector Vector (n + 1) a)
forall (v :: Type -> Type) (n :: Nat) a (f :: Type -> Type).
(Vector v a, Functor f) =>
(a -> f a) -> Vector v (n + 1) a -> f (Vector v (n + 1) a)
V._last
{-# inline _last #-}
indexM :: forall n a m. Monad m
=> Vector n a -> Finite n -> m a
indexM :: forall (n :: Nat) a (m :: Type -> Type).
Monad m =>
Vector n a -> Finite n -> m a
indexM = Vector Vector n a -> Finite n -> m a
forall (v :: Type -> Type) (n :: Nat) a (m :: Type -> Type).
(Vector v a, Monad m) =>
Vector v n a -> Finite n -> m a
V.indexM
{-# inline indexM #-}
indexM' :: forall n k a m p. (KnownNat n, Monad m)
=> Vector (n+k) a -> p n -> m a
indexM' :: forall (n :: Nat) (k :: Nat) a (m :: Type -> Type)
(p :: Nat -> Type).
(KnownNat n, Monad m) =>
Vector (n + k) a -> p n -> m a
indexM' = Vector Vector (n + k) a -> p n -> m a
forall (v :: Type -> Type) (n :: Nat) (k :: Nat) a
(m :: Type -> Type) (p :: Nat -> Type).
(KnownNat n, Vector v a, Monad m) =>
Vector v (n + k) a -> p n -> m a
V.indexM'
{-# inline indexM' #-}
unsafeIndexM :: forall n a m. Monad m
=> Vector n a -> Int -> m a
unsafeIndexM :: forall (n :: Nat) a (m :: Type -> Type).
Monad m =>
Vector n a -> Int -> m a
unsafeIndexM = Vector Vector n a -> Int -> m a
forall (v :: Type -> Type) (n :: Nat) a (m :: Type -> Type).
(Vector v a, Monad m) =>
Vector v n a -> Int -> m a
V.unsafeIndexM
{-# inline unsafeIndexM #-}
headM :: forall n a m. Monad m
=> Vector (1+n) a -> m a
headM :: forall (n :: Nat) a (m :: Type -> Type).
Monad m =>
Vector (1 + n) a -> m a
headM = Vector Vector (1 + n) a -> m a
forall (v :: Type -> Type) (n :: Nat) a (m :: Type -> Type).
(Vector v a, Monad m) =>
Vector v (1 + n) a -> m a
V.headM
{-# inline headM #-}
lastM :: forall n a m. Monad m
=> Vector (n+1) a -> m a
lastM :: forall (n :: Nat) a (m :: Type -> Type).
Monad m =>
Vector (n + 1) a -> m a
lastM = Vector Vector (n + 1) a -> m a
forall (v :: Type -> Type) (n :: Nat) a (m :: Type -> Type).
(Vector v a, Monad m) =>
Vector v (n + 1) a -> m a
V.lastM
{-# inline lastM #-}
slice :: forall i n m a p. (KnownNat i, KnownNat n)
=> p i
-> Vector (i+n+m) a
-> Vector n a
slice :: forall (i :: Nat) (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
(KnownNat i, KnownNat n) =>
p i -> Vector ((i + n) + m) a -> Vector n a
slice = p i -> Vector Vector ((i + n) + m) a -> Vector Vector n a
forall (v :: Type -> Type) (i :: Nat) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat i, KnownNat n, Vector v a) =>
p i -> Vector v ((i + n) + m) a -> Vector v n a
V.slice
{-# inline slice #-}
slice' :: forall i n m a p. (KnownNat i, KnownNat n)
=> p i
-> p n
-> Vector (i+n+m) a
-> Vector n a
slice' :: forall (i :: Nat) (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
(KnownNat i, KnownNat n) =>
p i -> p n -> Vector ((i + n) + m) a -> Vector n a
slice' = p i -> p n -> Vector Vector ((i + n) + m) a -> Vector Vector n a
forall (v :: Type -> Type) (i :: Nat) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat i, KnownNat n, Vector v a) =>
p i -> p n -> Vector v ((i + n) + m) a -> Vector v n a
V.slice'
{-# inline slice' #-}
init :: forall n a. Vector (n+1) a -> Vector n a
init :: forall (n :: Nat) a. Vector (n + 1) a -> Vector n a
init = Vector Vector (n + 1) a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v (n + 1) a -> Vector v n a
V.init
{-# inline init #-}
tail :: forall n a. Vector (1+n) a -> Vector n a
tail :: forall (n :: Nat) a. Vector (1 + n) a -> Vector n a
tail = Vector Vector (1 + n) a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v (1 + n) a -> Vector v n a
V.tail
{-# inline tail #-}
take :: forall n m a. KnownNat n
=> Vector (n+m) a -> Vector n a
take :: forall (n :: Nat) (m :: Nat) a.
KnownNat n =>
Vector (n + m) a -> Vector n a
take = Vector Vector (n + m) a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a.
(KnownNat n, Vector v a) =>
Vector v (n + m) a -> Vector v n a
V.take
{-# inline take #-}
take' :: forall n m a p. KnownNat n
=> p n -> Vector (n+m) a -> Vector n a
take' :: forall (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> Vector (n + m) a -> Vector n a
take' = p n -> Vector Vector (n + m) a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> Vector v (n + m) a -> Vector v n a
V.take'
{-# inline take' #-}
drop :: forall n m a. KnownNat n
=> Vector (n+m) a -> Vector m a
drop :: forall (n :: Nat) (m :: Nat) a.
KnownNat n =>
Vector (n + m) a -> Vector m a
drop = Vector Vector (n + m) a -> Vector Vector m a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a.
(KnownNat n, Vector v a) =>
Vector v (n + m) a -> Vector v m a
V.drop
{-# inline drop #-}
drop' :: forall n m a p. KnownNat n
=> p n -> Vector (n+m) a -> Vector m a
drop' :: forall (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> Vector (n + m) a -> Vector m a
drop' = p n -> Vector Vector (n + m) a -> Vector Vector m a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> Vector v (n + m) a -> Vector v m a
V.drop'
{-# inline drop' #-}
splitAt :: forall n m a. KnownNat n
=> Vector (n+m) a -> (Vector n a, Vector m a)
splitAt :: forall (n :: Nat) (m :: Nat) a.
KnownNat n =>
Vector (n + m) a -> (Vector n a, Vector m a)
splitAt = Vector Vector (n + m) a -> (Vector Vector n a, Vector Vector m a)
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a.
(KnownNat n, Vector v a) =>
Vector v (n + m) a -> (Vector v n a, Vector v m a)
V.splitAt
{-# inline splitAt #-}
splitAt' :: forall n m a p. KnownNat n
=> p n -> Vector (n+m) a -> (Vector n a, Vector m a)
splitAt' :: forall (n :: Nat) (m :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> Vector (n + m) a -> (Vector n a, Vector m a)
splitAt' = p n
-> Vector Vector (n + m) a
-> (Vector Vector n a, Vector Vector m a)
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a
(p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> Vector v (n + m) a -> (Vector v n a, Vector v m a)
V.splitAt'
{-# inline splitAt' #-}
empty :: forall a. Vector 0 a
empty :: forall a. Vector 0 a
empty = Vector Vector 0 a
forall (v :: Type -> Type) a. Vector v a => Vector v 0 a
V.empty
{-# inline empty #-}
singleton :: forall a. a -> Vector 1 a
singleton :: forall a. a -> Vector 1 a
singleton = a -> Vector Vector 1 a
forall (v :: Type -> Type) a. Vector v a => a -> Vector v 1 a
V.singleton
{-# inline singleton #-}
fromTuple :: forall input length ty.
(IndexedListLiterals input length ty, KnownNat length)
=> input -> Vector length ty
fromTuple :: forall input (length :: Nat) ty.
(IndexedListLiterals input length ty, KnownNat length) =>
input -> Vector length ty
fromTuple = input -> Vector Vector length ty
forall (v :: Type -> Type) a input (length :: Nat).
(Vector v a, IndexedListLiterals input length a,
KnownNat length) =>
input -> Vector v length a
V.fromTuple
replicate :: forall n a. KnownNat n
=> a -> Vector n a
replicate :: forall (n :: Nat) a. KnownNat n => a -> Vector n a
replicate = a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
(KnownNat n, Vector v a) =>
a -> Vector v n a
V.replicate
{-# inline replicate #-}
replicate' :: forall n a p. KnownNat n
=> p n -> a -> Vector n a
replicate' :: forall (n :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> a -> Vector n a
replicate' = p n -> a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> a -> Vector v n a
V.replicate'
{-# inline replicate' #-}
generate :: forall n a. KnownNat n
=> (Finite n -> a) -> Vector n a
generate :: forall (n :: Nat) a. KnownNat n => (Finite n -> a) -> Vector n a
generate = (Finite n -> a) -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
(KnownNat n, Vector v a) =>
(Finite n -> a) -> Vector v n a
V.generate
{-# inline generate #-}
generate' :: forall n a p. KnownNat n
=> p n -> (Finite n -> a) -> Vector n a
generate' :: forall (n :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> (Finite n -> a) -> Vector n a
generate' = p n -> (Finite n -> a) -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> (Finite n -> a) -> Vector v n a
V.generate'
{-# inline generate' #-}
iterateN :: forall n a. KnownNat n
=> (a -> a) -> a -> Vector n a
iterateN :: forall (n :: Nat) a. KnownNat n => (a -> a) -> a -> Vector n a
iterateN = (a -> a) -> a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
(KnownNat n, Vector v a) =>
(a -> a) -> a -> Vector v n a
V.iterateN
{-# inline iterateN #-}
iterateN' :: forall n a p. KnownNat n
=> p n -> (a -> a) -> a -> Vector n a
iterateN' :: forall (n :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> (a -> a) -> a -> Vector n a
iterateN' = p n -> (a -> a) -> a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> (a -> a) -> a -> Vector v n a
V.iterateN'
{-# inline iterateN' #-}
replicateM :: forall n m a. (KnownNat n, Monad m)
=> m a -> m (Vector n a)
replicateM :: forall (n :: Nat) (m :: Type -> Type) a.
(KnownNat n, Monad m) =>
m a -> m (Vector n a)
replicateM = m a -> m (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) (m :: Type -> Type) a.
(KnownNat n, Vector v a, Monad m) =>
m a -> m (Vector v n a)
V.replicateM
{-# inline replicateM #-}
replicateM' :: forall n m a p. (KnownNat n, Monad m)
=> p n -> m a -> m (Vector n a)
replicateM' :: forall (n :: Nat) (m :: Type -> Type) a (p :: Nat -> Type).
(KnownNat n, Monad m) =>
p n -> m a -> m (Vector n a)
replicateM' = p n -> m a -> m (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) (m :: Type -> Type) a
(p :: Nat -> Type).
(KnownNat n, Vector v a, Monad m) =>
p n -> m a -> m (Vector v n a)
V.replicateM'
{-# inline replicateM' #-}
generateM :: forall n m a. (KnownNat n, Monad m)
=> (Finite n -> m a) -> m (Vector n a)
generateM :: forall (n :: Nat) (m :: Type -> Type) a.
(KnownNat n, Monad m) =>
(Finite n -> m a) -> m (Vector n a)
generateM = (Finite n -> m a) -> m (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) (m :: Type -> Type) a.
(KnownNat n, Vector v a, Monad m) =>
(Finite n -> m a) -> m (Vector v n a)
V.generateM
{-# inline generateM #-}
generateM' :: forall n m a p. (KnownNat n, Monad m)
=> p n -> (Finite n -> m a) -> m (Vector n a)
generateM' :: forall (n :: Nat) (m :: Type -> Type) a (p :: Nat -> Type).
(KnownNat n, Monad m) =>
p n -> (Finite n -> m a) -> m (Vector n a)
generateM' = p n -> (Finite n -> m a) -> m (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) (m :: Type -> Type) a
(p :: Nat -> Type).
(KnownNat n, Vector v a, Monad m) =>
p n -> (Finite n -> m a) -> m (Vector v n a)
V.generateM'
{-# inline generateM' #-}
unfoldrN :: forall n a b. KnownNat n
=> (b -> (a, b)) -> b -> Vector n a
unfoldrN :: forall (n :: Nat) a b.
KnownNat n =>
(b -> (a, b)) -> b -> Vector n a
unfoldrN = (b -> (a, b)) -> b -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a b.
(KnownNat n, Vector v a) =>
(b -> (a, b)) -> b -> Vector v n a
V.unfoldrN
{-# inline unfoldrN #-}
unfoldrN' :: forall n a b p. KnownNat n
=> p n -> (b -> (a, b)) -> b -> Vector n a
unfoldrN' :: forall (n :: Nat) a b (p :: Nat -> Type).
KnownNat n =>
p n -> (b -> (a, b)) -> b -> Vector n a
unfoldrN' = p n -> (b -> (a, b)) -> b -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a b (p :: Nat -> Type).
(KnownNat n, Vector v a) =>
p n -> (b -> (a, b)) -> b -> Vector v n a
V.unfoldrN'
{-# inline unfoldrN' #-}
enumFromN :: forall n a. (KnownNat n, Num a)
=> a -> Vector n a
enumFromN :: forall (n :: Nat) a. (KnownNat n, Num a) => a -> Vector n a
enumFromN = a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
(KnownNat n, Vector v a, Num a) =>
a -> Vector v n a
V.enumFromN
{-# inline enumFromN #-}
enumFromN' :: forall n a p. (KnownNat n, Num a)
=> a -> p n -> Vector n a
enumFromN' :: forall (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Num a) =>
a -> p n -> Vector n a
enumFromN' = a -> p n -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Vector v a, Num a) =>
a -> p n -> Vector v n a
V.enumFromN'
{-# inline enumFromN' #-}
enumFromStepN :: forall n a. (KnownNat n, Num a)
=> a -> a -> Vector n a
enumFromStepN :: forall (n :: Nat) a. (KnownNat n, Num a) => a -> a -> Vector n a
enumFromStepN = a -> a -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a.
(KnownNat n, Vector v a, Num a) =>
a -> a -> Vector v n a
V.enumFromStepN
{-# inline enumFromStepN #-}
enumFromStepN' :: forall n a p. (KnownNat n, Num a)
=> a -> a -> p n -> Vector n a
enumFromStepN' :: forall (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Num a) =>
a -> a -> p n -> Vector n a
enumFromStepN' = a -> a -> p n -> Vector Vector n a
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(KnownNat n, Vector v a, Num a) =>
a -> a -> p n -> Vector v n a
V.enumFromStepN'
{-# inline enumFromStepN' #-}
cons :: forall n a. a -> Vector n a -> Vector (1+n) a
cons :: forall (n :: Nat) a. a -> Vector n a -> Vector (1 + n) a
cons = a -> Vector Vector n a -> Vector Vector (1 + n) a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
a -> Vector v n a -> Vector v (1 + n) a
V.cons
{-# inline cons #-}
snoc :: forall n a. Vector n a -> a -> Vector (n+1) a
snoc :: forall (n :: Nat) a. Vector n a -> a -> Vector (n + 1) a
snoc = Vector Vector n a -> a -> Vector Vector (n + 1) a
forall (v :: Type -> Type) (n :: Nat) a.
Vector v a =>
Vector v n a -> a -> Vector v (n + 1) a
V.snoc
{-# inline snoc #-}
(++) :: forall n m a. Vector n a -> Vector m a -> Vector (n+m) a
++ :: forall (n :: Nat) (m :: Nat) a.
Vector n a -> Vector m a -> Vector (n + m) a
(++) = Vector Vector n a -> Vector Vector m a -> Vector Vector (n + m) a
forall (v :: Type -> Type) (n :: Nat) (m :: Nat) a.
Vector v a =>
Vector v n a -> Vector v m a -> Vector v (n + m) a
(V.++)
{-# inline (++) #-}
force :: Vector n a -> Vector n a
force :: forall (n :: Nat) a. Vector n a -> Vector n a
force = Vector Vector n a -> Vector Vector n a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
Vector v n a -> Vector v n a
V.force
{-# inline force #-}
(//) :: Vector m a
-> [(Finite m, a)]
-> Vector m a
// :: forall (m :: Nat) a. Vector m a -> [(Finite m, a)] -> Vector m a
(//) = Vector Vector m a -> [(Finite m, a)] -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat).
Vector v a =>
Vector v m a -> [(Finite m, a)] -> Vector v m a
(V.//)
{-# inline (//) #-}
update :: Vector m a
-> Vector n (Int, a)
-> Vector m a
update :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n (Int, a) -> Vector m a
update = Vector Vector m a -> Vector Vector n (Int, a) -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v (Int, a)) =>
Vector v m a -> Vector v n (Int, a) -> Vector v m a
V.update
{-# inline update #-}
update_ :: Vector m a
-> Vector n Int
-> Vector n a
-> Vector m a
update_ :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n Int -> Vector n a -> Vector m a
update_ = Vector Vector m a
-> Vector Vector n Int -> Vector Vector n a -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int) =>
Vector v m a -> Vector v n Int -> Vector v n a -> Vector v m a
V.update_
{-# inline update_ #-}
unsafeUpd :: Vector m a
-> [(Int, a)]
-> Vector m a
unsafeUpd :: forall (m :: Nat) a. Vector m a -> [(Int, a)] -> Vector m a
unsafeUpd = Vector Vector m a -> [(Int, a)] -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat).
Vector v a =>
Vector v m a -> [(Int, a)] -> Vector v m a
V.unsafeUpd
{-# inline unsafeUpd #-}
unsafeUpdate :: Vector m a
-> Vector n (Int, a)
-> Vector m a
unsafeUpdate :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n (Int, a) -> Vector m a
unsafeUpdate = Vector Vector m a -> Vector Vector n (Int, a) -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v (Int, a)) =>
Vector v m a -> Vector v n (Int, a) -> Vector v m a
V.unsafeUpdate
{-# inline unsafeUpdate #-}
unsafeUpdate_ :: Vector m a
-> Vector n Int
-> Vector n a
-> Vector m a
unsafeUpdate_ :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n Int -> Vector n a -> Vector m a
unsafeUpdate_ = Vector Vector m a
-> Vector Vector n Int -> Vector Vector n a -> Vector Vector m a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int) =>
Vector v m a -> Vector v n Int -> Vector v n a -> Vector v m a
V.unsafeUpdate_
{-# inline unsafeUpdate_ #-}
accum :: (a -> b -> a)
-> Vector m a
-> [(Finite m,b)]
-> Vector m a
accum :: forall a b (m :: Nat).
(a -> b -> a) -> Vector m a -> [(Finite m, b)] -> Vector m a
accum = (a -> b -> a)
-> Vector Vector m a -> [(Finite m, b)] -> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat).
Vector v a =>
(a -> b -> a) -> Vector v m a -> [(Finite m, b)] -> Vector v m a
V.accum
{-# inline accum #-}
accumulate :: (a -> b -> a)
-> Vector m a
-> Vector n (Int,b)
-> Vector m a
accumulate :: forall a b (m :: Nat) (n :: Nat).
(a -> b -> a) -> Vector m a -> Vector n (Int, b) -> Vector m a
accumulate = (a -> b -> a)
-> Vector Vector m a
-> Vector Vector n (Int, b)
-> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat) (n :: Nat).
(Vector v a, Vector v (Int, b)) =>
(a -> b -> a)
-> Vector v m a -> Vector v n (Int, b) -> Vector v m a
V.accumulate
{-# inline accumulate #-}
accumulate_ :: (a -> b -> a)
-> Vector m a
-> Vector n Int
-> Vector n b
-> Vector m a
accumulate_ :: forall a b (m :: Nat) (n :: Nat).
(a -> b -> a)
-> Vector m a -> Vector n Int -> Vector n b -> Vector m a
accumulate_ = (a -> b -> a)
-> Vector Vector m a
-> Vector Vector n Int
-> Vector Vector n b
-> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int, Vector v b) =>
(a -> b -> a)
-> Vector v m a -> Vector v n Int -> Vector v n b -> Vector v m a
V.accumulate_
{-# inline accumulate_ #-}
unsafeAccum :: (a -> b -> a)
-> Vector m a
-> [(Int,b)]
-> Vector m a
unsafeAccum :: forall a b (m :: Nat).
(a -> b -> a) -> Vector m a -> [(Int, b)] -> Vector m a
unsafeAccum = (a -> b -> a)
-> Vector Vector m a -> [(Int, b)] -> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat).
Vector v a =>
(a -> b -> a) -> Vector v m a -> [(Int, b)] -> Vector v m a
V.unsafeAccum
{-# inline unsafeAccum #-}
unsafeAccumulate :: (a -> b -> a)
-> Vector m a
-> Vector n (Int,b)
-> Vector m a
unsafeAccumulate :: forall a b (m :: Nat) (n :: Nat).
(a -> b -> a) -> Vector m a -> Vector n (Int, b) -> Vector m a
unsafeAccumulate = (a -> b -> a)
-> Vector Vector m a
-> Vector Vector n (Int, b)
-> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat) (n :: Nat).
(Vector v a, Vector v (Int, b)) =>
(a -> b -> a)
-> Vector v m a -> Vector v n (Int, b) -> Vector v m a
V.unsafeAccumulate
{-# inline unsafeAccumulate #-}
unsafeAccumulate_ :: (a -> b -> a)
-> Vector m a
-> Vector n Int
-> Vector n b
-> Vector m a
unsafeAccumulate_ :: forall a b (m :: Nat) (n :: Nat).
(a -> b -> a)
-> Vector m a -> Vector n Int -> Vector n b -> Vector m a
unsafeAccumulate_ = (a -> b -> a)
-> Vector Vector m a
-> Vector Vector n Int
-> Vector Vector n b
-> Vector Vector m a
forall (v :: Type -> Type) a b (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int, Vector v b) =>
(a -> b -> a)
-> Vector v m a -> Vector v n Int -> Vector v n b -> Vector v m a
V.unsafeAccumulate_
{-# inline unsafeAccumulate_ #-}
reverse :: Vector n a -> Vector n a
reverse :: forall (n :: Nat) a. Vector n a -> Vector n a
reverse = Vector Vector n a -> Vector Vector n a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
Vector v n a -> Vector v n a
V.reverse
{-# inline reverse #-}
backpermute :: Vector m a
-> Vector n Int
-> Vector n a
backpermute :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n Int -> Vector n a
backpermute = Vector Vector m a -> Vector Vector n Int -> Vector Vector n a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int) =>
Vector v m a -> Vector v n Int -> Vector v n a
V.backpermute
{-# inline backpermute #-}
unsafeBackpermute :: Vector m a
-> Vector n Int
-> Vector n a
unsafeBackpermute :: forall (m :: Nat) a (n :: Nat).
Vector m a -> Vector n Int -> Vector n a
unsafeBackpermute = Vector Vector m a -> Vector Vector n Int -> Vector Vector n a
forall (v :: Type -> Type) a (m :: Nat) (n :: Nat).
(Vector v a, Vector v Int) =>
Vector v m a -> Vector v n Int -> Vector v n a
V.unsafeBackpermute
{-# inline unsafeBackpermute #-}
indexed :: Vector n a -> Vector n (Finite n,a)
indexed :: forall (n :: Nat) a. Vector n a -> Vector n (Finite n, a)
indexed = Vector Vector n a -> Vector Vector n (Finite n, a)
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Vector v (Int, a), Vector v (Finite n, a)) =>
Vector v n a -> Vector v n (Finite n, a)
V.indexed
{-# inline indexed #-}
map :: (a -> b) -> Vector n a -> Vector n b
map :: forall a b (n :: Nat). (a -> b) -> Vector n a -> Vector n b
map = (a -> b) -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b) -> Vector v n a -> Vector v n b
V.map
{-# inline map #-}
imap :: (Finite n -> a -> b) -> Vector n a -> Vector n b
imap :: forall (n :: Nat) a b.
(Finite n -> a -> b) -> Vector n a -> Vector n b
imap = (Finite n -> a -> b) -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(Finite n -> a -> b) -> Vector v n a -> Vector v n b
V.imap
{-# inline imap #-}
concatMap :: (a -> Vector m b) -> Vector n a -> Vector (n*m) b
concatMap :: forall a (m :: Nat) b (n :: Nat).
(a -> Vector m b) -> Vector n a -> Vector (n * m) b
concatMap = (a -> Vector Vector m b)
-> Vector Vector n a -> Vector Vector (n * m) b
forall (v :: Type -> Type) a (v' :: Type -> Type) b (m :: Nat)
(n :: Nat).
(Vector v a, Vector v' b) =>
(a -> Vector v' m b) -> Vector v n a -> Vector v' (n * m) b
V.concatMap
{-# inline concatMap #-}
mapM :: Monad m => (a -> m b) -> Vector n a -> m (Vector n b)
mapM :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> m b) -> Vector n a -> m (Vector n b)
mapM = (a -> m b) -> Vector Vector n a -> m (Vector Vector n b)
forall (m :: Type -> Type) (v :: Type -> Type) a b (n :: Nat).
(Monad m, Vector v a, Vector v b) =>
(a -> m b) -> Vector v n a -> m (Vector v n b)
V.mapM
{-# inline mapM #-}
imapM :: Monad m => (Finite n -> a -> m b) -> Vector n a -> m (Vector n b)
imapM :: forall (m :: Type -> Type) (n :: Nat) a b.
Monad m =>
(Finite n -> a -> m b) -> Vector n a -> m (Vector n b)
imapM = (Finite n -> a -> m b)
-> Vector Vector n a -> m (Vector Vector n b)
forall (m :: Type -> Type) (v :: Type -> Type) a b (n :: Nat).
(Monad m, Vector v a, Vector v b) =>
(Finite n -> a -> m b) -> Vector v n a -> m (Vector v n b)
V.imapM
{-# inline imapM #-}
mapM_ :: Monad m => (a -> m b) -> Vector n a -> m ()
mapM_ :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> m b) -> Vector n a -> m ()
mapM_ = (a -> m b) -> Vector Vector n a -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a b (n :: Nat).
(Monad m, Vector v a) =>
(a -> m b) -> Vector v n a -> m ()
V.mapM_
{-# inline mapM_ #-}
imapM_ :: Monad m => (Finite n -> a -> m b) -> Vector n a -> m ()
imapM_ :: forall (m :: Type -> Type) (n :: Nat) a b.
Monad m =>
(Finite n -> a -> m b) -> Vector n a -> m ()
imapM_ = (Finite n -> a -> m b) -> Vector Vector n a -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat) b.
(Monad m, Vector v a) =>
(Finite n -> a -> m b) -> Vector v n a -> m ()
V.imapM_
{-# inline imapM_ #-}
forM :: Monad m => Vector n a -> (a -> m b) -> m (Vector n b)
forM :: forall (m :: Type -> Type) (n :: Nat) a b.
Monad m =>
Vector n a -> (a -> m b) -> m (Vector n b)
forM = Vector Vector n a -> (a -> m b) -> m (Vector Vector n b)
forall (m :: Type -> Type) (v :: Type -> Type) a b (n :: Nat).
(Monad m, Vector v a, Vector v b) =>
Vector v n a -> (a -> m b) -> m (Vector v n b)
V.forM
{-# inline forM #-}
forM_ :: Monad m => Vector n a -> (a -> m b) -> m ()
forM_ :: forall (m :: Type -> Type) (n :: Nat) a b.
Monad m =>
Vector n a -> (a -> m b) -> m ()
forM_ = Vector Vector n a -> (a -> m b) -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat) b.
(Monad m, Vector v a) =>
Vector v n a -> (a -> m b) -> m ()
V.forM_
{-# inline forM_ #-}
zipWith :: (a -> b -> c) -> Vector n a -> Vector n b -> Vector n c
zipWith :: forall a b c (n :: Nat).
(a -> b -> c) -> Vector n a -> Vector n b -> Vector n c
zipWith = (a -> b -> c)
-> Vector Vector n a -> Vector Vector n b -> Vector Vector n c
forall (v :: Type -> Type) a b c (n :: Nat).
(Vector v a, Vector v b, Vector v c) =>
(a -> b -> c) -> Vector v n a -> Vector v n b -> Vector v n c
V.zipWith
{-# inline zipWith #-}
zipWith3 :: (a -> b -> c -> d) -> Vector n a -> Vector n b -> Vector n c -> Vector n d
zipWith3 :: forall a b c d (n :: Nat).
(a -> b -> c -> d)
-> Vector n a -> Vector n b -> Vector n c -> Vector n d
zipWith3 = (a -> b -> c -> d)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
forall (v :: Type -> Type) a b c d (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d) =>
(a -> b -> c -> d)
-> Vector v n a -> Vector v n b -> Vector v n c -> Vector v n d
V.zipWith3
{-# inline zipWith3 #-}
zipWith4 :: (a -> b -> c -> d -> e)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
zipWith4 :: forall a b c d e (n :: Nat).
(a -> b -> c -> d -> e)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
zipWith4 = (a -> b -> c -> d -> e)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
forall (v :: Type -> Type) a b c d e (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e) =>
(a -> b -> c -> d -> e)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
V.zipWith4
{-# inline zipWith4 #-}
zipWith5 :: (a -> b -> c -> d -> e -> f)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
zipWith5 :: forall a b c d e f (n :: Nat).
(a -> b -> c -> d -> e -> f)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
zipWith5 = (a -> b -> c -> d -> e -> f)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n f
forall (v :: Type -> Type) a b c d e f (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f) =>
(a -> b -> c -> d -> e -> f)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n f
V.zipWith5
{-# inline zipWith5 #-}
zipWith6 :: (a -> b -> c -> d -> e -> f -> g)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n g
zipWith6 :: forall a b c d e f g (n :: Nat).
(a -> b -> c -> d -> e -> f -> g)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n g
zipWith6 = (a -> b -> c -> d -> e -> f -> g)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n f
-> Vector Vector n g
forall (v :: Type -> Type) a b c d e f g (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f, Vector v g) =>
(a -> b -> c -> d -> e -> f -> g)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n f
-> Vector v n g
V.zipWith6
{-# inline zipWith6 #-}
izipWith :: (Finite n -> a -> b -> c)
-> Vector n a
-> Vector n b
-> Vector n c
izipWith :: forall (n :: Nat) a b c.
(Finite n -> a -> b -> c) -> Vector n a -> Vector n b -> Vector n c
izipWith = (Finite n -> a -> b -> c)
-> Vector Vector n a -> Vector Vector n b -> Vector Vector n c
forall (v :: Type -> Type) a b c (n :: Nat).
(Vector v a, Vector v b, Vector v c) =>
(Finite n -> a -> b -> c)
-> Vector v n a -> Vector v n b -> Vector v n c
V.izipWith
{-# inline izipWith #-}
izipWith3 :: (Finite n -> a -> b -> c -> d)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
izipWith3 :: forall (n :: Nat) a b c d.
(Finite n -> a -> b -> c -> d)
-> Vector n a -> Vector n b -> Vector n c -> Vector n d
izipWith3 = (Finite n -> a -> b -> c -> d)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
forall (v :: Type -> Type) a b c d (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d) =>
(Finite n -> a -> b -> c -> d)
-> Vector v n a -> Vector v n b -> Vector v n c -> Vector v n d
V.izipWith3
{-# inline izipWith3 #-}
izipWith4 :: (Finite n -> a -> b -> c -> d -> e)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
izipWith4 :: forall (n :: Nat) a b c d e.
(Finite n -> a -> b -> c -> d -> e)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
izipWith4 = (Finite n -> a -> b -> c -> d -> e)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
forall (v :: Type -> Type) a b c d e (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e) =>
(Finite n -> a -> b -> c -> d -> e)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
V.izipWith4
{-# inline izipWith4 #-}
izipWith5 :: (Finite n -> a -> b -> c -> d -> e -> f)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
izipWith5 :: forall (n :: Nat) a b c d e f.
(Finite n -> a -> b -> c -> d -> e -> f)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
izipWith5 = (Finite n -> a -> b -> c -> d -> e -> f)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n f
forall (v :: Type -> Type) a b c d e f (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f) =>
(Finite n -> a -> b -> c -> d -> e -> f)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n f
V.izipWith5
{-# inline izipWith5 #-}
izipWith6 :: (Finite n -> a -> b -> c -> d -> e -> f -> g)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n g
izipWith6 :: forall (n :: Nat) a b c d e f g.
(Finite n -> a -> b -> c -> d -> e -> f -> g)
-> Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n g
izipWith6 = (Finite n -> a -> b -> c -> d -> e -> f -> g)
-> Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n f
-> Vector Vector n g
forall (v :: Type -> Type) a b c d e f g (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f, Vector v g) =>
(Finite n -> a -> b -> c -> d -> e -> f -> g)
-> Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n f
-> Vector v n g
V.izipWith6
{-# inline izipWith6 #-}
zip :: Vector n a -> Vector n b -> Vector n (a, b)
zip :: forall (n :: Nat) a b. Vector n a -> Vector n b -> Vector n (a, b)
zip = Vector Vector n a -> Vector Vector n b -> Vector Vector n (a, b)
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b, Vector v (a, b)) =>
Vector v n a -> Vector v n b -> Vector v n (a, b)
V.zip
{-# inline zip #-}
zip3 :: Vector n a -> Vector n b -> Vector n c -> Vector n (a, b, c)
zip3 :: forall (n :: Nat) a b c.
Vector n a -> Vector n b -> Vector n c -> Vector n (a, b, c)
zip3 = Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n (a, b, c)
forall (v :: Type -> Type) a b c (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v (a, b, c)) =>
Vector v n a
-> Vector v n b -> Vector v n c -> Vector v n (a, b, c)
V.zip3
{-# inline zip3 #-}
zip4 :: Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n (a,b,c,d)
zip4 :: forall (n :: Nat) a b c d.
Vector n a
-> Vector n b -> Vector n c -> Vector n d -> Vector n (a, b, c, d)
zip4 = Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n (a, b, c, d)
forall (v :: Type -> Type) a b c d (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d,
Vector v (a, b, c, d)) =>
Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n (a, b, c, d)
V.zip4
{-# inline zip4 #-}
zip5 :: Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n (a,b,c,d,e)
zip5 :: forall (n :: Nat) a b c d e.
Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n (a, b, c, d, e)
zip5 = Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n (a, b, c, d, e)
forall (v :: Type -> Type) a b c d e (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v (a, b, c, d, e)) =>
Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n (a, b, c, d, e)
V.zip5
{-# inline zip5 #-}
zip6 :: Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n (a,b,c,d,e,f)
zip6 :: forall (n :: Nat) a b c d e f.
Vector n a
-> Vector n b
-> Vector n c
-> Vector n d
-> Vector n e
-> Vector n f
-> Vector n (a, b, c, d, e, f)
zip6 = Vector Vector n a
-> Vector Vector n b
-> Vector Vector n c
-> Vector Vector n d
-> Vector Vector n e
-> Vector Vector n f
-> Vector Vector n (a, b, c, d, e, f)
forall (v :: Type -> Type) a b c d e f (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f, Vector v (a, b, c, d, e, f)) =>
Vector v n a
-> Vector v n b
-> Vector v n c
-> Vector v n d
-> Vector v n e
-> Vector v n f
-> Vector v n (a, b, c, d, e, f)
V.zip6
{-# inline zip6 #-}
zipWithM :: Monad m
=> (a -> b -> m c) -> Vector n a -> Vector n b -> m (Vector n c)
zipWithM :: forall (m :: Type -> Type) a b c (n :: Nat).
Monad m =>
(a -> b -> m c) -> Vector n a -> Vector n b -> m (Vector n c)
zipWithM = (a -> b -> m c)
-> Vector Vector n a -> Vector Vector n b -> m (Vector Vector n c)
forall (m :: Type -> Type) (v :: Type -> Type) a b c (n :: Nat).
(Monad m, Vector v a, Vector v b, Vector v c) =>
(a -> b -> m c) -> Vector v n a -> Vector v n b -> m (Vector v n c)
V.zipWithM
{-# inline zipWithM #-}
izipWithM :: Monad m
=> (Finite n -> a -> b -> m c) -> Vector n a -> Vector n b -> m (Vector n c)
izipWithM :: forall (m :: Type -> Type) (n :: Nat) a b c.
Monad m =>
(Finite n -> a -> b -> m c)
-> Vector n a -> Vector n b -> m (Vector n c)
izipWithM = (Finite n -> a -> b -> m c)
-> Vector Vector n a -> Vector Vector n b -> m (Vector Vector n c)
forall (m :: Type -> Type) (v :: Type -> Type) a b c (n :: Nat).
(Monad m, Vector v a, Vector v b, Vector v c) =>
(Finite n -> a -> b -> m c)
-> Vector v n a -> Vector v n b -> m (Vector v n c)
V.izipWithM
{-# inline izipWithM #-}
zipWithM_ :: Monad m
=> (a -> b -> m c) -> Vector n a -> Vector n b -> m ()
zipWithM_ :: forall (m :: Type -> Type) a b c (n :: Nat).
Monad m =>
(a -> b -> m c) -> Vector n a -> Vector n b -> m ()
zipWithM_ = (a -> b -> m c) -> Vector Vector n a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a b c (n :: Nat).
(Monad m, Vector v a, Vector v b) =>
(a -> b -> m c) -> Vector v n a -> Vector v n b -> m ()
V.zipWithM_
{-# inline zipWithM_ #-}
izipWithM_ :: Monad m
=> (Finite n -> a -> b -> m c) -> Vector n a -> Vector n b -> m ()
izipWithM_ :: forall (m :: Type -> Type) (n :: Nat) a b c.
Monad m =>
(Finite n -> a -> b -> m c) -> Vector n a -> Vector n b -> m ()
izipWithM_ = (Finite n -> a -> b -> m c)
-> Vector Vector n a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a b (n :: Nat) c.
(Monad m, Vector v a, Vector v b) =>
(Finite n -> a -> b -> m c) -> Vector v n a -> Vector v n b -> m ()
V.izipWithM_
{-# inline izipWithM_ #-}
unzip :: Vector n (a, b) -> (Vector n a, Vector n b)
unzip :: forall (n :: Nat) a b. Vector n (a, b) -> (Vector n a, Vector n b)
unzip = Vector Vector n (a, b) -> (Vector Vector n a, Vector Vector n b)
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b, Vector v (a, b)) =>
Vector v n (a, b) -> (Vector v n a, Vector v n b)
V.unzip
{-# inline unzip #-}
unzip3 :: Vector n (a, b, c) -> (Vector n a, Vector n b, Vector n c)
unzip3 :: forall (n :: Nat) a b c.
Vector n (a, b, c) -> (Vector n a, Vector n b, Vector n c)
unzip3 = Vector Vector n (a, b, c)
-> (Vector Vector n a, Vector Vector n b, Vector Vector n c)
forall (v :: Type -> Type) a b c (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v (a, b, c)) =>
Vector v n (a, b, c) -> (Vector v n a, Vector v n b, Vector v n c)
V.unzip3
{-# inline unzip3 #-}
unzip4 :: Vector n (a, b, c, d) -> (Vector n a, Vector n b, Vector n c, Vector n d)
unzip4 :: forall (n :: Nat) a b c d.
Vector n (a, b, c, d)
-> (Vector n a, Vector n b, Vector n c, Vector n d)
unzip4 = Vector Vector n (a, b, c, d)
-> (Vector Vector n a, Vector Vector n b, Vector Vector n c,
Vector Vector n d)
forall (v :: Type -> Type) a b c d (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d,
Vector v (a, b, c, d)) =>
Vector v n (a, b, c, d)
-> (Vector v n a, Vector v n b, Vector v n c, Vector v n d)
V.unzip4
{-# inline unzip4 #-}
unzip5 :: Vector n (a, b, c, d, e) -> (Vector n a, Vector n b, Vector n c, Vector n d, Vector n e)
unzip5 :: forall (n :: Nat) a b c d e.
Vector n (a, b, c, d, e)
-> (Vector n a, Vector n b, Vector n c, Vector n d, Vector n e)
unzip5 = Vector Vector n (a, b, c, d, e)
-> (Vector Vector n a, Vector Vector n b, Vector Vector n c,
Vector Vector n d, Vector Vector n e)
forall (v :: Type -> Type) a b c d e (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v (a, b, c, d, e)) =>
Vector v n (a, b, c, d, e)
-> (Vector v n a, Vector v n b, Vector v n c, Vector v n d,
Vector v n e)
V.unzip5
{-# inline unzip5 #-}
unzip6 :: Vector n (a, b, c, d, e, f) -> (Vector n a, Vector n b, Vector n c, Vector n d, Vector n e, Vector n f)
unzip6 :: forall (n :: Nat) a b c d e f.
Vector n (a, b, c, d, e, f)
-> (Vector n a, Vector n b, Vector n c, Vector n d, Vector n e,
Vector n f)
unzip6 = Vector Vector n (a, b, c, d, e, f)
-> (Vector Vector n a, Vector Vector n b, Vector Vector n c,
Vector Vector n d, Vector Vector n e, Vector Vector n f)
forall (v :: Type -> Type) a b c d e f (n :: Nat).
(Vector v a, Vector v b, Vector v c, Vector v d, Vector v e,
Vector v f, Vector v (a, b, c, d, e, f)) =>
Vector v n (a, b, c, d, e, f)
-> (Vector v n a, Vector v n b, Vector v n c, Vector v n d,
Vector v n e, Vector v n f)
V.unzip6
{-# inline unzip6 #-}
infix 4 `elem`
elem :: Eq a => a -> Vector n a -> Bool
elem :: forall a (n :: Nat). Eq a => a -> Vector n a -> Bool
elem = a -> Vector Vector n a -> Bool
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Eq a) =>
a -> Vector v n a -> Bool
V.elem
{-# inline elem #-}
infix 4 `notElem`
notElem :: Eq a => a -> Vector n a -> Bool
notElem :: forall a (n :: Nat). Eq a => a -> Vector n a -> Bool
notElem = a -> Vector Vector n a -> Bool
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Eq a) =>
a -> Vector v n a -> Bool
V.notElem
{-# inline notElem #-}
find :: (a -> Bool) -> Vector n a -> Maybe a
find :: forall a (n :: Nat). (a -> Bool) -> Vector n a -> Maybe a
find = (a -> Bool) -> Vector Vector n a -> Maybe a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> Bool) -> Vector v n a -> Maybe a
V.find
{-# inline find #-}
findIndex :: (a -> Bool) -> Vector n a -> Maybe (Finite n)
findIndex :: forall a (n :: Nat). (a -> Bool) -> Vector n a -> Maybe (Finite n)
findIndex = (a -> Bool) -> Vector Vector n a -> Maybe (Finite n)
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> Bool) -> Vector v n a -> Maybe (Finite n)
V.findIndex
{-# inline findIndex #-}
elemIndex :: (Eq a) => a -> Vector n a -> Maybe (Finite n)
elemIndex :: forall a (n :: Nat). Eq a => a -> Vector n a -> Maybe (Finite n)
elemIndex = a -> Vector Vector n a -> Maybe (Finite n)
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Eq a) =>
a -> Vector v n a -> Maybe (Finite n)
V.elemIndex
{-# inline elemIndex #-}
foldl :: (a -> b -> a) -> a -> Vector n b -> a
foldl :: forall a b (n :: Nat). (a -> b -> a) -> a -> Vector n b -> a
foldl = (a -> b -> a) -> a -> Vector Vector n b -> a
forall (v :: Type -> Type) b a (n :: Nat).
Vector v b =>
(a -> b -> a) -> a -> Vector v n b -> a
V.foldl
{-# inline foldl #-}
foldl1 :: (a -> a -> a) -> Vector (1+n) a -> a
foldl1 :: forall a (n :: Nat). (a -> a -> a) -> Vector (1 + n) a -> a
foldl1 = (a -> a -> a) -> Vector Vector (1 + n) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (1 + n) a -> a
V.foldl1
{-# inline foldl1 #-}
foldl' :: (a -> b -> a) -> a -> Vector n b -> a
foldl' :: forall a b (n :: Nat). (a -> b -> a) -> a -> Vector n b -> a
foldl' = (a -> b -> a) -> a -> Vector Vector n b -> a
forall (v :: Type -> Type) b a (n :: Nat).
Vector v b =>
(a -> b -> a) -> a -> Vector v n b -> a
V.foldl'
{-# inline foldl' #-}
foldl1' :: (a -> a -> a) -> Vector (1+n) a -> a
foldl1' :: forall a (n :: Nat). (a -> a -> a) -> Vector (1 + n) a -> a
foldl1' = (a -> a -> a) -> Vector Vector (1 + n) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (1 + n) a -> a
V.foldl1'
{-# inline foldl1' #-}
foldr :: (a -> b -> b) -> b -> Vector n a -> b
foldr :: forall a b (n :: Nat). (a -> b -> b) -> b -> Vector n a -> b
foldr = (a -> b -> b) -> b -> Vector Vector n a -> b
forall (v :: Type -> Type) a b (n :: Nat).
Vector v a =>
(a -> b -> b) -> b -> Vector v n a -> b
V.foldr
{-# inline foldr #-}
foldr1 :: (a -> a -> a) -> Vector (n+1) a -> a
foldr1 :: forall a (n :: Nat). (a -> a -> a) -> Vector (n + 1) a -> a
foldr1 = (a -> a -> a) -> Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (n + 1) a -> a
V.foldr1
{-# inline foldr1 #-}
foldr' :: (a -> b -> b) -> b -> Vector n a -> b
foldr' :: forall a b (n :: Nat). (a -> b -> b) -> b -> Vector n a -> b
foldr' = (a -> b -> b) -> b -> Vector Vector n a -> b
forall (v :: Type -> Type) a b (n :: Nat).
Vector v a =>
(a -> b -> b) -> b -> Vector v n a -> b
V.foldr'
{-# inline foldr' #-}
foldr1' :: (a -> a -> a) -> Vector (n+1) a -> a
foldr1' :: forall a (n :: Nat). (a -> a -> a) -> Vector (n + 1) a -> a
foldr1' = (a -> a -> a) -> Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (n + 1) a -> a
V.foldr1'
{-# inline foldr1' #-}
ifoldl :: (a -> Finite n -> b -> a) -> a -> Vector n b -> a
ifoldl :: forall a (n :: Nat) b.
(a -> Finite n -> b -> a) -> a -> Vector n b -> a
ifoldl = (a -> Finite n -> b -> a) -> a -> Vector Vector n b -> a
forall (v :: Type -> Type) b a (n :: Nat).
Vector v b =>
(a -> Finite n -> b -> a) -> a -> Vector v n b -> a
V.ifoldl
{-# inline ifoldl #-}
ifoldl' :: (a -> Finite n -> b -> a) -> a -> Vector n b -> a
ifoldl' :: forall a (n :: Nat) b.
(a -> Finite n -> b -> a) -> a -> Vector n b -> a
ifoldl' = (a -> Finite n -> b -> a) -> a -> Vector Vector n b -> a
forall (v :: Type -> Type) b a (n :: Nat).
Vector v b =>
(a -> Finite n -> b -> a) -> a -> Vector v n b -> a
V.ifoldl'
{-# inline ifoldl' #-}
ifoldr :: (Finite n -> a -> b -> b) -> b -> Vector n a -> b
ifoldr :: forall (n :: Nat) a b.
(Finite n -> a -> b -> b) -> b -> Vector n a -> b
ifoldr = (Finite n -> a -> b -> b) -> b -> Vector Vector n a -> b
forall (v :: Type -> Type) a (n :: Nat) b.
Vector v a =>
(Finite n -> a -> b -> b) -> b -> Vector v n a -> b
V.ifoldr
{-# inline ifoldr #-}
ifoldr' :: (Finite n -> a -> b -> b) -> b -> Vector n a -> b
ifoldr' :: forall (n :: Nat) a b.
(Finite n -> a -> b -> b) -> b -> Vector n a -> b
ifoldr' = (Finite n -> a -> b -> b) -> b -> Vector Vector n a -> b
forall (v :: Type -> Type) a (n :: Nat) b.
Vector v a =>
(Finite n -> a -> b -> b) -> b -> Vector v n a -> b
V.ifoldr'
{-# inline ifoldr' #-}
all :: (a -> Bool) -> Vector n a -> Bool
all :: forall a (n :: Nat). (a -> Bool) -> Vector n a -> Bool
all = (a -> Bool) -> Vector Vector n a -> Bool
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> Bool) -> Vector v n a -> Bool
V.all
{-# inline all #-}
any :: (a -> Bool) -> Vector n a -> Bool
any :: forall a (n :: Nat). (a -> Bool) -> Vector n a -> Bool
any = (a -> Bool) -> Vector Vector n a -> Bool
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> Bool) -> Vector v n a -> Bool
V.any
{-# inline any #-}
and :: Vector n Bool -> Bool
and :: forall (n :: Nat). Vector n Bool -> Bool
and = Vector Vector n Bool -> Bool
forall (v :: Type -> Type) (n :: Nat).
Vector v Bool =>
Vector v n Bool -> Bool
V.and
{-# inline and #-}
or :: Vector n Bool -> Bool
or :: forall (n :: Nat). Vector n Bool -> Bool
or = Vector Vector n Bool -> Bool
forall (v :: Type -> Type) (n :: Nat).
Vector v Bool =>
Vector v n Bool -> Bool
V.or
{-# inline or #-}
sum :: (Num a) => Vector n a -> a
sum :: forall a (n :: Nat). Num a => Vector n a -> a
sum = Vector Vector n a -> a
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Num a) =>
Vector v n a -> a
V.sum
{-# inline sum #-}
product :: (Num a) => Vector n a -> a
product :: forall a (n :: Nat). Num a => Vector n a -> a
product = Vector Vector n a -> a
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Num a) =>
Vector v n a -> a
V.product
{-# inline product #-}
maximum :: Ord a => Vector (n+1) a -> a
maximum :: forall a (n :: Nat). Ord a => Vector (n + 1) a -> a
maximum = Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Ord a) =>
Vector v (n + 1) a -> a
V.maximum
{-# inline maximum #-}
maximumBy :: (a -> a -> Ordering) -> Vector (n+1) a -> a
maximumBy :: forall a (n :: Nat). (a -> a -> Ordering) -> Vector (n + 1) a -> a
maximumBy = (a -> a -> Ordering) -> Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> Ordering) -> Vector v (n + 1) a -> a
V.maximumBy
{-# inline maximumBy #-}
minimum :: Ord a => Vector (n+1) a -> a
minimum :: forall a (n :: Nat). Ord a => Vector (n + 1) a -> a
minimum = Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Ord a) =>
Vector v (n + 1) a -> a
V.minimum
{-# inline minimum #-}
minimumBy :: (a -> a -> Ordering) -> Vector (n+1) a -> a
minimumBy :: forall a (n :: Nat). (a -> a -> Ordering) -> Vector (n + 1) a -> a
minimumBy = (a -> a -> Ordering) -> Vector Vector (n + 1) a -> a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> Ordering) -> Vector v (n + 1) a -> a
V.minimumBy
{-# inline minimumBy #-}
maxIndex :: Ord a => Vector (n+1) a -> Finite (n + 1)
maxIndex :: forall a (n :: Nat). Ord a => Vector (n + 1) a -> Finite (n + 1)
maxIndex = Vector Vector (n + 1) a -> Finite (n + 1)
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Ord a) =>
Vector v (n + 1) a -> Finite (n + 1)
V.maxIndex
{-# inline maxIndex #-}
maxIndexBy :: (a -> a -> Ordering) -> Vector (n+1) a -> Finite (n + 1)
maxIndexBy :: forall a (n :: Nat).
(a -> a -> Ordering) -> Vector (n + 1) a -> Finite (n + 1)
maxIndexBy = (a -> a -> Ordering) -> Vector Vector (n + 1) a -> Finite (n + 1)
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> Ordering) -> Vector v (n + 1) a -> Finite (n + 1)
V.maxIndexBy
{-# inline maxIndexBy #-}
minIndex :: Ord a => Vector (n+1) a -> Finite (n + 1)
minIndex :: forall a (n :: Nat). Ord a => Vector (n + 1) a -> Finite (n + 1)
minIndex = Vector Vector (n + 1) a -> Finite (n + 1)
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, Ord a) =>
Vector v (n + 1) a -> Finite (n + 1)
V.minIndex
{-# inline minIndex #-}
minIndexBy :: (a -> a -> Ordering) -> Vector (n+1) a -> Finite (n + 1)
minIndexBy :: forall a (n :: Nat).
(a -> a -> Ordering) -> Vector (n + 1) a -> Finite (n + 1)
minIndexBy = (a -> a -> Ordering) -> Vector Vector (n + 1) a -> Finite (n + 1)
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> Ordering) -> Vector v (n + 1) a -> Finite (n + 1)
V.minIndexBy
{-# inline minIndexBy #-}
foldM :: Monad m => (a -> b -> m a) -> a -> Vector n b -> m a
foldM :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> b -> m a) -> a -> Vector n b -> m a
foldM = (a -> b -> m a) -> a -> Vector Vector n b -> m a
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> b -> m a) -> a -> Vector v n b -> m a
V.foldM
{-# inline foldM #-}
ifoldM :: Monad m => (a -> Finite n -> b -> m a) -> a -> Vector n b -> m a
ifoldM :: forall (m :: Type -> Type) a (n :: Nat) b.
Monad m =>
(a -> Finite n -> b -> m a) -> a -> Vector n b -> m a
ifoldM = (a -> Finite n -> b -> m a) -> a -> Vector Vector n b -> m a
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> Finite n -> b -> m a) -> a -> Vector v n b -> m a
V.ifoldM
{-# inline ifoldM #-}
fold1M :: Monad m => (a -> a -> m a) -> Vector (1+n) a -> m a
fold1M :: forall (m :: Type -> Type) a (n :: Nat).
Monad m =>
(a -> a -> m a) -> Vector (1 + n) a -> m a
fold1M = (a -> a -> m a) -> Vector Vector (1 + n) a -> m a
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v a) =>
(a -> a -> m a) -> Vector v (1 + n) a -> m a
V.fold1M
{-# inline fold1M #-}
foldM' :: Monad m => (a -> b -> m a) -> a -> Vector n b -> m a
foldM' :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> b -> m a) -> a -> Vector n b -> m a
foldM' = (a -> b -> m a) -> a -> Vector Vector n b -> m a
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> b -> m a) -> a -> Vector v n b -> m a
V.foldM'
{-# inline foldM' #-}
ifoldM' :: Monad m => (a -> Finite n -> b -> m a) -> a -> Vector n b -> m a
ifoldM' :: forall (m :: Type -> Type) a (n :: Nat) b.
Monad m =>
(a -> Finite n -> b -> m a) -> a -> Vector n b -> m a
ifoldM' = (a -> Finite n -> b -> m a) -> a -> Vector Vector n b -> m a
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> Finite n -> b -> m a) -> a -> Vector v n b -> m a
V.ifoldM'
{-# inline ifoldM' #-}
fold1M' :: Monad m => (a -> a -> m a) -> Vector (n+1) a -> m a
fold1M' :: forall (m :: Type -> Type) a (n :: Nat).
Monad m =>
(a -> a -> m a) -> Vector (n + 1) a -> m a
fold1M' = (a -> a -> m a) -> Vector Vector (n + 1) a -> m a
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v a) =>
(a -> a -> m a) -> Vector v (n + 1) a -> m a
V.fold1M'
{-# inline fold1M' #-}
foldM_ :: Monad m => (a -> b -> m a) -> a -> Vector n b -> m ()
foldM_ :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> b -> m a) -> a -> Vector n b -> m ()
foldM_ = (a -> b -> m a) -> a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> b -> m a) -> a -> Vector v n b -> m ()
V.foldM_
{-# inline foldM_ #-}
ifoldM_ :: Monad m => (a -> Finite n -> b -> m a) -> a -> Vector n b -> m ()
ifoldM_ :: forall (m :: Type -> Type) a (n :: Nat) b.
Monad m =>
(a -> Finite n -> b -> m a) -> a -> Vector n b -> m ()
ifoldM_ = (a -> Finite n -> b -> m a) -> a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> Finite n -> b -> m a) -> a -> Vector v n b -> m ()
V.ifoldM_
{-# inline ifoldM_ #-}
fold1M_ :: Monad m => (a -> a -> m a) -> Vector (n+1) a -> m ()
fold1M_ :: forall (m :: Type -> Type) a (n :: Nat).
Monad m =>
(a -> a -> m a) -> Vector (n + 1) a -> m ()
fold1M_ = (a -> a -> m a) -> Vector Vector (n + 1) a -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v a) =>
(a -> a -> m a) -> Vector v (n + 1) a -> m ()
V.fold1M_
{-# inline fold1M_ #-}
foldM'_ :: Monad m => (a -> b -> m a) -> a -> Vector n b -> m ()
foldM'_ :: forall (m :: Type -> Type) a b (n :: Nat).
Monad m =>
(a -> b -> m a) -> a -> Vector n b -> m ()
foldM'_ = (a -> b -> m a) -> a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> b -> m a) -> a -> Vector v n b -> m ()
V.foldM'_
{-# inline foldM'_ #-}
ifoldM'_ :: Monad m => (a -> Finite n -> b -> m a) -> a -> Vector n b -> m ()
ifoldM'_ :: forall (m :: Type -> Type) a (n :: Nat) b.
Monad m =>
(a -> Finite n -> b -> m a) -> a -> Vector n b -> m ()
ifoldM'_ = (a -> Finite n -> b -> m a) -> a -> Vector Vector n b -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) b a (n :: Nat).
(Monad m, Vector v b) =>
(a -> Finite n -> b -> m a) -> a -> Vector v n b -> m ()
V.ifoldM'_
{-# inline ifoldM'_ #-}
fold1M'_ :: Monad m => (a -> a -> m a) -> Vector (n+1) a -> m ()
fold1M'_ :: forall (m :: Type -> Type) a (n :: Nat).
Monad m =>
(a -> a -> m a) -> Vector (n + 1) a -> m ()
fold1M'_ = (a -> a -> m a) -> Vector Vector (n + 1) a -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v a) =>
(a -> a -> m a) -> Vector v (n + 1) a -> m ()
V.fold1M'_
{-# inline fold1M'_ #-}
sequence :: Monad m => Vector n (m a) -> m (Vector n a)
sequence :: forall (m :: Type -> Type) (n :: Nat) a.
Monad m =>
Vector n (m a) -> m (Vector n a)
sequence = Vector Vector n (m a) -> m (Vector Vector n a)
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v a, Vector v (m a)) =>
Vector v n (m a) -> m (Vector v n a)
V.sequence
{-# inline sequence #-}
sequence_ :: Monad m => Vector n (m a) -> m ()
sequence_ :: forall (m :: Type -> Type) (n :: Nat) a.
Monad m =>
Vector n (m a) -> m ()
sequence_ = Vector Vector n (m a) -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(Monad m, Vector v (m a)) =>
Vector v n (m a) -> m ()
V.sequence_
{-# inline sequence_ #-}
prescanl :: (a -> b -> a) -> a -> Vector n b -> Vector n a
prescanl :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector n a
prescanl = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector n a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v n a
V.prescanl
{-# inline prescanl #-}
prescanl' :: (a -> b -> a) -> a -> Vector n b -> Vector n a
prescanl' :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector n a
prescanl' = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector n a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v n a
V.prescanl'
{-# inline prescanl' #-}
postscanl :: (a -> b -> a) -> a -> Vector n b -> Vector n a
postscanl :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector n a
postscanl = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector n a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v n a
V.postscanl
{-# inline postscanl #-}
postscanl' :: (a -> b -> a) -> a -> Vector n b -> Vector n a
postscanl' :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector n a
postscanl' = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector n a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v n a
V.postscanl'
{-# inline postscanl' #-}
scanl :: (a -> b -> a) -> a -> Vector n b -> Vector (1+n) a
scanl :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector (1 + n) a
scanl = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector (1 + n) a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v (1 + n) a
V.scanl
{-# inline scanl #-}
scanl' :: (a -> b -> a) -> a -> Vector n b -> Vector (1+n) a
scanl' :: forall a b (n :: Nat).
(a -> b -> a) -> a -> Vector n b -> Vector (1 + n) a
scanl' = (a -> b -> a) -> a -> Vector Vector n b -> Vector Vector (1 + n) a
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> a) -> a -> Vector v n b -> Vector v (1 + n) a
V.scanl'
{-# inline scanl' #-}
scanl1 :: (a -> a -> a) -> Vector (1+n) a -> Vector (2+n) a
scanl1 :: forall a (n :: Nat).
(a -> a -> a) -> Vector (1 + n) a -> Vector (2 + n) a
scanl1 = (a -> a -> a) -> Vector Vector (1 + n) a -> Vector Vector (2 + n) a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (1 + n) a -> Vector v (2 + n) a
V.scanl1
{-# inline scanl1 #-}
scanl1' :: (a -> a -> a) -> Vector (1+n) a -> Vector (2+n) a
scanl1' :: forall a (n :: Nat).
(a -> a -> a) -> Vector (1 + n) a -> Vector (2 + n) a
scanl1' = (a -> a -> a) -> Vector Vector (1 + n) a -> Vector Vector (2 + n) a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (1 + n) a -> Vector v (2 + n) a
V.scanl1'
{-# inline scanl1' #-}
prescanr :: (a -> b -> b) -> b -> Vector n a -> Vector n b
prescanr :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector n b
prescanr = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v n b
V.prescanr
{-# inline prescanr #-}
prescanr' :: (a -> b -> b) -> b -> Vector n a -> Vector n b
prescanr' :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector n b
prescanr' = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v n b
V.prescanr'
{-# inline prescanr' #-}
postscanr :: (a -> b -> b) -> b -> Vector n a -> Vector n b
postscanr :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector n b
postscanr = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v n b
V.postscanr
{-# inline postscanr #-}
postscanr' :: (a -> b -> b) -> b -> Vector n a -> Vector n b
postscanr' :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector n b
postscanr' = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v n b
V.postscanr'
{-# inline postscanr' #-}
scanr :: (a -> b -> b) -> b -> Vector n a -> Vector (n+1) b
scanr :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector (n + 1) b
scanr = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector (n + 1) b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v (n + 1) b
V.scanr
{-# inline scanr #-}
scanr' :: (a -> b -> b) -> b -> Vector n a -> Vector (n+1) b
scanr' :: forall a b (n :: Nat).
(a -> b -> b) -> b -> Vector n a -> Vector (n + 1) b
scanr' = (a -> b -> b) -> b -> Vector Vector n a -> Vector Vector (n + 1) b
forall (v :: Type -> Type) a b (n :: Nat).
(Vector v a, Vector v b) =>
(a -> b -> b) -> b -> Vector v n a -> Vector v (n + 1) b
V.scanr'
{-# inline scanr' #-}
scanr1 :: (a -> a -> a) -> Vector (n+1) a -> Vector (n+2) a
scanr1 :: forall a (n :: Nat).
(a -> a -> a) -> Vector (n + 1) a -> Vector (n + 2) a
scanr1 = (a -> a -> a) -> Vector Vector (n + 1) a -> Vector Vector (n + 2) a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (n + 1) a -> Vector v (n + 2) a
V.scanr1
{-# inline scanr1 #-}
scanr1' :: (a -> a -> a) -> Vector (n+1) a -> Vector (n+2) a
scanr1' :: forall a (n :: Nat).
(a -> a -> a) -> Vector (n + 1) a -> Vector (n + 2) a
scanr1' = (a -> a -> a) -> Vector Vector (n + 1) a -> Vector Vector (n + 2) a
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
(a -> a -> a) -> Vector v (n + 1) a -> Vector v (n + 2) a
V.scanr1'
{-# inline scanr1' #-}
toList :: Vector n a -> [a]
toList :: forall (n :: Nat) a. Vector n a -> [a]
toList = Vector Vector n a -> [a]
forall (v :: Type -> Type) a (n :: Nat).
Vector v a =>
Vector v n a -> [a]
V.toList
{-# inline toList #-}
fromList :: KnownNat n => [a] -> Maybe (Vector n a)
fromList :: forall (n :: Nat) a. KnownNat n => [a] -> Maybe (Vector n a)
fromList = [a] -> Maybe (Vector Vector n a)
forall (v :: Type -> Type) a (n :: Nat).
(Vector v a, KnownNat n) =>
[a] -> Maybe (Vector v n a)
V.fromList
{-# inline fromList #-}
fromListN :: forall n a. KnownNat n
=> [a] -> Maybe (Vector n a)
fromListN :: forall (n :: Nat) a. KnownNat n => [a] -> Maybe (Vector n a)
fromListN = [a] -> Maybe (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) a.
(Vector v a, KnownNat n) =>
[a] -> Maybe (Vector v n a)
V.fromListN
{-# inline fromListN #-}
fromListN' :: forall n a p. KnownNat n
=> p n -> [a] -> Maybe (Vector n a)
fromListN' :: forall (n :: Nat) a (p :: Nat -> Type).
KnownNat n =>
p n -> [a] -> Maybe (Vector n a)
fromListN' = p n -> [a] -> Maybe (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) a (p :: Nat -> Type).
(Vector v a, KnownNat n) =>
p n -> [a] -> Maybe (Vector v n a)
V.fromListN'
{-# inline fromListN' #-}
withSizedList :: forall a r. [a] -> (forall n. KnownNat n => Vector n a -> r) -> r
withSizedList :: forall a r.
[a] -> (forall (n :: Nat). KnownNat n => Vector n a -> r) -> r
withSizedList [a]
xs = Vector a -> (forall (n :: Nat). KnownNat n => Vector n a -> r) -> r
forall a r.
Vector a -> (forall (n :: Nat). KnownNat n => Vector n a -> r) -> r
withSized ([a] -> Vector a
forall a. [a] -> Vector a
VU.fromList [a]
xs)
{-# inline withSizedList #-}
freeze :: PrimMonad m
=> VM.MVector n (PrimState m) a
-> m (Vector n a)
freeze :: forall (m :: Type -> Type) (n :: Nat) a.
PrimMonad m =>
MVector n (PrimState m) a -> m (Vector n a)
freeze = MVector (Mutable Vector) n (PrimState m) a -> m (Vector Vector n a)
MVector MVector n (PrimState m) a -> m (Vector Vector n a)
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(PrimMonad m, Vector v a) =>
MVector (Mutable v) n (PrimState m) a -> m (Vector v n a)
V.freeze
unsafeFreeze :: PrimMonad m
=> VM.MVector n (PrimState m) a
-> m (Vector n a)
unsafeFreeze :: forall (m :: Type -> Type) (n :: Nat) a.
PrimMonad m =>
MVector n (PrimState m) a -> m (Vector n a)
unsafeFreeze = MVector (Mutable Vector) n (PrimState m) a -> m (Vector Vector n a)
MVector MVector n (PrimState m) a -> m (Vector Vector n a)
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(PrimMonad m, Vector v a) =>
MVector (Mutable v) n (PrimState m) a -> m (Vector v n a)
V.unsafeFreeze
thaw :: PrimMonad m
=> Vector n a
-> m (VM.MVector n (PrimState m) a)
thaw :: forall (m :: Type -> Type) (n :: Nat) a.
PrimMonad m =>
Vector n a -> m (MVector n (PrimState m) a)
thaw = Vector Vector n a -> m (MVector (Mutable Vector) n (PrimState m) a)
Vector Vector n a -> m (MVector MVector n (PrimState m) a)
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(PrimMonad m, Vector v a) =>
Vector v n a -> m (MVector (Mutable v) n (PrimState m) a)
V.thaw
unsafeThaw :: PrimMonad m
=> Vector n a
-> m (VM.MVector n (PrimState m) a)
unsafeThaw :: forall (m :: Type -> Type) (n :: Nat) a.
PrimMonad m =>
Vector n a -> m (MVector n (PrimState m) a)
unsafeThaw = Vector Vector n a -> m (MVector (Mutable Vector) n (PrimState m) a)
Vector Vector n a -> m (MVector MVector n (PrimState m) a)
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(PrimMonad m, Vector v a) =>
Vector v n a -> m (MVector (Mutable v) n (PrimState m) a)
V.unsafeThaw
copy :: PrimMonad m
=> VM.MVector n (PrimState m) a
-> Vector n a
-> m ()
copy :: forall (m :: Type -> Type) (n :: Nat) a.
PrimMonad m =>
MVector n (PrimState m) a -> Vector n a -> m ()
copy = MVector (Mutable Vector) n (PrimState m) a
-> Vector Vector n a -> m ()
MVector MVector n (PrimState m) a -> Vector Vector n a -> m ()
forall (m :: Type -> Type) (v :: Type -> Type) a (n :: Nat).
(PrimMonad m, Vector v a) =>
MVector (Mutable v) n (PrimState m) a -> Vector v n a -> m ()
V.copy
toSized :: forall n a. KnownNat n
=> VU.Vector a -> Maybe (Vector n a)
toSized :: forall (n :: Nat) a. KnownNat n => Vector a -> Maybe (Vector n a)
toSized = Vector a -> Maybe (Vector Vector n a)
forall (v :: Type -> Type) (n :: Nat) a.
(Vector v a, KnownNat n) =>
v a -> Maybe (Vector v n a)
V.toSized
{-# inline toSized #-}
withSized :: forall a r. VU.Vector a -> (forall n. KnownNat n => Vector n a -> r) -> r
withSized :: forall a r.
Vector a -> (forall (n :: Nat). KnownNat n => Vector n a -> r) -> r
withSized = Vector a
-> (forall (n :: Nat). KnownNat n => Vector Vector n a -> r) -> r
forall (v :: Type -> Type) a r.
Vector v a =>
v a -> (forall (n :: Nat). KnownNat n => Vector v n a -> r) -> r
V.withSized
{-# inline withSized #-}
fromSized :: Vector n a -> VU.Vector a
fromSized :: forall (n :: Nat) a. Vector n a -> Vector a
fromSized = Vector Vector n a -> Vector a
forall (v :: Type -> Type) (n :: Nat) a. Vector v n a -> v a
V.fromSized
{-# inline fromSized #-}
withVectorUnsafe :: (VU.Vector a -> VU.Vector b) -> Vector n a -> Vector n b
withVectorUnsafe :: forall a b (n :: Nat).
(Vector a -> Vector b) -> Vector n a -> Vector n b
withVectorUnsafe = (Vector a -> Vector b) -> Vector Vector n a -> Vector Vector n b
forall (v :: Type -> Type) a (w :: Type -> Type) b (n :: Nat).
(v a -> w b) -> Vector v n a -> Vector w n b
V.withVectorUnsafe
{-# inline withVectorUnsafe #-}
zipVectorsUnsafe :: (VU.Vector a -> VU.Vector b -> VU.Vector c) -> Vector n a -> Vector n b -> Vector n c
zipVectorsUnsafe :: forall a b c (n :: Nat).
(Vector a -> Vector b -> Vector c)
-> Vector n a -> Vector n b -> Vector n c
zipVectorsUnsafe = (Vector a -> Vector b -> Vector c)
-> Vector Vector n a -> Vector Vector n b -> Vector Vector n c
forall (u :: Type -> Type) a (v :: Type -> Type) b
(w :: Type -> Type) c (n :: Nat).
(u a -> v b -> w c) -> Vector u n a -> Vector v n b -> Vector w n c
V.zipVectorsUnsafe
{-# inline zipVectorsUnsafe #-}
pattern SomeSized :: () => KnownNat n => Vector n a -> VU.Vector a
pattern $mSomeSized :: forall {r} {a}.
Vector a
-> (forall {n :: Nat}. KnownNat n => Vector n a -> r)
-> ((# #) -> r)
-> r
$bSomeSized :: forall a (n :: Nat). KnownNat n => Vector n a -> Vector a
SomeSized v = V.SomeSized v
{-# complete SomeSized #-}