CLaSH.Sized.Vector

Vector data type

data Vec

Accessors

Length information

length

maxIndex

lengthS

Indexing

(!!)

head

last

at

indices

indicesI

findIndex

elemIndex

Extracting sub-vectors (slicing)

tail

init

take

takeI

drop

dropI

select

selectI

Splitting

splitAt

splitAtI

unconcat

unconcatI

Construction

Initialisation

singleton

replicate

replicateI

repeat

iterate

iterateI

generate

generateI

Initialisation from a list

v

Concatenation

(++)

(+>>)

(<<+)

concat

shiftInAt0

shiftInAtN

shiftOutFrom0

shiftOutFromN

merge

Modifying vectors

replace

Permutations

permute

backpermute

scatter

gather

Specialised permutations

reverse

transpose

interleave

rotateLeft

rotateRight

rotateLeftS

rotateRightS

Element-wise operations

Mapping

map

imap

smap

Zipping

zipWith

zipWith3

zip

zip3

izipWith

Unzipping

unzip

unzip3

Folding

foldr

foldl

foldr1

foldl1

fold

ifoldr

ifoldl

Specialised folds

dfold

vfold

Prefix sums (scans)

scanl

scanr

postscanl

postscanr

mapAccumL

mapAccumR

Stencil computations

stencil1d

stencil2d

windows1d

windows2d

Conversions

toList

bv2v

v2bv

Misc

lazyV

data VCons a f

asNatProxy

Primitives

Traversable instance

traverse#

BitPack instance

concatBitVector#

unconcatBitVector#