summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchresta <>2019-11-01 00:17:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-11-01 00:17:00 (GMT)
commit154c73c00d693c82b4f7233bdddca2f6ae6dcf8c (patch)
treef83b40225c898210a46e314e834244f122901e11
parentf8f1bf723d153b700e7d7665d3c614b90f6de8cd (diff)
version 0.2.10.2.1
-rw-r--r--matrix-static.cabal12
-rw-r--r--src/Data/Matrix/Static.hs5
2 files changed, 9 insertions, 8 deletions
diff --git a/matrix-static.cabal b/matrix-static.cabal
index 04c0b09..187369a 100644
--- a/matrix-static.cabal
+++ b/matrix-static.cabal
@@ -1,13 +1,13 @@
-cabal-version: >= 1.10
+cabal-version: 1.12
--- This file has been generated from package.yaml by hpack version 0.29.7.
+-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
--- hash: 71d0aad7acb4b2fc1986bb9cd9d7f4a861b968f85193c2244ea95a1f321a1e34
+-- hash: 8683931cd52dfb6652bbc41d626105dfbfa75efa4e930a75fd01df7c6301f49e
name: matrix-static
-version: 0.2
+version: 0.2.1
synopsis: Type-safe matrix operations
description: Please see the README on GitHub at <https://github.com/wchresta/matrix-static#readme>
category: Math
@@ -21,8 +21,8 @@ license-file: LICENSE
tested-with: GHC == 8.6.1, GHC == 8.4.3, GHC == 8.2.2, GHC == 8.0.2, GHC == 8.0.1
build-type: Simple
extra-source-files:
- ChangeLog.md
README.md
+ ChangeLog.md
source-repository head
type: git
@@ -39,7 +39,6 @@ library
build-depends:
base >=4.9 && <5
, deepseq
- , ghc-typelits-knownnat
, ghc-typelits-natnormalise
, matrix >=0.3.5 && <0.4
, vector
@@ -56,7 +55,6 @@ test-suite matrix-static-test
build-depends:
base >=4.9 && <5
, deepseq
- , ghc-typelits-knownnat
, ghc-typelits-natnormalise
, matrix >=0.3.5 && <0.4
, matrix-static
diff --git a/src/Data/Matrix/Static.hs b/src/Data/Matrix/Static.hs
index e003907..c620862 100644
--- a/src/Data/Matrix/Static.hs
+++ b/src/Data/Matrix/Static.hs
@@ -13,7 +13,6 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-}
-{-# OPTIONS_GHC -fplugin GHC.TypeLits.KnownNat.Solver #-}
{-|
Module : Data.Matrix.Static
Description : Wrapper around matrix that adds matrix sizes to the type-level
@@ -37,7 +36,9 @@ module Data.Matrix.Static (
, forceMatrix
-- * Builders
, matrix
+ , RowVector
, rowVector
+ , ColumnVector
, colVector
-- ** Special matrices
, zero
@@ -928,6 +929,8 @@ Matrix x <-> Matrix y = Matrix $ x M.<-> y
-- | A row vector (a matrix with one row).
type RowVector = Matrix 1
+
+-- | A column vector (a matrix with one column).
type ColumnVector m = Matrix m 1