Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/std23-chunk-part2' into …
Browse files Browse the repository at this point in the history
…feature/std23-stride
  • Loading branch information
whaeck committed May 17, 2024
2 parents 4932d9b + 1025a5e commit f272a52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/src/tools.python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ PYBIND11_MODULE( tools, module ) {
"any_view< any_view< any_view< double, random_access >, random_access >, random_access >" );
wrapBasicRandomAccessAnyViewOf< std::complex< double > >(
viewmodule,
"any_view< std::complex< double , random_access >" );
"any_view< std::complex< double >, random_access >" );
wrapBasicRandomAccessAnyViewOf< std::string >(
viewmodule,
"any_view< std::string, random_access >" );
}
2 changes: 2 additions & 0 deletions src/tools/views/views-python.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define NJOY_TOOLS_PYTHON_VIEWS

// system includes
#include <string>
#include <complex>

// other includes
Expand Down Expand Up @@ -53,6 +54,7 @@ using UnsignedIntRange = BasicRandomAccessAnyView< unsigned int >;
using DoubleRange2D = BasicRandomAccessAnyView< DoubleRange >;
using DoubleRange3D = BasicRandomAccessAnyView< DoubleRange2D >;
using ComplexRange = BasicRandomAccessAnyView< std::complex< double > >;
using StringRange = BasicRandomAccessAnyView< std::string >;

/**
* @brief Wrap a BasicBidirectionalAnyView templated on the Element type
Expand Down

0 comments on commit f272a52

Please sign in to comment.