@@ -20,80 +20,80 @@ infix operator .==: ComparisonPrecedence
20
20
infix operator .!= : ComparisonPrecedence
21
21
22
22
public extension Tensor where Scalar: Numeric & Comparable {
23
- /// Computes `lhs < rhs` element-wise and returns a `Tensor` of Boolean /// scalars .
23
+ /// Returns a tensor of Boolean scalars by computing `lhs < rhs` element-wise .
24
24
@inlinable
25
25
static func .< ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
26
26
return Raw . less ( lhs, rhs)
27
27
}
28
28
29
- /// Computes `lhs <= rhs` element-wise and returns a `Tensor` of Boolean scalars .
29
+ /// Returns a tensor of Boolean scalars by computing `lhs <= rhs` element-wise.
30
30
@inlinable
31
31
static func .<= ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
32
32
return Raw . lessEqual ( lhs, rhs)
33
33
}
34
34
35
- /// Computes `lhs > rhs` element-wise and returns a `Tensor` of Boolean scalars .
35
+ /// Returns a tensor of Boolean scalars by computing `lhs > rhs` element-wise .
36
36
@inlinable
37
37
static func .> ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
38
38
return Raw . greater ( lhs, rhs)
39
39
}
40
40
41
- /// Computes `lhs >= rhs` element-wise and returns a `Tensor` of Boolean scalars .
41
+ /// Returns a tensor of Boolean scalars by computing `lhs >= rhs` element-wise.
42
42
@inlinable
43
43
static func .>= ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
44
44
return Raw . greaterEqual ( lhs, rhs)
45
45
}
46
46
47
- /// Computes `lhs < rhs` element-wise and returns a `Tensor` of Boolean scalars .
47
+ /// Returns a tensor of Boolean scalars by computing `lhs < rhs` element-wise .
48
48
/// - Note: `.<` supports broadcasting.
49
49
@inlinable
50
50
static func .< ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
51
51
return Raw . less ( Tensor ( lhs) , rhs)
52
52
}
53
53
54
- /// Computes `lhs <= rhs` element-wise and returns a `Tensor` of Boolean scalars .
54
+ /// Returns a tensor of Boolean scalars by computing `lhs <= rhs` element-wise.
55
55
/// - Note: `.<=` supports broadcasting.
56
56
@inlinable
57
57
static func .<= ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
58
58
return Raw . lessEqual ( Tensor ( lhs) , rhs)
59
59
}
60
60
61
- /// Computes `lhs > rhs` element-wise and returns a `Tensor` of Boolean scalars .
61
+ /// Returns a tensor of Boolean scalars by computing `lhs > rhs` element-wise .
62
62
/// - Note: `.>` supports broadcasting.
63
63
@inlinable
64
64
static func .> ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
65
65
return Raw . greater ( Tensor ( lhs) , rhs)
66
66
}
67
67
68
- /// Computes `lhs >= rhs` element-wise and returns a `Tensor` of Boolean scalars .
68
+ /// Returns a tensor of Boolean scalars by computing `lhs >= rhs` element-wise.
69
69
/// - Note: `.>=` supports broadcasting.
70
70
@inlinable
71
71
static func .>= ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
72
72
return Raw . greaterEqual ( Tensor ( lhs) , rhs)
73
73
}
74
74
75
- /// Computes `lhs < rhs` element-wise and returns a `Tensor` of Boolean scalars .
75
+ /// Returns a tensor of Boolean scalars by computing `lhs < rhs` element-wise .
76
76
/// - Note: `.<` supports broadcasting.
77
77
@inlinable
78
78
static func .< ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
79
79
return Raw . less ( lhs, Tensor ( rhs) )
80
80
}
81
81
82
- /// Computes `lhs <= rhs` element-wise and returns a `Tensor` of Boolean scalars .
82
+ /// Returns a tensor of Boolean scalars by computing `lhs <= rhs` element-wise.
83
83
/// - Note: `.<=` supports broadcasting.
84
84
@inlinable
85
85
static func .<= ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
86
86
return Raw . lessEqual ( lhs, Tensor ( rhs) )
87
87
}
88
88
89
- /// Computes `lhs > rhs` element-wise and returns a `Tensor` of Boolean scalars .
89
+ /// Returns a tensor of Boolean scalars by computing `lhs > rhs` element-wise .
90
90
/// - Note: `.>` supports broadcasting.
91
91
@inlinable
92
92
static func .> ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
93
93
return Raw . greater ( lhs, Tensor ( rhs) )
94
94
}
95
95
96
- /// Computes `lhs >= rhs` element-wise and returns a `Tensor` of Boolean scalars .
96
+ /// Returns a tensor of Boolean scalars by computing `lhs >= rhs` element-wise.
97
97
/// - Note: `.>=` supports broadcasting.
98
98
@inlinable
99
99
static func .>= ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
@@ -162,43 +162,42 @@ public extension Tensor where Scalar: Numeric & Comparable {
162
162
}
163
163
164
164
public extension Tensor where Scalar: Equatable {
165
- /// Computes `lhs != rhs` element-wise and returns a `Tensor` of Boolean scalars .
165
+ /// Returns a tensor of Boolean scalars by computing `lhs == rhs` element-wise .
166
166
/// - Note: `.==` supports broadcasting.
167
167
@inlinable
168
168
static func .== ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
169
169
return Raw . equal ( lhs, rhs)
170
170
}
171
171
172
- /// Computes `lhs != rhs` element-wise and returns a `Tensor` of Boolean scalars .
172
+ /// Returns a tensor of Boolean scalars by computing `lhs != rhs` element-wise.
173
173
/// - Note: `.!=` supports broadcasting.
174
174
@inlinable
175
175
static func .!= ( lhs: Tensor , rhs: Tensor ) -> Tensor < Bool > {
176
176
return Raw . notEqual ( lhs, rhs)
177
177
}
178
178
179
- /// Computes `lhs == rhs` element-wise and returns a `Tensor` of Boolean scalars .
179
+ /// Returns a tensor of Boolean scalars by computing `lhs == rhs` element-wise.
180
180
/// - Note: `.==` supports broadcasting.
181
181
@inlinable
182
182
static func .== ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
183
183
return Tensor ( lhs) .== rhs
184
184
}
185
185
186
- /// Computes `lhs != rhs` element-wise and returns a `Tensor` of Boolean scalars .
186
+ /// Returns a tensor of Boolean scalars by computing `lhs != rhs` element-wise.
187
187
/// - Note: `.!=` supports broadcasting.
188
188
@inlinable
189
189
static func .!= ( lhs: Scalar , rhs: Tensor ) -> Tensor < Bool > {
190
190
return Tensor ( lhs) .!= rhs
191
191
}
192
192
193
- /// Computes `lhs == rhs` element-wise and returns a `Tensor` of Boolean
194
- /// scalars.
193
+ /// Returns a tensor of Boolean scalars by computing `lhs == rhs` element-wise.
195
194
/// - Note: `.==` supports broadcasting.
196
195
@inlinable
197
196
static func .== ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
198
197
return lhs .== Tensor ( rhs)
199
198
}
200
199
201
- /// Computes `lhs != rhs` element-wise and returns a `Tensor` of Boolean scalars .
200
+ /// Returns a tensor of Boolean scalars by computing `lhs != rhs` element-wise.
202
201
/// - Note: `.!=` supports broadcasting.
203
202
@inlinable
204
203
static func .!= ( lhs: Tensor , rhs: Scalar ) -> Tensor < Bool > {
@@ -209,7 +208,7 @@ public extension Tensor where Scalar: Equatable {
209
208
// TODO: infix operator ≈: ComparisonPrecedence
210
209
211
210
public extension Tensor where Scalar: FloatingPoint & Equatable {
212
- /// Returns a `Tensor` of Boolean values indicating whether the elements of `self` are
211
+ /// Returns a tensor of Boolean values indicating whether the elements of `self` are
213
212
/// approximately equal to those of `other`.
214
213
@inlinable
215
214
func elementsApproximatelyEqual(
0 commit comments