multilinear-0.2.2.1: Comprehensive and efficient (multi)linear algebra implementation.

Copyright (c) Artur M. Brodzki 2018 BSD3 artur@brodzki.org experimental Windows/POSIX None Haskell2010

Multilinear.Vector

Contents

Description

• This module provides convenient constructors that generates a vector (tensor with one upper index) of finite or infinite size.
• Finitely-dimensional vectors provide much greater performance than infinitely-dimensional
Synopsis

# Generators

Arguments

 :: Num a => String Index name (one character) -> Int Number of elements -> (Int -> a) Generator function - returns a vector component at index i -> Tensor a Generated vector

Generate vector as function of indices

Arguments

 :: Num a => String Index name (one character) -> Int Number of elements -> a Value of each element -> Tensor a Generated vector

Generate vector with all components equal to some v

Arguments

 :: ContGen d => String Index name (one character) -> Int Number of elements -> d Continuous probability distribution (as from Statistics.Distribution) -> IO (Tensor Double) Generated vector

Generate vector with random real components with given probability distribution. The vector is wrapped in the IO monad.

Available probability distributions:

Arguments

 :: (ContGen d, PrimMonad m) => String Index name (one character) -> Int Number of elements -> d Continuous probability distribution (as from Statistics.Distribution) -> Int Randomness seed -> m (Tensor Double) Generated vector

Generate vector with random real components with given probability distribution and given seed. The vector is wrapped in a monad.

Available probability distributions:

Arguments

 :: DiscreteGen d => String Index name (one character) -> Int Number of elements -> d Discrete probability distribution (as from Statistics.Distribution) -> IO (Tensor Int) Generated vector

Generate vector with random integer components with given probability distribution. The vector is wrapped in the IO monad.

Available probability distributions:

Arguments

 :: (DiscreteGen d, PrimMonad m) => String Index name (one character) -> Int Number of elements -> d Discrete probability distribution (as from Statistics.Distribution) -> Int Randomness seed -> m (Tensor Int) Generated vector

Generate vector with random integer components with given probability distribution and given seed. The vector is wrapped in a monad.

Available probability distributions: