Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
před 10 roky
Sam Hocevar
441a20af99
misc: fix copyright information here and there.
před 10 roky
Guillaume Bittoun
efa94fa2e9
polynomial: adding test with bigger solutions
před 11 roky
Guillaume Bittoun
93dc8a70a7
polynomial: 3rd order solving v1.0
před 11 roky
Guillaume Bittoun
a327a68478
polynomial: 3rd order, almost done. Needs accurate tests
před 11 roky
Guillaume Bittoun
1c93dabbad
polynomial: more 3rd order fixes
před 11 roky
Guillaume Bittoun
26ec1481d3
polynomial: bunch of fixes for 3rd order
před 11 roky
Guillaume Bittoun
c55f25f821
drafting polynomial 3rd order solving. To be continued…
před 11 roky
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
před 11 roky
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
před 11 roky
Guillaume Bittoun
b1e1f23b8f
matrix: using permutation and LU decomposition for determinant and inverse computing
před 11 roky
Guillaume Bittoun
ace6e55975
matrix: adding permutation determinant
před 11 roky
Guillaume Bittoun
ed2e6cd95a
matrix: using vec_t for permutation logic
před 11 roky
Guillaume Bittoun
c30c60671b
matrix: adding permutation matrix computing
před 11 roky
Sam Hocevar
d70027cc3e
test: ensure the LU-decomposition checks fail with GCC and -ffast-math.
před 11 roky
Sam Hocevar
d8951b413a
math: disable unstable LU decomposition for matrix inversion.
před 11 roky
Sam Hocevar
3d67ab7f23
test: check for NaN in LU decomposition results.
před 11 roky
Sam Hocevar
9011c4a876
test: add more unit tests for matrix inversion.
před 11 roky
Guillaume Bittoun
0e974f9109
matrix: using LU-decomposition for matrix inverse (losing precision unfortunately)
před 11 roky
Guillaume Bittoun
f501d2e9a4
matrix: adding U-inverse function
před 11 roky
Guillaume Bittoun
3cf7df7381
matrix: adding L-matrix inverse
před 11 roky
Guillaume Bittoun
7c907f6f3e
matrix: determinant computing using LU-decomposition
před 11 roky
Guillaume Bittoun
ebd15dbc0e
matrix: LU-decomposition, bug fixes + tests
před 11 roky
Sam Hocevar
3835dc62e0
base: minor variable renaming.
před 11 roky
Sam Hocevar
7330c2c8c2
math: move naive bigint multiplication to a static method and add unit tests.
před 11 roky
Sam Hocevar
d92547bf3e
math: add bitwise operators for bigints, comparison operators, unary
plus and minus, subtraction, and a lot of unit tests.
před 11 roky
Sam Hocevar
ec00776d61
math: start working on a bigint type, which will be the fundation
for the next implementation of large float numbers.
před 11 roky
Sam Hocevar
5d9488182f
math: extract the gradient generator from simplex noise so that we
can reuse it for other noise implementations.
před 11 roky
Sam Hocevar
b0b5bcc6fa
math: tweak simplex noise scale according to dimension.
před 11 roky
Guillaume Bittoun
a815a788e6
simplex_interpolator: bug fix on negative values.
před 11 roky
Guillaume Bittoun
959f68142d
simplex_interpolator: first working version of simplex_interpolator. Tested (with std::cout) for 2D, should work for higher dimensions.
před 11 roky
Guillaume Bittoun
49e9971183
simplex_interpolator: adding std::cout test… for realz this time
před 11 roky
Guillaume Bittoun
b65af37e7c
simplex_interpolator: compilation fixes + testing Interp function
před 11 roky
Guillaume Bittoun
5dbff4b35c
simplex_interpolator: first (non-working) draft for complete interpolator process
před 11 roky
Sam Hocevar
bb438b6252
math: fix a coding error in the polynomial division.
před 11 roky
Guillaume Bittoun
6bd7142428
simplex_interpolator: sorting coordinates in regular basis + tests.
před 11 roky
Sam Hocevar
369ce3f511
math: polynomial division.
před 11 roky
Sam Hocevar
1eb5f9f361
math: add a roots() method to find polynomial roots for degrees 1 and 2.
před 11 roky
Sam Hocevar
3916a44c58
math: add derive() method to polynomial and allow to call eval() with
polynomials as arguments so as to compose them together.
před 11 roky
Guillaume Bittoun
a6e8434c66
simplex_interpolator: adding tests for simplex base matrix check.
před 11 roky
Sam Hocevar
0668d0d5a6
math: add a factory for Chebyshev polynomials.
před 11 roky
Sam Hocevar
baebd131fc
math: add a simple polynomial template class.
před 11 roky
Guillaume Bittoun
408b8277ae
simplex_interpolator: bug fixing on matrix computing
před 11 roky
Sam Hocevar
a808cd8f8d
test: add a compile-time test for interpolation of compound types.
před 11 roky
Guillaume Bittoun
97de8946e9
simplex_interpolator: fixing bug on simplex matrix generation
před 11 roky
Sam Hocevar
24e7663c5c
simplex: fix confusion between interpolated types and coordinate types.
před 11 roky
Sam Hocevar
0511d9836a
simplex: fix a bug in the modulo operator. lol. and add unit tests.
před 11 roky
Sam Hocevar
3a4682a976
simplex_interpolator: more unit tests, including some failing ones.
před 11 roky
Guillaume Bittoun
4118789a53
simplex_interpolator: initializing interpolator with the samples so that it can be fully usable at creation.
před 11 roky
Guillaume Bittoun
6f5c15b165
simplex_interpolator: adding first test on 2D samples
před 11 roky