Commit Graph

296 Commits

Author SHA1 Message Date
Vincent Esche 4b543d8f15 Added functions for calculating variance 2019-10-02 01:31:29 +02:00
Vincent Esche e87459e5ae Fixed functions that had accidentally been marked as `public` 2019-09-27 17:13:03 +02:00
Vincent Esche a2149dee03 Improved tests for `Trigonometric.swifs` 2019-09-27 17:13:03 +02:00
Vincent Esche cdf7731530 Improved test fixtures 2019-09-27 17:13:03 +02:00
Vincent Esche 46563559a3 Improved test fixtures 2019-09-27 17:13:03 +02:00
Vincent Esche e9ab0ec813 Added benchmarks for functions in ‘Trigonometric.swift’ 2019-09-27 17:13:03 +02:00
Vincent Esche 80fdb0ad22 Added missing `…InPlace` functions in ‘Trigonometric.swift’, turning value-functions into thin wrappers 2019-09-27 17:13:03 +02:00
Vincent Esche f1503320ed Renamed `X`/`x`/`xm` variables to `L`/`lhs`/`lm` in Trigonometric.swift 2019-09-27 17:13:03 +02:00
Vincent Esche 05f5b667b4 Removed last stray `measure { … }` from ‘AuxiliaryTests.swift’ 2019-09-27 17:13:03 +02:00
Vincent Esche f743b0f2dd Merged ‘HyperbolicTests.swift’ into ‘TrigonometricTests.swift’ 2019-09-27 17:13:03 +02:00
Vincent Esche 3f2f221f3a Removed unnecessary explicit `Swift.` namespace prefix 2019-09-27 17:12:22 +02:00
Vincent Esche f2a6f0bed5 Improved vector tests; removed redundant benchmarks 2019-09-27 17:12:22 +02:00
Mattt 13520a128d
Remove stray close parentheses from links in README 2019-09-25 06:17:27 -07:00
Vincent Esche d95abdea40 Made ‘SurgeBenchmarkTests’ buildable (vs. testable) and added it to Travis CI 2019-09-25 11:35:47 +02:00
Vincent Esche dc15bef919 Fixed renamed methods in ‘SurgeBenchmarkTests’ 2019-09-25 11:35:47 +02:00
Vincent Esche e5375a62be Bumped copyright from ‘… - 2018’ to ‘… - 2019’ 2019-09-25 11:16:35 +02:00
Vincent Esche 75369fea1a Added convenience helper functions for wrapping `…InPlace` functions with value-semantics 2019-09-25 10:37:50 +02:00
Vincent Esche 1f2093a189 Removed redundant unit tests from ‘VectorTests.swift’ 2019-09-25 10:15:26 +02:00
Vincent Esche 329207d0c0 Added missing `…InPlace` functions for `Vector<Scalar>` 2019-09-25 10:15:26 +02:00
Vincent Esche 5e9e974c5d Reduced sizes of testing vectors/matrices from 1000 to 100 2019-09-25 01:56:54 +02:00
Vincent Esche fa55e572fd Added benchmarks for `Vector<Scalar>` 2019-09-25 01:56:54 +02:00
Vincent Esche f05fa664d7 Further extended test/benchmark fixtures 2019-09-25 01:56:54 +02:00
Vincent Esche dcebafd1f3 Add `muladd…` to `Vector<Scalar>` and corresponding tests 2019-09-25 01:56:54 +02:00
Vincent Esche 462c1e40dc Improved test fixtures 2019-09-25 01:56:54 +02:00
Vincent Esche 2dd97c6308 Improved benchmark fixtures 2019-09-25 01:56:54 +02:00
Vincent Esche f22fdf5afb Removed redundancies from ‘SurgeTests/ArithmeticTests.swift’ 2019-09-25 01:56:54 +02:00
Vincent Esche c217280e14 Added benchmarks corresponding to those previously found in `SurgeTests/LogarithmTests.swift` 2019-09-25 01:56:54 +02:00
Vincent Esche 207fedc4bd Changed tests to only check each operation’s base function (e.g. `func logInPlace`), not a derived wrapper function (e.g. `func log`)
This also removed any previously added benchmarks. But not to worry we’ll add them back in a dedicated `SurgeBenchmarkTests` test target.
2019-09-25 01:56:54 +02:00
Vincent Esche 740dfa72d3 Removed redundant ‘ExponentialTests.swift’ file 2019-09-25 01:56:54 +02:00
Vincent Esche b1e11a8342 Added `*.xcbaseline` to ignore list 2019-09-25 01:56:54 +02:00
Vincent Esche c41d6044f6 Added benchmarks corresponding to those previously found in `SurgeTests/ArithmeticTests.swift` 2019-09-25 01:56:54 +02:00
Vincent Esche 370b71514b Added ‘XCTestCase+Surge.swift’ with benchmarking helpers 2019-09-25 01:56:54 +02:00
Vincent Esche 7168c8ca2d Changed tests to only check each operation’s base function (e.g. `func addInPlace`), not a derived wrapper function (e.g. `func add` or `func +`, etc.)
This also removed any previously added benchmarks. But not to worry we’ll add them back in a dedicated `SurgeBenchmarkTests` test target.
2019-09-25 01:56:54 +02:00
Vincent Esche d715204aa2 Added `void_return` & `redundant_discardable_let` to swiftlint’s ignore list 2019-09-25 01:56:54 +02:00
Vincent Esche f6c627cd11 Added `SurgeBenchmarkTests` as a dedicated benchmarks target 2019-09-25 01:56:54 +02:00
Vincent Esche c8156f782c Fixed typo (`LofarithmTests` -> `LogarithmTests`) 2019-09-24 20:15:29 +02:00
Vincent Esche 7a2b3eb971 Added tests for `logb` 2019-09-24 20:15:29 +02:00
Vincent Esche cd46d9fdc0 Added `logbInPlace` to ‘Logarithm.swift’ & made `logb` into thin wrapper 2019-09-24 20:15:29 +02:00
Vincent Esche 3da003bf4a Added tests for `log10` 2019-09-24 20:15:29 +02:00
Vincent Esche ba4e250f2f Added `log10InPlace` to ‘Logarithm.swift’ & made `log10` into thin wrapper 2019-09-24 20:15:29 +02:00
Vincent Esche 055d1c3c7f Added tests for `log2` 2019-09-24 20:15:29 +02:00
Vincent Esche a85b50231b Added `log2InPlace` to ‘Logarithm.swift’ & made `log2` into thin wrapper 2019-09-24 20:15:29 +02:00
Vincent Esche 048d343e7e Changed `log…` of ’Logarithm.swift’ be implemented in terms of `logInPlace` 2019-09-24 20:15:29 +02:00
Vincent Esche b9fbf3f730 Added tests for `log` 2019-09-24 20:15:29 +02:00
Vincent Esche ae6f5b21c1 Added ’LogarithmTests.swift’ file 2019-09-24 20:15:29 +02:00
Vincent Esche 315a480533 Added `logInPlace` to ‘Logarithm.swift’ & made `log` into thin wrapper 2019-09-24 20:15:29 +02:00
Vincent Esche 8f0925a721 Removed need for `let elementCount: Int32 = numericCast(lhs.count)` in favor of `numericCast(lm.count)` 2019-09-24 17:21:30 +02:00
Vincent Esche e557d48b45 Fixed missing `return` in `func add` of ‘Arithmetic.swift’ 2019-09-24 17:21:30 +02:00
Vincent Esche b590bc8ee6 Changed `distSq…` of ’Arithmetic.swift’ to be implemented in terms of `sum`, `sq` & `sub` with minimal temporary array allocations 2019-09-24 17:21:30 +02:00
Vincent Esche 1a198b0396 Added `sq` & `sqInPlace` to ‘Arithmetic.swift’ 2019-09-24 17:21:30 +02:00