hmatrix 0.16.0.5 → 0.16.0.6
raw patch · 4 files changed
+9/−5 lines, 4 filesdep ~vector
Dependency ranges changed: vector
Files
- THANKS.md +4/−1
- hmatrix.cabal +1/−1
- src/Data/Packed/Internal/Matrix.hs +2/−1
- src/Data/Packed/Matrix.hs +2/−2
THANKS.md view
@@ -120,7 +120,8 @@ - Takano Akio fixed off-by-one errors in gsl-aux.c producing segfaults. -- Alex Lang implemented uniRoot and uniRootJ for one-dimensional root-finding.+- Alex Lang implemented uniRoot and uniRootJ for one-dimensional root-finding, and+ fixed asRow and asColumn for empty vectors. - Mike Ledger contributed alternative FFI helpers for matrix interoperation with C @@ -167,4 +168,6 @@ don't provide shared lapack libraries. - Ian Ross reported the max/minIndex bug.++- Niklas Hambüchen improved the documentation.
hmatrix.cabal view
@@ -1,5 +1,5 @@ Name: hmatrix-Version: 0.16.0.5+Version: 0.16.0.6 License: BSD3 License-file: LICENSE Author: Alberto Ruiz
src/Data/Packed/Internal/Matrix.hs view
@@ -253,7 +253,8 @@ operations for selected element types. It provides unoptimised defaults for any 'Storable' type, so you can create instances simply as:- @instance Element Foo@.++ >instance Element Foo -} class (Storable a) => Element a where subMatrixD :: (Int,Int) -- ^ (r0,c0) starting position
src/Data/Packed/Matrix.hs view
@@ -284,7 +284,7 @@ -- [ 1.0, 2.0, 3.0, 4.0, 5.0 ] -- asRow :: Storable a => Vector a -> Matrix a-asRow v = reshape (dim v) v+asRow = trans . asColumn -- | creates a 1-column matrix from a vector --@@ -297,7 +297,7 @@ -- , 5.0 ] -- asColumn :: Storable a => Vector a -> Matrix a-asColumn = trans . asRow+asColumn v = reshape 1 v