53 template<
typename dtype>
64 for (
uint32 row = 0; row < numRows; ++row)
66 for (
uint32 col = 0; col < numCols; ++col)
68 returnArrayI(row, col) = inICoords[col];
73 for (
uint32 col = 0; col < numCols; ++col)
75 for (
uint32 row = 0; row < numRows; ++row)
77 returnArrayJ(row, col) = inJCoords[row];
81 return std::make_pair(returnArrayI, returnArrayJ);
98 template<
typename dtype>
101 return meshgrid(arange<dtype>(inSlice1), arange<dtype>(inSlice2));
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
size_type size() const noexcept
Definition: NdArrayCore.hpp:4497
A Class for slicing into NdArrays.
Definition: Slice.hpp:44
Definition: Coordinate.hpp:45
std::pair< NdArray< dtype >, NdArray< dtype > > meshgrid(const NdArray< dtype > &inICoords, const NdArray< dtype > &inJCoords)
Definition: meshgrid.hpp:54
std::uint32_t uint32
Definition: Types.hpp:40