diff options
Diffstat (limited to 'lib/Data/Packed/Internal/Tensor.hs')
-rw-r--r-- | lib/Data/Packed/Internal/Tensor.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Data/Packed/Internal/Tensor.hs b/lib/Data/Packed/Internal/Tensor.hs index 6876685..dea1636 100644 --- a/lib/Data/Packed/Internal/Tensor.hs +++ b/lib/Data/Packed/Internal/Tensor.hs | |||
@@ -92,7 +92,7 @@ tensor dssig vec = T d v `withIdx` seqind where | |||
92 | tensorFromVector :: IdxType -> Vector t -> Tensor t | 92 | tensorFromVector :: IdxType -> Vector t -> Tensor t |
93 | tensorFromVector tp v = T {dims = [IdxDesc (dim v) tp "1"], ten = v} | 93 | tensorFromVector tp v = T {dims = [IdxDesc (dim v) tp "1"], ten = v} |
94 | 94 | ||
95 | tensorFromMatrix :: IdxType -> IdxType -> Matrix t -> Tensor t | 95 | tensorFromMatrix :: Field t => IdxType -> IdxType -> Matrix t -> Tensor t |
96 | tensorFromMatrix tpr tpc m = T {dims = [IdxDesc (rows m) tpr "1",IdxDesc (cols m) tpc "2"] | 96 | tensorFromMatrix tpr tpc m = T {dims = [IdxDesc (rows m) tpr "1",IdxDesc (cols m) tpc "2"] |
97 | , ten = cdat m} | 97 | , ten = cdat m} |
98 | 98 | ||