Numeric.LinearAlgebra.Devel

FFI helpers

app

appVector

appVectorLen

appMatrix

appMatrixLen

appMatrixRaw

appMatrixRawLen

unsafeMatrixToVector

unsafeMatrixToForeignPtr

FFI tools

createVector

createMatrix

vec

mat

app1

app2

app3

app4

app5

app6

app7

app8

app9

app10

data MatrixOrder

orderOf

cmat

fmat

matrixFromVector

unsafeFromForeignPtr

unsafeToForeignPtr

check

(//)

at'

atM'

fi

ST

Mutable Vectors

data STVector s t

newVector

thawVector

freezeVector

runSTVector

readVector

writeVector

modifyVector

liftSTVector

Mutable Matrices

data STMatrix s t

newMatrix

thawMatrix

freezeMatrix

runSTMatrix

readMatrix

writeMatrix

modifyMatrix

liftSTMatrix

Unsafe functions

newUndefinedVector

unsafeReadVector

unsafeWriteVector

unsafeThawVector

unsafeFreezeVector

newUndefinedMatrix

unsafeReadMatrix

unsafeWriteMatrix

unsafeThawMatrix

unsafeFreezeMatrix

Special maps and zips

mapVectorWithIndex

zipVector

zipVectorWith

unzipVector

unzipVectorWith

mapVectorM

mapVectorM_

mapVectorWithIndexM

mapVectorWithIndexM_

foldLoop

foldVector

foldVectorG

foldVectorWithIndex

mapMatrixWithIndex

mapMatrixWithIndexM

mapMatrixWithIndexM_

liftMatrix

liftMatrix2

liftMatrix2Auto

Sparse representation

data CSR

fromCSR

mkCSR

data GMatrix

Misc

toByteString

fromByteString