NumCpp
2.1.0
A C++ implementation of the Python Numpy library
repeat.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/Core/Shape.hpp
"
32
#include "
NumCpp/Core/Types.hpp
"
33
#include "
NumCpp/NdArray.hpp
"
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
50
template
<
typename
dtype>
51
NdArray<dtype>
repeat
(
const
NdArray<dtype>
& inArray,
uint32
inNumRows,
uint32
inNumCols)
52
{
53
return
inArray.
repeat
(inNumRows, inNumCols);
54
}
55
56
//============================================================================
57
// Method Description:
68
template
<
typename
dtype>
69
NdArray<dtype>
repeat
(
const
NdArray<dtype>
& inArray,
const
Shape
& inRepeatShape)
70
{
71
return
inArray.
repeat
(inRepeatShape);
72
}
73
}
// namespace nc
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:41
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:41
Shape.hpp
nc
Definition:
Coordinate.hpp:45
nc::repeat
NdArray< dtype > repeat(const NdArray< dtype > &inArray, uint32 inNumRows, uint32 inNumCols)
Definition:
repeat.hpp:51
Types.hpp
nc::NdArray::repeat
NdArray< dtype > repeat(uint32 inNumRows, uint32 inNumCols) const
Definition:
NdArrayCore.hpp:4016
include
NumCpp
Functions
repeat.hpp
Generated by
1.8.17