From f30cfe8151181ad44559ac3e75a8eab8a71593b6 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Fri, 12 Apr 2019 23:18:18 +0200 Subject: [PATCH] Made `func getIdentityMatrix(dim:)` simpler and `O(n)` instead of `O(n^2)` --- HCKalmanFilter/HCMatrixObject.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/HCKalmanFilter/HCMatrixObject.swift b/HCKalmanFilter/HCMatrixObject.swift index d99d301..3eb0c79 100644 --- a/HCKalmanFilter/HCMatrixObject.swift +++ b/HCKalmanFilter/HCMatrixObject.swift @@ -46,13 +46,7 @@ class HCMatrixObject for i in 0..