52 template<
typename dtype>
63 for (
uint32 row = 0; row < numRows; ++row)
65 for (
uint32 col = 0; col < numCols; ++col)
67 returnArrayI(row, col) = inICoords[col];
72 for (
uint32 col = 0; col < numCols; ++col)
74 for (
uint32 row = 0; row < numRows; ++row)
76 returnArrayJ(row, col) = inJCoords[row];
80 return std::make_pair(returnArrayI, returnArrayJ);
96 template<
typename dtype>
99 return meshgrid(arange<dtype>(inSlice1), arange<dtype>(inSlice2));
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
A Class for slicing into NdArrays.
Definition: Slice.hpp:45
Definition: Cartesian.hpp:40
std::pair< NdArray< dtype >, NdArray< dtype > > meshgrid(const NdArray< dtype > &inICoords, const NdArray< dtype > &inJCoords)
Definition: meshgrid.hpp:53
std::uint32_t uint32
Definition: Types.hpp:40