Jim Bosch
9e53eb2c23
Fix some confusing magic numbers in docs for stride ( #50 ).
...
Documentation here needs a bigger cleanup than I can give it
right now, but this at least removes the ambiguity as to whether
"4" means the shape or sizeof(int).
2015-09-09 23:55:28 -04:00
Jim Bosch
fcbba59630
Enable tests in CMake build and fix relative path problems.
...
As reported in #46 , tests were not being built with CMake due
to a typo. But they were also broken, because the relative path
to the dynamic library used in the link commands for the test
Python modules wasn't appropriate for running the tests from
the source directory. Instead, we now copy the Python test
scripts to the build directory and run them there.
2015-09-09 23:27:40 -04:00
Jim Bosch
61a399e80a
Remove const from rvalue returns ( #42 ).
...
I'd originally thought this was a useful way to prevent no-op
assignments to rvalues, but compilers now check for that
without using const, and it was probably only non-standard
compiler behavior that ever made it useful.
2015-09-09 22:38:50 -04:00
Jim Bosch
3494381c01
Resolve dtype equivalence issue in MSVC
2014-11-23 12:39:57 -05:00
Christoph Lassner
bc13c4c600
Fixed unsigned long test error.
2014-11-23 12:39:57 -05:00
Christoph Lassner
73b8350e53
Switch SCons to use SConsChecks submodule for Windows support
2014-11-23 12:39:52 -05:00
Toshiki Teramura
4c2070f39f
Revise example/wrap.cpp for python3
2014-11-23 12:03:58 -05:00
Christoph Lassner
e747cc9422
* SCons change to build a static lib for Windows.
2014-09-25 18:25:05 +02:00
Per
0b549aee88
added the NPY_FLOAT16 dtype
2014-08-04 16:38:02 +02:00
Neal D. Becker
ca8ce585b7
Use equivalent, but doesn't seem to help
2014-06-02 09:40:28 -04:00
Neal D. Becker
81551cf6b6
port to py3
2014-06-02 09:40:00 -04:00
Jonas Hoersch
c8798676f6
cmake: switch from using deprecated linklibraries to target_linklibraries
...
the total information duplication actually decreases and it
facilitates reusing CMake instructions from outer projects.
2013-10-06 20:03:51 +02:00
Jim Bosch
c9974daec2
Avoid Python 3 compile warnings in NumPy initialization
2013-08-24 18:08:01 -04:00
Philip Miller
0b59058fa2
Add cmake build system, fix examples for Windows compatibility.
2013-03-15 23:08:16 -04:00
Aaron Wishnick
4b99e6b83f
Add astype to ndarray.
2013-01-11 15:16:29 -05:00
Jim Bosch
49b536fbd3
replace non-constant array sizes with scoped_array
2012-12-10 23:32:08 -05:00
Jim Bosch
2e47285fb5
Add license file and license header to source files.
2012-09-26 00:33:10 -04:00
Jim Bosch
2f7742ffec
add more permissive equivalence test for dtypes, start using it in tests
2012-09-18 23:13:29 -04:00
Ilya Kolpakov
46b959cceb
ufunc tests now ensure that return value is the same object as the 'output' (if it is provided) argument being the same object as the ufunc return value
2012-09-04 12:10:55 +02:00
Ilya Kolpakov
ca3526c76a
ufunc test now uses assert_array_almost_equal instead of bitwise(?) comparison
2012-09-04 11:30:58 +02:00
Jim Bosch
4ec94c676b
Add example (wrap.py) to demonstrate how to wrap simple functions that operate on C arrays into functions that operate on NumPy arrays ( #6 ).
2012-05-13 17:51:48 -04:00
Jim Bosch
a35cbd1af1
Switch to use RPATH in test and example builds ( #5 ).
2012-05-13 17:50:15 -04:00
Jim Bosch
28a9fab278
Overhauled how builtin dtype objects are accessed for better consistency, added converters for array scalars.
2012-05-13 13:03:10 -04:00
Jim Bosch
ab2225bcbd
Remove unused special handling for bool dtype.
2012-05-12 12:15:32 -04:00
Jim Bosch
dbe4903887
fix LoadableModule suffix on darwin
2012-04-29 12:55:57 -04:00
Jim Bosch
313dcbb628
added as_matrix call policy
2012-04-21 16:46:28 -04:00
Jim Bosch
dca44829a6
untabify python test files
2012-04-21 16:34:01 -04:00
Jim Bosch
588027252b
Remove unnecessary shared_ptr in class_ for ufuncs (from Neal Becker).
...
Signed-off-by: Jim Bosch <jbosch@astro.princeton.edu >
2012-04-17 22:01:39 -04:00
Jim Bosch
1d3a535e53
switch to using LoadableModule instead of SharedLibrary for test Python modules
2012-04-16 23:58:34 -04:00
Jim Bosch
65dc91f3da
add bang lines to Python unit test scripts
2012-04-16 23:50:46 -04:00
Jim Bosch
38e68fa2ae
overhauled scons scripts
2012-03-18 18:57:14 -04:00
Jim Bosch
b219376e24
fixed header order in gaussian example; Python.h should always come before system headers
2012-03-18 17:05:22 -04:00
Jim Bosch
1e66e33201
removed ublas dependency from gaussian example
2011-11-08 03:45:31 +00:00
Stefan Seefeld
8f909d55ac
Refine style.
2011-10-31 22:56:38 +00:00
Stefan Seefeld
05c21bcae1
Refine style.
2011-10-31 22:55:22 +00:00
Stefan Seefeld
0cb3bd7aa5
Add navigation bar.
2011-10-30 22:25:34 +00:00
Stefan Seefeld
7a84a00673
build new 'gaussian.cpp' extension.
2011-10-30 20:54:20 +00:00
Jim Bosch
9d7dfd8449
added gaussian example, updated scons build
2011-10-30 14:43:53 +00:00
Stefan Seefeld
2a8823f745
Fix formatting issues in the Reference Manual.
2011-10-29 20:39:37 +00:00
Stefan Seefeld
beaa4b0e4d
Remove implementation details from documentation.
2011-10-29 18:20:25 +00:00
Stefan Seefeld
55c3b0569e
Restructure documentation sources to build with sphinx.
2011-10-27 14:12:14 +00:00
Ankit Daftery
2aca81bca9
Added temporary directory for Reference documentation
2011-08-31 12:35:56 +00:00
Jim Bosch
32d2135462
boost/numpy - enabled new unit tests in old SCons build system
2011-08-25 23:32:43 +00:00
Ankit Daftery
7064cf3186
Added tutorial for ufunc
2011-08-17 18:26:20 +00:00
Ankit Daftery
777e16e1d0
Added example for ufunc
2011-08-17 18:25:44 +00:00
Ankit Daftery
715e5cbc31
Added non-unit strides example
2011-08-14 06:49:08 +00:00
Ankit Daftery
67b5b07976
Added non-unit strides example
2011-08-14 06:48:46 +00:00
Ankit Daftery
7b088c9df2
Removed todo
2011-08-13 13:55:03 +00:00
Ankit Daftery
3dda62f8b8
Added tutorial for fromdata, i.e. copy free data access
2011-08-12 09:26:55 +00:00
Ankit Daftery
c33460c265
Made a few modifications
2011-08-12 09:26:22 +00:00