Sam Hocevar
d64b117b8d
build: fix license and copyright information.
vor 11 Jahren
Sam Hocevar
51b4210361
base: reintroduce array::swap.
It merely performs an std::swap() on both array elements, but it’s
apparently convenient to have.
vor 11 Jahren
Sam Hocevar
70edc0d38e
misc: carry on with the lowercase rampage.
Using “Array” instead of “array” is now fully deprecated, and I replaced
the Log::Debug() etc. functions with msg::debug() etc. because log:: was
unavailable due to being a maths function.
Added up-to-date copyright notice and BOM to modified files, just in case.
vor 11 Jahren
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.
vor 11 Jahren
Sam Hocevar
04a5da4652
test: minor unit test refactoring.
vor 11 Jahren
Benjamin ‘Touky’ Huet
825401d997
Brought threads to C++11
Revamped thread communication
Fixed dynamic thread Add/Remove
Added unit-test for threads !!!!
vor 11 Jahren
Guillaume Bittoun
b1e1f23b8f
matrix: using permutation and LU decomposition for determinant and inverse computing
vor 11 Jahren
Guillaume Bittoun
ace6e55975
matrix: adding permutation determinant
vor 11 Jahren
Guillaume Bittoun
ed2e6cd95a
matrix: using vec_t for permutation logic
vor 11 Jahren
Guillaume Bittoun
c30c60671b
matrix: adding permutation matrix computing
vor 11 Jahren
Guillaume Bittoun
7251024de5
map: FIXED !
vor 11 Jahren
Guillaume Bittoun
e697314294
map: more bug fixes (still not fully fixed…)
vor 11 Jahren
Guillaume Bittoun
6fd247b9eb
map: starting bug fix
vor 11 Jahren
Guillaume Bittoun
17d25fa26f
map: test fix
vor 11 Jahren
Guillaume Bittoun
73c3d8d524
map: adding test for random failure with add/remove updates
vor 11 Jahren
Sam Hocevar
d70027cc3e
test: ensure the LU-decomposition checks fail with GCC and -ffast-math.
vor 11 Jahren
Benjamin ‘Touky’ Huet
cdc3328f3a
MemTracker is a new thing, better than the shitty previous thing.
vor 11 Jahren
Guillaume Bittoun
839e8de5d5
woops ! bad test
vor 11 Jahren
Guillaume Bittoun
f4c72644c7
map: adding test for an unidentified bug to fix
vor 11 Jahren
Sam Hocevar
b907e0d03d
base: coding style cleanup in avl_tree implementation.
vor 11 Jahren
Benjamin ‘Touky’ Huet
1d822046ef
added map unit test to check removal correct behaviour.
vor 11 Jahren
Sam Hocevar
d8951b413a
math: disable unstable LU decomposition for matrix inversion.
vor 11 Jahren
Sam Hocevar
3d67ab7f23
test: check for NaN in LU decomposition results.
vor 11 Jahren
Benjamin ‘Touky’ Huet
d4d0225170
Removed all the enum macros, because this was shit and admitting that is the first step to global world domination.
vor 11 Jahren
Sam Hocevar
9011c4a876
test: add more unit tests for matrix inversion.
vor 11 Jahren
Guillaume Bittoun
0e974f9109
matrix: using LU-decomposition for matrix inverse (losing precision unfortunately)
vor 11 Jahren
Guillaume Bittoun
f501d2e9a4
matrix: adding U-inverse function
vor 11 Jahren
Guillaume Bittoun
3cf7df7381
matrix: adding L-matrix inverse
vor 11 Jahren
Guillaume Bittoun
7c907f6f3e
matrix: determinant computing using LU-decomposition
vor 11 Jahren
Guillaume Bittoun
ebd15dbc0e
matrix: LU-decomposition, bug fixes + tests
vor 11 Jahren
Sam Hocevar
3835dc62e0
base: minor variable renaming.
vor 11 Jahren
Sam Hocevar
7330c2c8c2
math: move naive bigint multiplication to a static method and add unit tests.
vor 11 Jahren
Sam Hocevar
d92547bf3e
math: add bitwise operators for bigints, comparison operators, unary
plus and minus, subtraction, and a lot of unit tests.
vor 11 Jahren
Sam Hocevar
ec00776d61
math: start working on a bigint type, which will be the fundation
for the next implementation of large float numbers.
vor 11 Jahren
Sam Hocevar
3cd4c4d413
base: more lowercase shit.
vor 11 Jahren
Sam Hocevar
a07844682e
build: remove dead PS3 code.
vor 11 Jahren
Sam Hocevar
8657a3adfa
sys: use std::bind for thread workers to avoid ugly casts.
vor 11 Jahren
Sam Hocevar
f8b29001cd
base: convert map and avl_tree methods to lowercase. Because.
vor 11 Jahren
Sam Hocevar
5d9488182f
math: extract the gradient generator from simplex noise so that we
can reuse it for other noise implementations.
vor 11 Jahren
Sam Hocevar
b0b5bcc6fa
math: tweak simplex noise scale according to dimension.
vor 11 Jahren
Guillaume Bittoun
a815a788e6
simplex_interpolator: bug fix on negative values.
vor 11 Jahren
Guillaume Bittoun
959f68142d
simplex_interpolator: first working version of simplex_interpolator. Tested (with std::cout) for 2D, should work for higher dimensions.
vor 11 Jahren
Guillaume Bittoun
49e9971183
simplex_interpolator: adding std::cout test… for realz this time
vor 11 Jahren
Guillaume Bittoun
b65af37e7c
simplex_interpolator: compilation fixes + testing Interp function
vor 11 Jahren
Lolbot
7506a8aa62
fixed 7 files out of 4184:
- removed 0 CR characters
- removed 1 trailing whitespaces
- replaced 5 tabs with spaces
- fixed 7 svn:eol-style properties
vor 11 Jahren
Guillaume Bittoun
5dbff4b35c
simplex_interpolator: first (non-working) draft for complete interpolator process
vor 11 Jahren
Sam Hocevar
bb438b6252
math: fix a coding error in the polynomial division.
vor 11 Jahren
Guillaume Bittoun
6bd7142428
simplex_interpolator: sorting coordinates in regular basis + tests.
vor 11 Jahren
Sam Hocevar
369ce3f511
math: polynomial division.
vor 11 Jahren
Sam Hocevar
1eb5f9f361
math: add a roots() method to find polynomial roots for degrees 1 and 2.
vor 11 Jahren