Skip to content

Commit bcc3b58

Browse files
committed
Fix linter errors
1 parent 62bc0f8 commit bcc3b58

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.swiftlint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ disabled_rules:
22
- cyclomatic_complexity
33
- force_cast
44
- function_body_length
5+
- function_parameter_count
56
- identifier_name
67
- file_length
78
- type_body_length
@@ -11,4 +12,4 @@ disabled_rules:
1112
excluded:
1213
- .build
1314
- .git
14-
- .github
15+
- .github

Sources/Numerix/Padded/Double+Padded.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import Accelerate
66

77
@_documentation(visibility: private)
88
extension Double: Padded {
9-
public static func padded(a: Matrix<Double>, top: Int, bottom: Int, left: Int, right: Int, value: Double) -> Matrix<Double> {
9+
public static func padded(
10+
a: Matrix<Double>, top: Int, bottom: Int, left: Int, right: Int, value: Double
11+
) -> Matrix<Double> {
1012
let newRows = a.rows + top + bottom
1113
let newCols = a.columns + left + right
1214
let offset = top * newCols + left

Sources/Numerix/Padded/Float+Padded.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import Accelerate
66

77
@_documentation(visibility: private)
88
extension Float: Padded {
9-
public static func padded(a: Matrix<Float>, top: Int, bottom: Int, left: Int, right: Int, value: Float) -> Matrix<Float> {
9+
public static func padded(
10+
a: Matrix<Float>, top: Int, bottom: Int, left: Int, right: Int, value: Float
11+
) -> Matrix<Float> {
1012
let newRows = a.rows + top + bottom
1113
let newCols = a.columns + left + right
1214
let offset = top * newCols + left

Sources/Numerix/Padded/Matrix+Padded.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension Matrix where Scalar: Padded, Scalar: Numeric {
1414
public func padded(top: Int, bottom: Int, left: Int, right: Int, with value: Scalar = 0) -> Matrix {
1515
Scalar.padded(a: self, top: top, bottom: bottom, left: left, right: right, value: value)
1616
}
17-
17+
1818
/// Create a uniformly padded matrix with a constant value.
1919
/// - Parameters:
2020
/// - padding: Number of rows/columns to add on each side. Default is one.

0 commit comments

Comments
 (0)