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.

  1. 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).

  2. fwriteVector :: FilePath -> Vector Double -> IO ()

    hmatrix-gsl Numeric.GSL.LinearAlgebra

    Saves the elements of a vector to a binary file.

  3. randomVector :: Int -> RandDist -> Int -> Vector Double

    hmatrix-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.

  4. minimizeVectorBFGS2 :: Double -> Double -> Double -> Int -> ([Double] -> Double) -> ([Double] -> [Double]) -> [Double] -> ([Double], Matrix Double)

    hmatrix-gsl Numeric.GSL.Minimization

    Deprecated: use minimizeD VectorBFGS2 eps maxit step tol f g xi

  5. package nonempty-vector

    Non-empty vectors Performant, non-empty mutable and immutable vectors

  6. data NonEmptyVector a

    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.

  7. 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
    

  8. toVector :: NonEmptyVector a -> Vector a

    nonempty-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]
    

  9. unsafeFromVector :: Vector a -> NonEmptyVector a

    nonempty-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]
    

  10. type NonEmptyIOVector = NonEmptyMVector RealWorld

    nonempty-vector Data.Vector.NonEmpty.Internal

    NonEmptyMVector parametrized by PrimState

Page 80 of many | Previous | Next