Commit graph

399 commits

Author SHA1 Message Date
Leonardo de Moura
8af56394cc Add foreach for S-expression lists
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-21 14:32:36 -07:00
Leonardo de Moura
b8315e5593 Fix ambiguous overloads. Improve == test for sexprs. Remove redundant code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-21 14:25:56 -07:00
Leonardo de Moura
80d8fdbf48 Fix tests exit code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-20 18:04:05 -07:00
Leonardo de Moura
403e6a141b Add useful goodies for S-expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-20 18:01:10 -07:00
Leonardo de Moura
05991c827b Add S-expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-20 17:22:13 -07:00
Leonardo de Moura
eda1a337de Add more tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-20 14:23:52 -07:00
Leonardo de Moura
f71fdea42e Add hash goodies, and name::hash()
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-20 14:23:34 -07:00
Leonardo de Moura
f7e59366ea Add neg, div, power to interval. Fix bug in -= operator at interval. Add some unit tests for interval class
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 19:24:38 -07:00
Leonardo de Moura
63e596885c Add support for (soft) interrupts
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 19:12:55 -07:00
Leonardo de Moura
272089044e Add power operator to numeric_traits
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 16:58:56 -07:00
Leonardo de Moura
d75d6d4684 Add power operator to mpq
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 16:50:58 -07:00
Leonardo de Moura
a0908ba3c5 Add missing library, the interval library contains the explicit instantiation of interval<mpq> and interval<double>
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 14:18:18 -07:00
Leonardo de Moura
6e6d83d46c Add precise() to numeric_traits
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:42:19 -07:00
Leonardo de Moura
c581990f67 Clean white-spaces
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:29:33 -07:00
Leonardo de Moura
7f3bd4f254 Add inv method to interval
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:04:25 -07:00
Soonho Kong
a376e478f8 Fix friend issues in mpq/mpz 2013-07-19 10:04:20 -07:00
Soonho Kong
a169837a3e Add separate cmake files for GMP and Tcmalloc 2013-07-19 10:04:08 -07:00
Leonardo de Moura
4e3dc83621 have separate cmake files for GMP and Tcmalloc
Conflicts:
	src/CMakeLists.txt
2013-07-19 10:04:00 -07:00
Leonardo de Moura
5063c8cfa1 Add interval template
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:53 -07:00
Leonardo de Moura
d3f5e34d08 Add numerics/numeric_traits.cpp
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:51 -07:00
Soonho Kong
03802b2e4d Add instructions for clang, use markdown format 2013-07-19 10:01:46 -07:00
Leonardo de Moura
2db2383b09 Add goodies for extended numerals
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:44 -07:00
Leonardo de Moura
7dbd87e382 Add numeric_traits
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:42 -07:00
Leonardo de Moura
52bd8b8b52 Add verbosity stream
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:40 -07:00
Leonardo de Moura
5de8b3a8ee Add support for tcmalloc
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-19 10:01:32 -07:00
Leonardo de Moura
8353181fd1 Add basic mpq tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-18 11:10:15 -07:00
Leonardo de Moura
0198d73428 Fix compilation bug
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-18 09:12:21 -07:00
Leonardo de Moura
e559bf73a9 Add basic testing infrastructure using CTest
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-18 09:12:07 -07:00
Leonardo de Moura
8cce4b10c5 Add CMakeLists.txt to numerics module
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 14:34:42 -07:00
Leonardo de Moura
4ccf770b64 Move mpz, mpq and mpbq to numerics directory
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 14:33:00 -07:00
Leonardo de Moura
d028041135 Add methods to mpz, mpq, mpbq
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 14:24:35 -07:00
Leonardo de Moura
88b49ec21f Add thread_local test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 12:43:28 -07:00
Leonardo de Moura
eaa76ee9d2 Add missing operators to mpz, mpq, mpbq. Add pp functions for debugging
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 12:43:05 -07:00
Leonardo de Moura
c0f9f06d70 Set clang++ as default compiler. Add -pthread as a linker flag
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 12:41:28 -07:00
Leonardo de Moura
d72f24a5e5 Add gtags files to .gitignore
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-17 12:40:31 -07:00
Leonardo de Moura
1448dd5098 Update .gitignore
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 22:34:54 -07:00
Leonardo de Moura
501f63e27d Add build instructions. Improve build.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 22:32:21 -07:00
Leonardo de Moura
139f4f2a7f Add simple build system based on cmake
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 22:10:51 -07:00
Leonardo de Moura
e9c9974ee0 Reorganize methods. Remove num_macros.h. Add binary rationals mpbq.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 21:08:38 -07:00
Leonardo de Moura
c6e68289da Fix cygwin problems
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 17:38:51 -07:00
Leonardo de Moura
e7bfd9a77d Add missing operators
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 17:20:24 -07:00
Leonardo de Moura
5c76cac9b1 Add wrapper for GMP mpq numbers
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 17:18:36 -07:00
Leonardo de Moura
31563b95bd Add wrapper from GMP mpz numbers
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 13:13:59 -07:00
Leonardo de Moura
5a0801789b Add GMP initialization
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 10:29:17 -07:00
Leonardo de Moura
c7a1623d27 Add README file
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 10:20:06 -07:00
Leonardo de Moura
3eaf8dea2a Make reference counting thread safe
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-16 10:11:14 -07:00
Leonardo de Moura
146f215614 Add LICENSE file
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-15 18:55:48 -07:00
Leonardo de Moura
763b79e0aa Add basic .gitignore file
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-15 18:45:12 -07:00
Leonardo de Moura
4f5cafdebf Add support files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-07-15 18:43:32 -07:00