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 |
Vincent Esche
|
e5375a62be
|
Bumped copyright from ‘… - 2018’ to ‘… - 2019’
|
2019-09-25 11:16:35 +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
|
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
|
f22fdf5afb
|
Removed redundancies from ‘SurgeTests/ArithmeticTests.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
|
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
|
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
|
3da003bf4a
|
Added tests for `log10`
|
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
|
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
|
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 |
Vincent Esche
|
c351ba1884
|
Renamed `mulAdd…` to `muladd…` to match `elmul`, etc
|
2019-09-24 17:21:30 +02:00 |
Vincent Esche
|
46b1687a29
|
Added `mulAdd(Matrix, Matrix)` (multiply-add) and turned existing addition/subtraction into shallow wrappers around it
|
2019-09-24 17:21:30 +02:00 |
Vincent Esche
|
912854a747
|
Resolved FIXMEs, adding missing unit tests
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
0dddd7f3af
|
Moved `exp()`/`exp2()` into ‘Arithmetic.swift’
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
8dc60be7aa
|
Moved `pow()` into ‘Arithmetic.swift’
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
8d748416da
|
Changed use of `(0..<n).map { Scalar($0) }` to `(1…n).map { Scalar($0) }` avoiding divide-by-zero
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
9933ae5bcd
|
Renamed `func test_grid` to `func test_init_arrayLiteral`
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
59a14fdbd2
|
Moved `func test_mul_empty_float` and added corresponding `func test_mul_empty_double`
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
3e48656227
|
Moved functions with `Scalar` as `lhs` into separate `ScalarTests` file
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
fbdfc14902
|
Added missing tests for dot product of `Vector<Scalar>`
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
5b86954a46
|
Added `// MARK: - …` to unit tests to improve ergonomics in Xcode’s minimaps
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
d616943927
|
Added benchmark measurements to `VectorTests`
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
51f09e9f50
|
Increased size of too-small arrays in performance measurements
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
4ec96e4ff4
|
Removed test helper functions in favor of explicit literals. K.I.S.S.
|
2019-09-23 22:54:36 +02:00 |
Vincent Esche
|
898a908c35
|
Unified naming of `lhs` and `rhs` arguments (from current mix of `lhs`, `x`, `l`, …)
|
2019-08-30 13:48:34 +02:00 |
Vincent Esche
|
7f4543704f
|
Replaced `// MARK:` with `// MARK: - ` for nicer visual separation in Xcode
|
2019-08-30 13:48:34 +02:00 |
Vincent Esche
|
8dc7cbc180
|
Replaced use of named functions in ‘ArithmeticTests.swift’ with operators
By the latter forward to the former we thus essentually test both code-paths in one test.
|
2019-08-30 13:48:34 +02:00 |
Vincent Esche
|
4bbef2dc49
|
Added unit tests for diagonal matrix initializers
|
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 |