Commit Graph

168 Commits

Author SHA1 Message Date
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
Ling Wang d393ae3f0e Make it safe to use in App Extensions (#88) 2018-09-11 15:03:04 -07:00
Alejandro Isaza 3b2ec9cde6
Run SwiftLint in CI (#84) 2018-08-18 09:30:37 -07:00
Mattt 3e583eca44
Add deployment targets for tvOS and watchOS 2018-08-18 04:42:30 -07:00
Mattt 7b8eaa3613
Fix swiftlint warnings for implicit_return 2018-08-18 04:38:20 -07:00
Alejandro Isaza 245bd8faeb Fix dot product precedence 2018-05-05 10:00:21 -07:00
Ilya Mikhaltsou 1e96fab730 Changed element-wise operators from + to .+ to resolve #58 (#80) 2018-05-05 09:54:56 -07:00
Alejandro Isaza bb3e9b48d1 Add sqrt implementation that takes custom storage 2018-05-03 12:07:56 -07:00
Alejandro Isaza 37c376023c Add precondition checks, fix div and sub bugs 2018-05-03 12:05:19 -07:00
Ilya Mikhaltsou 1067f508be Optimized performance of Matrix initialization and added some operations (#78)
Matrix initialization from grid
Added methods for single row and column initialization
Changed raw matrix initialization to sequence to allow Matrix creation without redundant Array creation and copying
Added Matrix<Float> sum method
Added Matrix + Scalar operator for Double and Float matrices
2018-04-21 11:05:25 -10:00
Alejandro Isaza 5b58df022d Use Xcode 9.3 in TravisCI 2018-04-21 14:00:24 -07:00
Alejandro Isaza 26c49190ce Add missing statistics functions 2018-04-01 22:23:35 -07:00
Alejandro Isaza bc62ae82fb Add missing operators 2018-04-01 22:22:47 -07:00
Alejandro Isaza f0bb97591b Add IDETemplateMacros 2018-04-01 12:27:11 -07:00
Alejandro Isaza a3f3153c3c
Add UnsafeMemory abstraction (#77)
This simplifies the code dealing with unsafe pointers and allows
using existing functions with other collections.

Also update the copyright notices.
2018-04-01 12:23:36 -07:00