Skip to content

Commit 245bd8f

Browse files
Fix dot product precedence
1 parent 1e96fab commit 245bd8f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Sources/Surge/Arithmetic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public func % <L: UnsafeMemoryAccessible>(lhs: L, rhs: Double) -> [Double] where
515515

516516
// MARK: Dot product
517517

518-
infix operator
518+
infix operator : MultiplicationPrecedence
519519
public func <L: UnsafeMemoryAccessible, R: UnsafeMemoryAccessible>(lhs: L, rhs: R) -> Double where L.Element == Double, R.Element == Double {
520520
return dot(lhs, rhs)
521521
}

Sources/Surge/Matrix.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ public func ==<T> (lhs: Matrix<T>, rhs: Matrix<T>) -> Bool {
169169
return lhs.rows == rhs.rows && lhs.columns == rhs.columns && lhs.grid == rhs.grid
170170
}
171171

172-
173172
// MARK: -
174173

175174
public func add(_ x: Matrix<Float>, _ y: Matrix<Float>) -> Matrix<Float> {

0 commit comments

Comments
 (0)