Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fscanfVector :: FilePath -> Int -> IO (Vector Double)hmatrix-gsl Numeric.GSL.LinearAlgebra Loads a vector from an ASCII file (the number of elements must be known in advance).
fwriteVector :: FilePath -> Vector Double -> IO ()hmatrix-gsl Numeric.GSL.LinearAlgebra Saves the elements of a vector to a binary file.
randomVector :: Int -> RandDist -> Int -> Vector Doublehmatrix-gsl Numeric.GSL.LinearAlgebra Obtains a vector of pseudorandom elements from the the mt19937 generator in GSL, with a given seed. Use randomIO to get a random seed.
-
hmatrix-gsl Numeric.GSL.Minimization Deprecated: use minimizeD VectorBFGS2 eps maxit step tol f g xi
-
Non-empty vectors Performant, non-empty mutable and immutable vectors
-
nonempty-vector Data.Vector.NonEmpty NonEmptyVector is a thin wrapper around Vector that witnesses an API requiring non-empty construction, initialization, and generation of non-empty vectors by design. A newtype wrapper was chosen so that no new pointer indirection is introduced when working with Vectors, and all performance characteristics inherited from the Vector API still apply.
fromVector :: Vector a -> Maybe (NonEmptyVector a)nonempty-vector Data.Vector.NonEmpty O(1) Convert from a vector to a non-empty vector. If the vector is empty, then Nothing is returned, otherwise Just containing the non-empty vector.
>>> fromVector $ V.fromList [1..3] Just [1,2,3]
>>> fromVector $ V.fromList [] Nothing
toVector :: NonEmptyVector a -> Vector anonempty-vector Data.Vector.NonEmpty O(1) Convert from a non-empty vector to a vector.
>>> let nev :: NonEmptyVector Int = unsafeFromList [1..3] in toVector nev [1,2,3]
unsafeFromVector :: Vector a -> NonEmptyVector anonempty-vector Data.Vector.NonEmpty O(1) Convert from a vector to a non-empty vector without checking bounds. Warning: the onus is on the user to ensure that their vector is not empty, otherwise all bets are off!
>>> unsafeFromVector $ V.fromList [1..3] [1,2,3]
type
NonEmptyIOVector = NonEmptyMVector RealWorldnonempty-vector Data.Vector.NonEmpty.Internal NonEmptyMVector parametrized by PrimState