John Benediktsson
95b82eecfa
math.vectors: adding p-norm.
2012-05-03 13:27:00 -07:00
Doug Coleman
f6398365bd
math.functions: rename exp to e^ to be consistent with 2^ and 10^. update things.
2012-05-02 10:22:23 -07:00
Doug Coleman
fee4d76b73
math.functions: Add e^ and sigmoid functions.
2012-05-02 09:21:34 -07:00
John Benediktsson
5878b6982b
math.statistics: adding entropy function.
2012-04-26 18:40:59 -07:00
John Benediktsson
6f89c1824d
change to in-place reverse.
2012-04-24 18:51:46 -07:00
John Benediktsson
817b45ee03
math.combinatorics: minor performance improvements.
2012-04-24 18:42:34 -07:00
John Benediktsson
f24e40800a
math.combinatorics: faster version of factorial.
2012-04-24 10:06:00 -07:00
Doug Coleman
cd9394f8c6
math.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth-smallests et al, refactor medians.
2012-04-24 03:17:50 -07:00
Doug Coleman
7cb094d521
math.statistics: Make a safe version of kth-object. Bounds check k w/ regards to seq.
2012-04-23 13:55:25 -07:00
John Benediktsson
b9bcfdab8e
math.combinatorics: adding <combinations> and <permutations> sequences.
2012-04-23 08:30:22 -07:00
Doug Coleman
7ad089b682
math.statistics: Generalize kth-smallest into kth-object, add kth-largest. Add count-relative and minmax-relative for counting the number of lt, eq, gt elements, and getting the max lt and min gt in one pass.
2012-04-22 23:41:13 -07:00
John Benediktsson
c00ddde434
math.combinatorics: fix failed find combinations/permutations.
2012-04-21 20:11:47 -07:00
John Benediktsson
bada993f78
math.combinatorics: adding find-combination and find-permutation.
2012-04-20 23:31:40 -07:00
John Benediktsson
7a15418cf4
math.functions: adding another test for roots.
2012-04-19 13:34:42 -07:00
John Benediktsson
adc7b22997
math.functions: adding "roots" word to get arbitrary roots from numbers.
2012-04-19 12:19:14 -07:00
John Benediktsson
1e8eb18216
math.functions: adding docs and tests for ^mod.
2012-04-19 08:20:11 -07:00
Doug Coleman
0322b4d028
math.combinators: Add filter-permutations/combinations. Minor cleanup.
2012-04-18 15:18:54 -07:00
Doug Coleman
229d0e0549
math.combinators: Add map-permutation
2012-04-18 15:18:54 -07:00
John Benediktsson
e9ffd2da37
math.statistics: adding cumulative versions of sum, product, min, and max.
2012-04-12 10:30:16 -07:00
Doug Coleman
021e0f2ce6
math.statistics: Fix docs for help-lint.
2012-04-10 08:52:12 -07:00
John Benediktsson
236dd2cc97
math.combinatorics: fix help-lint.
2012-04-09 11:43:22 -07:00
John Benediktsson
214195e56a
Revert "math.functions: simpler without "simple-gcd"."
...
This reverts commit aa7f60ebbc
.
2012-04-05 10:34:50 -07:00
John Benediktsson
b240519bff
math.functions: simpler without "simple-gcd".
2012-04-05 10:31:46 -07:00
John Benediktsson
b2ffda32ca
math: adding a fast-gcd that speeds up all ratio operations by up to 10 times for bignum ratios.
2012-04-05 09:17:52 -07:00
John Benediktsson
57231bfef4
math.statistics: change 'var' to 'sample-var' and implement variance, covariance, and correlation.
2012-04-02 17:12:32 -07:00
John Benediktsson
4f046a2339
math.vectors: separate "dot product" from "Hermitian inner product". Fixes #484 .
2012-03-29 10:56:39 -07:00
John Benediktsson
7a07e8742c
math.combinatorics: fix tests for next-permutation.
2012-03-02 10:05:57 -08:00
John Benediktsson
7bb807d441
math.combinatorics: fix docs for next-permutation.
2012-03-02 09:55:22 -08:00
John Benediktsson
8d56193edd
math.combinatorics: implementing "next-permutation".
2012-03-02 09:54:35 -08:00
John Benediktsson
de74b98278
math.vectors: fix some $examples in docs.
2011-12-29 17:31:55 -08:00
Joe Groff
aa1ad21d72
fix help-lint failures
2011-12-14 11:33:17 -08:00
Joe Groff
fe767253a1
math.vectors: add higher-order stack effect to vif
2011-12-13 19:46:44 -08:00
Joe Groff
3deae96995
math.vectors.simd.intrinsics: fix deploy bug
...
If not called with a known-at-compile-time SIMD type, the intrinsic definitions were leaving behind runtime quotations that referenced the c-array words after c-type information had been stripped, causing deployed applications that used SIMD to fail.
2011-12-07 12:47:38 -08:00
Doug Coleman
abc953ecea
help-lint fixes for recent changes
2011-12-07 12:26:35 -08:00
Joe Groff
8cb78d5bd2
math.complex: pass tests even if number-base set
2011-11-26 17:46:38 -08:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
54dcd8a4ea
math.vectors.simd: don't try distance on int types
...
"v- norm" doesn't work right for uint-4s because of underflow, but who's going to call "distance" on a uint vector?
2011-11-13 16:10:27 -08:00
Joe Groff
dd8bb5b673
math.vectors.simd: unencrypt check-optimizer
...
And make it report real information about what values were tested and how they failed
2011-11-13 16:10:27 -08:00
Joe Groff
248066c710
code beautification
2011-11-13 16:10:26 -08:00
Joe Groff
a10fa68218
math.vectors.simd: add vcount to the tests
...
Also add a base case to (approx=) for integer returns. vcount returns an integer even for float vector inputs, but the test machinery isn't smart enough to figure that out and uses (approx=) on the outputs anyway.
2011-11-13 16:10:26 -08:00
Joe Groff
32b7dc116f
math.vectors.simd.intrinsics: fix double-2 vcount
...
Turns out we use MOVMSKPS for double vectors too. Gotta save that extra instruction byte!
2011-11-13 16:10:25 -08:00
Joe Groff
dd8dda4f48
math.vectors.simd: make vcount work for all ints
2011-11-13 16:10:23 -08:00
Joe Groff
5411a67b22
math.vectors.simd.intrinsics: better fake vgetmask
...
More accurate simulacrum of PMOVMSKB/MOVMSKPS/MOVMSKPD for non-intrinsic definition
2011-11-13 16:10:22 -08:00
Joe Groff
da81cb9035
math.bitwise: don't count the same bits over&over
2011-11-13 16:10:22 -08:00
Joe Groff
706c9ee3b9
math.bitwise: hotrod nonintrinsic fixnum-bit-count
2011-11-13 16:10:21 -08:00
Joe Groff
d79b462f75
compiler: add intrinsic for PMOVMSKB/MOVMSKP[SD]
...
Combined with a fast bit-count this will let us rice byte-counting.
2011-11-13 16:10:20 -08:00
Doug Coleman
60f928ddbf
math.functions: flushable and foldable don't do anything on inline words because flushable and foldable work on call sites (#call nodes), and inlined words are inlined into another word's call site; they don't generate their own #call node.
2011-11-06 19:25:53 -08:00
Doug Coleman
c731dc6edb
Rename lookup to lookup-word.
2011-11-06 16:00:00 -08:00
Joe Groff
8cf18d1a82
remove BSD,solaris,etc. misc platform support code
2011-11-02 17:13:51 -07:00
Joe Groff
38a5184fdf
math.statistics: fix stack effect on collect-by
2011-11-02 13:23:13 -07:00