Commits

Author Commit Message Labels Comments Date
Takafumi Arakaki
flags for `_cmemsubsets_` can be specified from `SimObject.__init__` now
Takafumi Arakaki
MetaSimObject recognize _cmemsubsets_ now; added test_cmemsubset
Takafumi Arakaki
added MetaSimObject.__doc__ for explaining given/to-be-set attrs
Takafumi Arakaki
use CMemSubSets._flags_ to store flags instead of _cmss_[:]['on']
Takafumi Arakaki
organize test_cmemsubsets.py and added test for CMemSubSets.copy
Takafumi Arakaki
added CMemSubSets.copy
Takafumi Arakaki
change name: cfunc->cfunc_is_callable; cmem->cmem_need_alloc
Takafumi Arakaki
added _cmss_inverse so that CMemSubSets.{cfunc, cmem} uses "chached" value added more data for test to DATA_CMEMSUBSETS
Takafumi Arakaki
added CMemSubSets and its test
Takafumi Arakaki
Array c-member can have fixed-shape now
Takafumi Arakaki
merge
Takafumi Arakaki
memory leak was because of a bug (no `tp_free` called) in `CStyle_dealloc`
Takafumi Arakaki
enable --calloc (-c) option of check_memory_leak.py
Takafumi Arakaki
use PyArray_GETPTR4 in cstyle5d_alloc, not PyArray_GetPtr, for simpler code
Takafumi Arakaki
use python memory interface `PyMem_{Malloc,Free}` and `PyErr_NoMemory` http://docs.python.org/c-api/memory.html#memory-interface http://docs.python.org/c-api/exceptions.html#PyErr_NoMemory
Takafumi Arakaki
allocate memory needed at once in `cstyle[345]d_alloc`; error handling is easier
Takafumi Arakaki
change allocation codes: now malloc called NDIM-1 times, independent of DIMS check returned of malloc for all dimensions
Takafumi Arakaki
remove '-g' option from `extra_compile_args` added numpy.get_include() to include_dirs
Takafumi Arakaki
added _calloc_ for member and argument for SimObject to on/off using CStyle added _calloc_ to test_arrayaccess{,_c99}.py added check_memory_leak.py: it looks like there are no memory leak
Takafumi Arakaki
added src/cstylemodule.c; all tests are passed with cstyle
Takafumi Arakaki
better test_cwrap_with_subvec using override
Takafumi Arakaki
MetaSimObject uses '_cwrap_*' function for wrapping; test passed; but method w/o self looks wired
Takafumi Arakaki
change docstring of SimObject.num
Takafumi Arakaki
default value for CDDEC and CFDEC_ARG accept '1e-7' now
Takafumi Arakaki
`size_t` can be used as CDT now
Takafumi Arakaki
Do not use ctpa_list[0]; calculate it before calling Bit more faster (~%5) than the simple implantation: % python tests/benchmark_ctype_getter.py repeat: 5, number: 20, shape: (100, 100, 100) min: 0.2497, max: 0.254, mean: 0.2525, std: 0.001587 % python tests/benchmark_ctype_getter.py repeat: 5, number: 20, shape: (100, 100, 100) min: 0.2454, max: 0.2536, mean: 0.2487, std: 0.002732 % python tests/benchmark_ctype_getter.py repeat: 5, number: 20, sh…
Takafumi Arakaki
do calculation of `POINTER_nth` and `ctpa` outside of as_ndim_pointer a little bit faster (~2%) than the simple implementation: # hg id: 815a655a5d5c+ % python tests/benchmark_ctype_getter.py repeat: 5, number: 20, shape: (100, 100, 100) min: 0.257, max: 0.264, mean: 0.2609, std: 0.00242 % python tests/benchmark_ctype_getter.py repeat: 5, number: 20, shape: (100, 100, 100) min: 0.2603, max: 0.2636, mean: 0.2625, std: 0.001173 % python tests/benchmark_ctype_getter.p…
Takafumi Arakaki
added tests/benchmark_ctype_getter.py
Takafumi Arakaki
remove `cmint` and `cmdouble` and added `cm.*` to generate `_cmembers_` for same C type easily
Takafumi Arakaki
Added tag v0.1.5 for changeset a7712cb3ea62
  1. Prev
  2. Next