NumCpp
2.17.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
swapRows.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include "
NumCpp/NdArray/NdArrayCore.hpp
"
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
NdArrayCore.hpp
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition
NdArrayCore.hpp:139
nc
Definition
Cartesian.hpp:40
nc::int32
std::int32_t int32
Definition
Types.hpp:36
nc::swapRows
NdArray< dtype > & swapRows(NdArray< dtype > &inArray, int32 rowIdx1, int32 rowIdx2) noexcept
Definition
swapRows.hpp:43
include
NumCpp
Functions
swapRows.hpp
Generated by
1.15.0