diff options
Diffstat (limited to 'packages/base/src/Internal/LAPACK.hs')
-rw-r--r-- | packages/base/src/Internal/LAPACK.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/base/src/Internal/LAPACK.hs b/packages/base/src/Internal/LAPACK.hs index 049c11e..124e353 100644 --- a/packages/base/src/Internal/LAPACK.hs +++ b/packages/base/src/Internal/LAPACK.hs | |||
@@ -544,11 +544,11 @@ foreign import ccall unsafe "lu_l_C" zgetrf :: R :> C ::> Ok | |||
544 | 544 | ||
545 | -- | LU factorization of a general real matrix, using LAPACK's /dgetrf/. | 545 | -- | LU factorization of a general real matrix, using LAPACK's /dgetrf/. |
546 | luR :: Matrix Double -> (Matrix Double, [Int]) | 546 | luR :: Matrix Double -> (Matrix Double, [Int]) |
547 | luR = luAux dgetrf "luR" . fmat | 547 | luR = luAux dgetrf "luR" |
548 | 548 | ||
549 | -- | LU factorization of a general complex matrix, using LAPACK's /zgetrf/. | 549 | -- | LU factorization of a general complex matrix, using LAPACK's /zgetrf/. |
550 | luC :: Matrix (Complex Double) -> (Matrix (Complex Double), [Int]) | 550 | luC :: Matrix (Complex Double) -> (Matrix (Complex Double), [Int]) |
551 | luC = luAux zgetrf "luC" . fmat | 551 | luC = luAux zgetrf "luC" |
552 | 552 | ||
553 | luAux f st a = unsafePerformIO $ do | 553 | luAux f st a = unsafePerformIO $ do |
554 | lu <- copy ColumnMajor a | 554 | lu <- copy ColumnMajor a |
@@ -566,11 +566,11 @@ foreign import ccall unsafe "luS_l_C" zgetrs :: C ::> R :> C ::> Ok | |||
566 | 566 | ||
567 | -- | Solve a real linear system from a precomputed LU decomposition ('luR'), using LAPACK's /dgetrs/. | 567 | -- | Solve a real linear system from a precomputed LU decomposition ('luR'), using LAPACK's /dgetrs/. |
568 | lusR :: Matrix Double -> [Int] -> Matrix Double -> Matrix Double | 568 | lusR :: Matrix Double -> [Int] -> Matrix Double -> Matrix Double |
569 | lusR a piv b = lusAux dgetrs "lusR" (fmat a) piv (fmat b) | 569 | lusR a piv b = lusAux dgetrs "lusR" (fmat a) piv b |
570 | 570 | ||
571 | -- | Solve a real linear system from a precomputed LU decomposition ('luC'), using LAPACK's /zgetrs/. | 571 | -- | Solve a real linear system from a precomputed LU decomposition ('luC'), using LAPACK's /zgetrs/. |
572 | lusC :: Matrix (Complex Double) -> [Int] -> Matrix (Complex Double) -> Matrix (Complex Double) | 572 | lusC :: Matrix (Complex Double) -> [Int] -> Matrix (Complex Double) -> Matrix (Complex Double) |
573 | lusC a piv b = lusAux zgetrs "lusC" (fmat a) piv (fmat b) | 573 | lusC a piv b = lusAux zgetrs "lusC" (fmat a) piv b |
574 | 574 | ||
575 | lusAux f st a piv b | 575 | lusAux f st a piv b |
576 | | n1==n2 && n2==n =unsafePerformIO $ do | 576 | | n1==n2 && n2==n =unsafePerformIO $ do |