NumCpp  2.11.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
swapRows.hpp
Go to the documentation of this file.
1 #pragma once
29 
31 
32 namespace nc
33 {
34  //============================================================================
35  // Method Description:
42  template<typename dtype>
43  NdArray<dtype>& swapRows(NdArray<dtype>& inArray, int32 rowIdx1, int32 rowIdx2) noexcept
44  {
45  inArray.swapRows(rowIdx1, rowIdx2);
46  return inArray;
47  }
48 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:138
Definition: Cartesian.hpp:40
std::int32_t int32
Definition: Types.hpp:36
NdArray< dtype > & swapRows(NdArray< dtype > &inArray, int32 rowIdx1, int32 rowIdx2) noexcept
Definition: swapRows.hpp:43