NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
empty_like.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/NdArray.hpp
"
31
32
namespace
nc
33
{
34
//============================================================================
35
// Method Description:
45
template
<
typename
dtype>
46
NdArray<dtype>
empty_like
(
const
NdArray<dtype>
& inArray)
47
{
48
return
NdArray<dtype>
(inArray.
shape
());
49
}
50
}
// namespace nc
nc::NdArray::shape
Shape shape() const noexcept
Definition:
NdArrayCore.hpp:4356
nc::NdArray< dtype >
NdArray.hpp
nc::empty_like
NdArray< dtype > empty_like(const NdArray< dtype > &inArray)
Definition:
empty_like.hpp:46
nc
Definition:
Coordinate.hpp:44
include
NumCpp
Functions
empty_like.hpp
Generated by
1.8.17