diff options
-rw-r--r-- | lib/Data/Packed/Internal/Matrix.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Data/Packed/Internal/Matrix.hs b/lib/Data/Packed/Internal/Matrix.hs index 010c40b..5617996 100644 --- a/lib/Data/Packed/Internal/Matrix.hs +++ b/lib/Data/Packed/Internal/Matrix.hs | |||
@@ -317,7 +317,7 @@ subMatrix = subMatrixD | |||
317 | 317 | ||
318 | diagAux fun msg (v@V {dim = n}) = unsafePerformIO $ do | 318 | diagAux fun msg (v@V {dim = n}) = unsafePerformIO $ do |
319 | m <- createMatrix RowMajor n n | 319 | m <- createMatrix RowMajor n n |
320 | fun // vec v // matc m // check msg [cdat m] | 320 | fun // vec v // matc m // check msg [v] |
321 | return m -- {tdat = dat m} | 321 | return m -- {tdat = dat m} |
322 | 322 | ||
323 | -- | diagonal matrix from a real vector | 323 | -- | diagonal matrix from a real vector |