3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/triqs/arrays/impl
Olivier Parcollet c7a1a25846 Fix bug in building regular type from python
- the flag is really enforce_copy and should force a copy
- for a view : it is false, no change
- for a regular type : it is true, and now this will enforce the
  copy in the call of numpy. numpy does it for us.
- The problematic case was when we construct a regular type
  from a complicated view in python, which is an array
  but is not C contiguous.
  (hence the PyArray_Check was false, and the C_Contiguous flag was not set)
  Now it is fine, since we ask numpy to systematically copy the data for us
  and build a C contigous array.
  --> the constructor from python does not support custom memory layout
  because numpy only support C and Fortran

Conflicts:

	triqs/arrays/impl/indexmap_storage_pair.hpp
2014-09-18 15:01:17 +02:00
..
assignment.hpp More prettification: can not --> cannot 2014-07-16 23:30:05 +02:00
common.hpp Work on compilation speed. 2014-05-02 20:49:19 +02:00
exceptions.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
flags.hpp implement array_const_view 2013-10-21 15:12:53 +02:00
indexmap_storage_pair.hpp Fix bug in building regular type from python 2014-09-18 15:01:17 +02:00
iterator_adapter.hpp First commit : triqs libs version 1.0 alpha1 2013-07-17 19:24:07 +02:00
make_const.hpp Work on compilation speed. 2014-05-02 20:49:19 +02:00
traits.hpp Work on compilation speed. 2014-05-02 20:49:19 +02:00