Commit Graph

56 Commits

Author SHA1 Message Date
Vincent Esche e9ab0ec813 Added benchmarks for functions in ‘Trigonometric.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 d95abdea40 Made ‘SurgeBenchmarkTests’ buildable (vs. testable) and added it to Travis CI 2019-09-25 11:35:47 +02:00
Vincent Esche fa55e572fd Added benchmarks for `Vector<Scalar>` 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 c217280e14 Added benchmarks corresponding to those previously found in `SurgeTests/LogarithmTests.swift` 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 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 f6c627cd11 Added `SurgeBenchmarkTests` as a dedicated benchmarks target 2019-09-25 01:56:54 +02:00
Vincent Esche ae6f5b21c1 Added ’LogarithmTests.swift’ file 2019-09-24 20:15:29 +02:00
Vincent Esche e243b08fd0 Renamed ‘General Arithmetic’ directory to ‘Arithmetic’ 2019-09-24 17:21:30 +02:00
Vincent Esche d3f7a50ad9 Fixed missing target memberships of ‘ScalarTests.swift’ file for non-macOS platforms 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 3e48656227 Moved functions with `Scalar` as `lhs` into separate `ScalarTests` file 2019-09-23 22:54:36 +02:00
Vincent Esche da20356543 Reorganized files 2019-08-30 13:48:34 +02:00
Vincent Esche c83f890f33 Moved functions/operators with `lhs: Scalar` into separate ‘Scalar.swift’ file 2019-08-30 13:48:34 +02:00
Vincent Esche 9b63cb159a Unified file encodings to UTF-8 2019-08-30 13:48:34 +02:00
Vincent Esche 725a9baf85 Moved operator-precedence declarations into separate source file 2019-08-30 13:48:34 +02:00
Vincent Esche 3199fbce33 Added new files to ‘.xcodeproj’ file 2019-08-30 00:12:25 +02:00
Vincent Esche a2c2f66a2e Added `Vector<Scalar>` type and corresponding unit tests 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 000b15a40b Upgraded to recommended project settings 2019-08-07 13:14:37 +02:00
Vincent Esche 28d1cb935d Migrated to Swift 5 (#97) 2019-04-24 09:04:38 -07:00
Ling Wang d393ae3f0e Make it safe to use in App Extensions (#88) 2018-09-11 15:03:04 -07:00
Mattt 3e583eca44
Add deployment targets for tvOS and watchOS 2018-08-18 04:42:30 -07:00
Alejandro Isaza 26c49190ce Add missing statistics functions 2018-04-01 22:23:35 -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
Alejandro Isaza e600211d32 Fix Xcode 9.3 warnings 2018-03-06 17:21:28 -08:00
Alejandro Isaza e5445f0db8 Enable opt-in SwiftLint rules
Lint all schemes
2017-11-25 12:17:56 -08:00
Alejandro Isaza d893bff5cf
Add macOS, tvOS and watchOS targets (#74) 2017-11-18 10:51:01 -08:00
Alejandro Isaza 7c1b6ea3fc Add linter, fix linter warnigns, uncomment tests 2017-09-24 23:07:45 -07:00
Alejandro Isaza 6665edfcee Set test time baselines 2017-09-24 22:37:25 -07:00
Alejandro Isaza 6037115ac0 Add ContinuousCollection protocol
This allows you to use ArraySlice and other collections (including
user-supplied ones) with Surge as long they are represented as
continuous arrays in memory.
2017-09-23 13:35:58 -07:00
Alejandro Isaza 67300a52b5 Fix project 2017-09-22 22:42:42 -07:00
Alejandro Isaza f86da504d4 Update to Swift 4.0 2017-09-22 22:35:58 -07:00
Alejandro Isaza 0f13bc62cf Correct use of unsafe pointers
All pointer use should happen inside a `withPointer` block so that the
compiler is aware of this unmanaged access. Fixed this everywhere and
added a few helper methods to make it less unwiedly.
2017-09-19 23:03:31 -07:00
Alejandro Isaza f5f2289398 Remove file names from header comments
Also add the license to a couple files that were missing it and include
the readme, license and Package.swift in the Xcode project for
convenience.
2017-09-18 21:52:32 -07:00
Alejandro Isaza 64d93875a2 Update .gitignore and remove user-specific files 2017-09-18 21:34:22 -07:00
Alejandro Isaza ddb1ca65fb Move tests to conform to SPM file layout 2017-09-18 21:22:05 -07:00
Alejandro Isaza 093f7ba487 Fix errors and warnings in Xcode 9 2017-09-18 21:16:58 -07:00
Leo Thomas 30203b8a88 Migrated Sources & Tests to Swift 3 2016-09-17 22:50:02 +02:00
Wenbin Zhang fe8c02bcf9 Add some helper methods for matrix.
* Add `subscript` supports return specific rows or columns
* Add support for scaling matrix by row or by column.
* Make `pow` supports applying to every elements in vector.

Make Matrix confirms to Equatable and add some tests

Implement set columns in Matrix, add test for it

Add Test for element wise multiplication
2016-02-26 11:17:10 -08:00
Robert F. Dickerson e455b666b2 Removed AuxiliaryTests temporarily 2016-02-17 09:01:10 -06:00
Robert F. Dickerson bf9e58fd53 Made Surge scheme shared for Travis CI 2016-02-17 08:44:29 -06:00
Remy Prechelt 24fea0d7c5 Added convolution, cross-correlation and autocorrelation + tests 2016-02-05 17:37:58 -06:00
Robert F. Dickerson 617ae580a2 Converted project to Swift 2.0 2015-12-04 15:57:07 -06:00