Fix formatting
This commit is contained in:
parent
66faf493f5
commit
b3a75fa6d3
|
@ -210,12 +210,10 @@ extension Matrix: Sequence {
|
|||
|
||||
extension Matrix: Collection {
|
||||
public subscript(_ row: Int) -> ArraySlice<Scalar> {
|
||||
get {
|
||||
let startIndex = row * columns
|
||||
let endIndex = startIndex + columns
|
||||
return self.grid[startIndex..<endIndex]
|
||||
}
|
||||
}
|
||||
|
||||
public var startIndex: Int {
|
||||
return 0
|
||||
|
|
|
@ -42,8 +42,7 @@ func XCTAssertEqual<T, U>(
|
|||
file: StaticString = #file,
|
||||
line: UInt = #line
|
||||
) -> Bool
|
||||
where T: Collection, T.Element == U, U: FloatingPoint
|
||||
{
|
||||
where T: Collection, T.Element == U, U: FloatingPoint {
|
||||
let (actualValues, expectedValues): (T, T)
|
||||
|
||||
do {
|
||||
|
@ -96,8 +95,7 @@ func XCTAssertEqual<T, U, V>(
|
|||
file: StaticString = #file,
|
||||
line: UInt = #line
|
||||
) -> Bool
|
||||
where T: Collection, U: Collection, T.Element == U, U.Element == V, V: FloatingPoint
|
||||
{
|
||||
where T: Collection, U: Collection, T.Element == U, U.Element == V, V: FloatingPoint {
|
||||
let (actualValues, expectedValues): (T, T)
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue