:load src/Aliases.hs
src/Integration/Simpson.hs
src/Integration/Trapezoid.hs
- src/Matrix.hs
+ src/Linear/Matrix.hs
+ src/Linear/Vector.hs
src/Misc.hs
src/Normed.hs
src/ODE/IVP.hs
src/Roots/Simple.hs
- src/Vector.hs
:}
-- Just for convenience.
import Aliases
import Integration.Simpson
import Integration.Trapezoid
-import Matrix
+import Linear.Vector
+import Linear.Matrix
import Misc
import Normed
import ODE.IVP
import Roots.Simple
-import Vector
-- Use a calmer prompt.
:set prompt "numerical-analysis> "
data-files: makefile
library
- exposed-modules: Integration.Simpson, Integration.Trapezoid, Matrix
- Misc, Normed, ODE.IVP, Roots.Simple, Roots.Fast, Vector
+ exposed-modules: Integration.Simpson, Integration.Trapezoid,
+ Linear.Matrix, Linear.Vector, Misc, Normed, ODE.IVP, Roots.Simple,
+ Roots.Fast
build-depends:
base >= 3 && < 5,
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
-module Matrix
+module Linear.Matrix
where
-import Vector
import Data.Vector.Fixed (
Dim,
Vector
)
import Data.Vector.Fixed.Internal (arity)
+import Linear.Vector
+
type Mat v w a = Vn v (Vn w a)
type Mat2 a = Mat Vec2D Vec2D a
type Mat3 a = Mat Vec3D Vec3D a
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
-module Vector
+module Linear.Vector
where
import Data.List (intercalate)