Commit Graph

45 Commits

Author SHA1 Message Date
btracey
7e8922122e Added Fill function 2014-01-29 15:55:57 -08:00
btracey
a84ec572d9 Removed assigning to lse before returning it 2013-09-23 18:11:25 -07:00
btracey
e675bcb935 Changed stop and start timer to resettimer in benchmarks 2013-09-23 18:09:20 -07:00
kortschak
0711419a7a Make a safer comparison for 32 bit architectures
This should not be an issue, but do the right thing anyway.
2013-09-15 18:18:10 +09:30
kortschak
364e448f63 Allow ULP near equality to span zero 2013-09-14 22:41:15 +09:30
kortschak
8aa867a7b9 Clean up relative equality function
* Use a properly named constant for min normal.
* Remove unnecessary conditions.
* Improve comment.
2013-09-14 14:23:12 +09:30
kortschak
644d4858ae Fix punctuation and some grammar 2013-09-14 11:43:25 +09:30
kortschak
6093492a75 Fix relative equality function 2013-09-14 11:35:13 +09:30
kortschak
bbaf28c0b1 Simplify logic and add exact equality tests
We put exact equality tests before calls to math functions. This
probably warrants some benchmarks on real world data.
2013-09-14 09:53:34 +09:30
kortschak
3ce19efd05 Add EqualWithinULP
This does not include the relative equality test proposed in the
gonum-dev post as that can be composed in.
2013-09-14 09:46:30 +09:30
btracey
25c014cb5d Changed EqualsXxx to EqualXxx to follow the standard library 2013-08-23 12:18:43 -07:00
btracey
3a20a5c646 Changed EqualLen to EqualLengths 2013-08-23 12:06:38 -07:00
btracey
c4a833b927 Added approxequals and tests 2013-08-22 16:27:16 -07:00
btracey
bc4f13b1ba Changed equals signature 2013-08-22 16:02:41 -07:00
btracey
62326e429d Added AddScaled and added AddScaledTo 2013-08-18 10:23:06 -07:00
btracey
6057d7174c Added div and divto 2013-08-18 09:44:31 -07:00
btracey
c445087eb0 Fixed minor bug 2013-08-16 12:56:33 -07:00
btracey
80c75ed891 Added Mul function 2013-08-16 12:15:28 -07:00
btracey
e901b24e0e Removed creation of data in SubTo 2013-08-14 17:42:30 -07:00
btracey
f001658936 Fixed error in dot comment 2013-07-29 22:15:24 -07:00
btracey
f35f141977 Changed NearestInSpan to NearestWithinSpan and added panic for out of range 2013-07-26 17:46:59 -07:00
btracey
b758b17f85 Fixed function comments 2013-07-26 12:22:26 -07:00
btracey
f06bcff3d7 Added tests for NearestInSpan 2013-07-26 12:07:00 -07:00
btracey
3e9dc87057 Changed order of signature in Nearest 2013-07-26 11:00:42 -07:00
btracey
a45071abd3 Changed order of signature in Nearest 2013-07-26 10:27:19 -07:00
btracey
260d7da58c Removed distance returned from Nearest 2013-07-26 10:25:50 -07:00
btracey
d2da7809bc Added copyright on files 2013-07-26 10:18:37 -07:00
btracey
47d521845e Fixed Find comment 2013-07-26 09:40:57 -07:00
btracey
58c4594eb0 Removed error type 2013-07-26 09:37:40 -07:00
btracey
c4b55c36c5 Cleaned up Nearest 2013-07-26 00:24:40 -07:00
btracey
88114f9b39 Added Nearest and NearestInSpan functions 2013-07-26 00:13:00 -07:00
btracey
91b3f10b27 Added panic comment for Span and LogSpan 2013-07-25 19:21:22 -07:00
btracey
db0b629a8e Added Count as a function 2013-07-25 19:19:11 -07:00
btracey
f7985a3d44 Removed ability to accept nil arguments 2013-07-25 18:39:45 -07:00
btracey
e3415b589f Changed generators to return the slice and to accept nil arguments 2013-07-25 18:16:19 -07:00
btracey
528c009aab Changed panics and errors to be prefaced by floats: and to be only lowercase 2013-07-25 18:01:31 -07:00
btracey
8f6a9d0753 Removed output from CumSum 2013-07-25 17:47:10 -07:00
btracey
2cf601e32d Updated godoc comments 2013-07-25 16:03:59 -07:00
btracey
239eff6beb Added in tests for panicing on length mismatch 2013-07-25 15:45:17 -07:00
btracey
58aa5a4bc8 Added length checks to functions 2013-07-25 15:24:01 -07:00
btracey
ac030ca515 Added panic to Add and changed loop structure 2013-07-25 14:06:13 -07:00
btracey
0c478f9827 Matched CumProd behavior with rest of functions 2013-07-25 13:34:10 -07:00
btracey
afe5628b8f Changed package declaration to floats from sliceops 2013-07-25 12:52:20 -07:00
btracey
f4ded77ce3 Combined Find and FindFirst into one function 2013-07-25 12:50:00 -07:00
btracey
91bef1bc94 Changed sliceops.go to floats.go and same for _test.go 2013-07-24 10:48:26 -07:00