diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a51448 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +#.gitignore + +.DS_Store +/.build +/Packages +Package.resolved \ No newline at end of file diff --git a/HCKalmanFilter/HCMatrixObject.swift b/HCKalmanFilter/HCMatrixObject.swift index d99d301..2f74e92 100644 --- a/HCKalmanFilter/HCMatrixObject.swift +++ b/HCKalmanFilter/HCMatrixObject.swift @@ -173,7 +173,7 @@ class HCMatrixObject { let result = HCMatrixObject(rows: left.rows, columns: left.columns) - result.matrix = Surge.add(left.matrix, y: right.matrix) + result.matrix = Surge.add(left.matrix, right.matrix) return result } @@ -214,7 +214,7 @@ class HCMatrixObject /// - returns: result HCMatrixObject object of multiplication operation static func *(left:HCMatrixObject, right:HCMatrixObject) -> HCMatrixObject? { - let resultMatrix = Surge.mul(left.matrix, y: right.matrix) + let resultMatrix = Surge.mul(left.matrix, right.matrix) let result = HCMatrixObject(rows: resultMatrix.rows,columns: resultMatrix.columns) result.matrix = resultMatrix diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..83a69e5 --- /dev/null +++ b/Package.swift @@ -0,0 +1,24 @@ +// swift-tools-version:5.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "HCKalmanFilter", + products: [ + .library( + name: "HCKalmanFilter", + targets: ["HCKalmanFilter"] + ), + ], + dependencies: [ + .package(url: "https://github.com/Jounce/Surge", from: "2.0.0"), + ], + targets: [ + .target( + name: "HCKalmanFilter", + dependencies: ["Surge"], + path: "HCKalmanFilter" + ), + ] +)