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