Commit Graph

232 Commits

Author SHA1 Message Date
Vincent Esche 805c28d844 Added `static func diagonal(rows:columns:repeatedValue)` to `Matrix<Scalar>` 2019-08-30 01:08:04 +02:00
Vincent Esche 0e7264bb45 Added missing `measure { … }` blocks in ‘ArithmeticTests.swift’ 2019-08-30 00:48:05 +02:00
Vincent Esche 747f5aaa50 Resolved merge conflict 2019-08-30 00:48:05 +02:00
Vincent Esche 84ec46895a Fix formatting 2019-08-30 00:48:05 +02:00
Vincent Esche 29ff1d8d53 Added unit tests & benchmarks for several arithmetic functions 2019-08-30 00:48:05 +02:00
Vincent Esche cc1a716740 Fixed unit tests for `Matrix.sum(_:axies:)` 2019-08-30 00:47:54 +02:00
Vincent Esche 51f9480325 Added missing unit tests for matrix initializers 2019-08-30 00:47:54 +02:00
Vincent Esche fd0a10dd8a Moved computed test values into local `let actual` binding 2019-08-30 00:47:54 +02:00
Vincent Esche 2be03f3e08 Removed unused test function 2019-08-30 00:47:54 +02:00
Vincent Esche 28d7ea00c4 Fixed failing unit test due to large float and resulting decreased accuracy 2019-08-30 00:47:54 +02:00
Vincent Esche a71761df7e Fixed swiftlint violations 2019-08-30 00:47:54 +02:00
Vincent Esche f077725674 Fix formatting 2019-08-30 00:47:54 +02:00
Vincent Esche 20487a63da Renamed existing remaining test functions to match naming scheme 2019-08-30 00:47:54 +02:00
Vincent Esche 4a649d9c1a Added unit tests for matrix arithmetic 2019-08-30 00:47:54 +02:00
Vincent Esche f19efad153 Improved documentation of Surge-provided assert functions 2019-08-30 00:12:25 +02:00
Vincent Esche f0b34e00c5 Improved assert helper ergonomics 2019-08-30 00:12:25 +02:00
Vincent Esche 3199fbce33 Added new files to ‘.xcodeproj’ file 2019-08-30 00:12:25 +02:00
Vincent Esche 5f186f0113 Changed `public func …InPlace` functions to `internal func …InPlace` 2019-08-29 12:20:45 +02:00
Vincent Esche 597aa02ac2 Fixed linting warnings 2019-08-29 11:35:24 +02:00
Vincent Esche 1c35503972 Fixed formatting 2019-08-29 11:35:24 +02:00
Vincent Esche e67cfab808 Simplified `Vector<Scalar>` initializers 2019-08-29 11:35:24 +02:00
Vincent Esche df03db0fd9 Fixed out-of-sync `// MARK - …` comments 2019-08-29 11:35:24 +02:00
Vincent Esche 00ad6b254a Fixed indentation of test function 2019-08-29 11:35:24 +02:00
Vincent Esche 5eeeded84b Added missing `…=` operators and tests for `Vector<Scalar>` 2019-08-29 11:35:24 +02:00
Vincent Esche bc62fbf7fd Added `func dist` & `func distSq` (squared distance) to `Vector` 2019-08-29 11:35:24 +02:00
Vincent Esche de484bbac3 Added `func dist` & `func distSq` (squared distance) to `[Scalar]` 2019-08-29 11:35:24 +02:00
Vincent Esche b3f098d716 Removed dead code from `Vector.swift` 2019-08-29 11:35:24 +02:00
Vincent Esche 2659ad8f20 Made `Vector<Scalar>`’s `var scalars` public, adding explicit test for changes in dimension 2019-08-29 11:35:24 +02:00
Vincent Esche 9f858668d9 Added matrix-vector multiplication 2019-08-29 11:35:24 +02:00
Vincent Esche a2c2f66a2e Added `Vector<Scalar>` type and corresponding unit tests 2019-08-29 11:35:24 +02:00
Vincent Esche b3a75fa6d3 Fix formatting 2019-08-29 11:35:24 +02:00
Vincent Esche 66faf493f5 Added new files to ‘.xcodeproj’ file 2019-08-29 11:35:24 +02:00
Vincent Esche 54a059fe91 Made `Matrix<Scalar>` conform to `Collection` (row-wise, just like it already does with `Sequence`) 2019-08-29 11:35:24 +02:00
Vincent Esche 668b2d26a6 Made `Matrix<Scalar>` conform to `ExpressibleByArrayLiteral ` 2019-08-29 11:35:24 +02:00
Vincent Esche cf836d6fd1 Replaced `XCTAssertArray(Float|Double)EqualWithAccuracy(_:_:accuracy:)` with short-circuiting overload of `XCTAssertEqual(_:_:accuracy:)` 2019-08-29 11:35:24 +02:00
Vincent Esche ea7f83a526 Added missing explicitly named equivalents of `…=` operators 2019-08-29 11:35:24 +02:00
Vincent Esche afad7e90bc Added missing explicitly named equivalents of scalar operators 2019-08-29 11:35:24 +02:00
Mattt 36e024e9aa
Merge pull request #109 from regexident/upgrade-xcode-settings
Upgrade to recommended project settings
2019-08-19 06:25:34 -07:00
Vincent Esche 000b15a40b Upgraded to recommended project settings 2019-08-07 13:14:37 +02:00
Mattt 47781d81b2
Merge pull request #103 from regexident/readme
Added human-readable labels and links …
2019-07-31 20:13:21 -07:00
Vincent Esche 0f4ab287d6 Added human-readable labels and links to corresponding Wikipedia articles for each of the listed functions in the README file 2019-07-31 23:55:32 +02:00
Luke Reichold 63da6b60f7 Add README badges indicating CocoaPods and SPM compatibility (#99) 2019-05-05 10:08:14 -07:00
Vincent Esche 28d1cb935d Migrated to Swift 5 (#97) 2019-04-24 09:04:38 -07:00
Lou Franco a6dd5f622e Matrix eigendecomposition (#95)
Added Two function that calculate the eigen-values and right eigen vectors for a given Matrix.
2019-02-09 07:18:07 -08:00
Mattt 3a99c1d0ad
Remove outdated performance benchmarks 2018-12-23 08:33:36 -08:00
Alejandro Isaza 78fa390bb2
Allow empty matrix multiplication (#93) 2018-11-30 15:21:59 -08:00
Alejandro Isaza 5a764136ac Add check for empty matrix multiplication
Fix #92
2018-11-30 10:43:44 -08:00
Alejandro Isaza 38a328eefe Fix Swift version declaration
Should have been 4.1. Fixes #91
2018-10-24 14:52:02 -07:00
Alejandro Isaza 75f2749411 Add Swift version to README 2018-10-24 09:05:12 -07:00
Alejandro Isaza 8f1bb85125 Add numericCast to avoid watchOS compiler problems
Fix #89
2018-09-25 16:16:36 -07:00