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

Copyright(c) Artur M. Brodzki 2018
LicenseBSD3
Maintainerartur@brodzki.org
Stabilityexperimental
PortabilityWindows/POSIX
Safe HaskellNone
LanguageHaskell2010

Multilinear.NVector

Contents

Description

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

Generators

fromIndices Source #

Arguments

:: (Num a, Unbox a, Multilinear t a) 
=> String

Indices names (one characted per index)

-> [Int]

Indices sizes

-> ([Int] -> a)

Generator function

-> t a

Generated n-vector

Generate n-vector as function of its indices

const Source #

Arguments

:: (Num a, Unbox a, Multilinear t a) 
=> String

Indices names (one characted per index)

-> [Int]

Indices sizes

-> a

n-vector elements value

-> t a

Generated n-vector

Generate n-vector with all components equal to v