File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ import ArrayFire.Internal.Types
55
55
-- 7.0000 15.0000
56
56
-- 10.0000 22.0000
57
57
matmul
58
- :: Array a
58
+ :: AFType a
59
+ => Array a
59
60
-- ^ 2D matrix of Array a, left-hand side
60
61
-> Array a
61
62
-- ^ 2D matrix of Array a, right-hand side
@@ -75,7 +76,8 @@ matmul arr1 arr2 prop1 prop2 = do
75
76
-- [1 1 1 1]
76
77
-- 385.0000
77
78
dot
78
- :: Array a
79
+ :: AFType a
80
+ => Array a
79
81
-- ^ Left-hand side input
80
82
-> Array a
81
83
-- ^ Right-hand side input
@@ -93,7 +95,8 @@ dot arr1 arr2 prop1 prop2 =
93
95
-- >>> dotAll (vector @Double 10 [1..]) (vector @Double 10 [1..]) None None
94
96
-- 385.0 :+ 0.0
95
97
dotAll
96
- :: Array a
98
+ :: AFType a
99
+ => Array a
97
100
-- ^ Left-hand side array
98
101
-> Array a
99
102
-- ^ Right-hand side array
@@ -126,7 +129,8 @@ dotAll arr1 arr2 prop1 prop2 = do
126
129
-- 5.0000 6.0000
127
130
--
128
131
transpose
129
- :: Array a
132
+ :: AFType a
133
+ => Array a
130
134
-- ^ Input matrix to be transposed
131
135
-> Bool
132
136
-- ^ Should perform conjugate transposition
@@ -155,7 +159,8 @@ transpose arr1 (fromIntegral . fromEnum -> b) =
155
159
-- 3.0000 4.0000
156
160
--
157
161
transposeInPlace
158
- :: Array a
162
+ :: AFType a
163
+ => Array a
159
164
-- ^ Input matrix to be transposed
160
165
-> Bool
161
166
-- ^ Should perform conjugate transposition
You can’t perform that action at this time.
0 commit comments