diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-05-26 20:14:56 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-05-26 20:14:56 +0200 |
commit | 9a640d084f3d950e37e054672c9bbbefe4af06d7 (patch) | |
tree | c9016bbf1f28848aeef61aae4c0d6715d188f296 /packages/base/src/Numeric/LinearAlgebra/Static | |
parent | f38aba5c0086e662a9e49043f414d03a0dacb044 (diff) |
tr' , documentation
Diffstat (limited to 'packages/base/src/Numeric/LinearAlgebra/Static')
-rw-r--r-- | packages/base/src/Numeric/LinearAlgebra/Static/Internal.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra/Static/Internal.hs b/packages/base/src/Numeric/LinearAlgebra/Static/Internal.hs index 7ecb132..7b770e0 100644 --- a/packages/base/src/Numeric/LinearAlgebra/Static/Internal.hs +++ b/packages/base/src/Numeric/LinearAlgebra/Static/Internal.hs | |||
@@ -244,11 +244,14 @@ instance (KnownNat n, KnownNat m) => Transposable (L m n) (L n m) | |||
244 | where | 244 | where |
245 | tr a@(isDiag -> Just _) = mkL (extract a) | 245 | tr a@(isDiag -> Just _) = mkL (extract a) |
246 | tr (extract -> a) = mkL (tr a) | 246 | tr (extract -> a) = mkL (tr a) |
247 | tr' = tr | ||
247 | 248 | ||
248 | instance (KnownNat n, KnownNat m) => Transposable (M m n) (M n m) | 249 | instance (KnownNat n, KnownNat m) => Transposable (M m n) (M n m) |
249 | where | 250 | where |
250 | tr a@(isDiagC -> Just _) = mkM (extract a) | 251 | tr a@(isDiagC -> Just _) = mkM (extract a) |
251 | tr (extract -> a) = mkM (tr a) | 252 | tr (extract -> a) = mkM (tr a) |
253 | tr' a@(isDiagC -> Just _) = mkM (extract a) | ||
254 | tr' (extract -> a) = mkM (tr' a) | ||
252 | 255 | ||
253 | -------------------------------------------------------------------------------- | 256 | -------------------------------------------------------------------------------- |
254 | 257 | ||