lyken
1eb462a5c2
Based on 8f0084ac
: 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)`.
11 lines
329 B
C++
11 lines
329 B
C++
#include "irrt/exception.hpp"
|
|
#include "irrt/list.hpp"
|
|
#include "irrt/math.hpp"
|
|
#include "irrt/ndarray.hpp"
|
|
#include "irrt/range.hpp"
|
|
#include "irrt/slice.hpp"
|
|
#include "irrt/ndarray/basic.hpp"
|
|
#include "irrt/ndarray/def.hpp"
|
|
#include "irrt/ndarray/iter.hpp"
|
|
#include "irrt/ndarray/indexing.hpp"
|
|
#include "irrt/ndarray/array.hpp" |