2024-08-28 16:37:03 +08:00
|
|
|
#include "irrt/exception.hpp"
|
|
|
|
#include "irrt/int_types.hpp"
|
|
|
|
#include "irrt/list.hpp"
|
|
|
|
#include "irrt/math.hpp"
|
|
|
|
#include "irrt/ndarray.hpp"
|
2024-08-24 15:37:45 +08:00
|
|
|
#include "irrt/range.hpp"
|
2024-08-28 16:37:03 +08:00
|
|
|
#include "irrt/slice.hpp"
|
2024-08-20 11:38:05 +08:00
|
|
|
#include "irrt/ndarray/basic.hpp"
|
|
|
|
#include "irrt/ndarray/def.hpp"
|
2024-08-21 13:43:07 +08:00
|
|
|
#include "irrt/ndarray/iter.hpp"
|
core/ndstrides: implement np_array()
It also checks for inconsistent dimensions if the input is a list.
e.g., rejecting `[[1.0, 2.0], [3.0]]`.
However, currently only `np_array(<input>, copy=False)` and `np_array(<input>, copy=True)` are supported. In NumPy, copy could be false, true, or None. Right now, NAC3's `np_array(<input>, copy=False)` behaves like NumPy's `np.array(<input>, copy=None)`.
2024-08-20 15:10:39 +08:00
|
|
|
#include "irrt/ndarray/indexing.hpp"
|
|
|
|
#include "irrt/ndarray/array.hpp"
|