Commit Graph

22 Commits

Author SHA1 Message Date
Dustin Spicuzza
3ace57a6f9 floats: add ArgsortStable function 2021-03-28 09:07:53 +10:30
Dan Kortschak
8d1ffe1e87 cmplxs,floats,internal/asm: don't use global rand state 2020-11-28 07:06:30 +10:30
Dan Kortschak
0e6fb8d22a all: use scalar.Same instead of local same function 2020-08-07 07:59:02 +09:30
Dan Kortschak
da72779e7a floats/scalar: new package containing non-vector functions from floats 2020-08-07 07:59:02 +09:30
Dan Kortschak
6ded9ce79f floats: fix formatting and grammar 2020-06-08 18:43:06 +09:30
Roman Werpachowski
b88fa1fdc9 floats: add compensated summation using Neumaier's algorithm 2020-05-31 07:10:29 +09:30
Roman Werpachowski
be889500d8 floats: improve test coverage 2020-05-28 22:51:02 +09:30
Egon Elbre
8f4a280bc3 floats: make tests parallel 2020-03-16 16:10:59 +02:00
Chad Kunde
4e1ef9c972 translate netlib l2norm algorithm to asm and remove branches
Netlib algorithm reduces overflow while calculating the l2norm of a
vector.

Translated to asm while reducing branches in NaN and Inf checks.
Overflow protection is equivalent to the Netlib standard implementation.
2019-11-15 18:20:45 +08:00
Dan Kortschak
7e1144f373 floats: match Norm behaviour in Distance 2019-10-25 16:27:36 +10:30
Dan Kortschak
e2ba7f0950 internal/asm,blas,floats: move level 2 norm to asm
This allows sharing of the blas implementation with floats and opens the
possibility of an assembly implementation of this function.
2019-10-25 16:27:36 +10:30
Dan Kortschak
a4ad4d254f all: run go fmt ./... 2019-03-31 13:31:35 +10:30
Dan Kortschak
95e6ef1584 all: fix mispellings
Found by github.com/client9/misspell.
2019-01-27 20:31:48 +10:30
Brendan Tracey
004553317c floats: Implement ScaleTo (#765)
Fixes #737
2018-12-14 18:46:30 +00:00
Dan Kortschak
36be7e6faa travis: check for copyright headers 2018-09-05 16:54:43 +09:30
Dan Kortschak
e558b37b29 floats: fix nearest, span and min/max index behaviours
* Fix nearest and span behaviours
* Fix max and min behaviour for NaN-containing slices
* Unexport exported test helpers
2018-02-25 13:57:12 +10:30
kortschak
39ce232e1a floats: fix Same for NaN/N 2018-01-31 07:26:30 +10:30
Dan Kortschak
95704fa00e floats: add functions for handling NaN payloads
This handles the simple case of ignoring sign and only dealing with
quiet NaN values since signalling NaN would require that we check that
at least one of the low bits was set and fail somehow if not.

Note that Go treats all NaNs as silent.
2017-11-20 20:20:44 +10:30
kortschak
fa0c5aa7bc all: use golang.org/x/exp/rand instead of math/rand 2017-11-17 11:52:34 +10:30
kortschak
10a2e14f5d floats: deflake Round test 2017-07-06 13:33:59 +09:30
kortschak
a1347c0243 all: fix spelling errors 2017-06-20 16:29:35 +09:30
Brendan Tracey
105e523e1e floats: imported floats as a subtree 2017-05-23 00:02:44 -06:00