NumCpp
1.0
A C++ implementation of the Python Numpy library
empty_like.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/NdArray.hpp
"
32
33
namespace
nc
34
{
35
//============================================================================
36
// Method Description:
46
template
<
typename
dtype>
47
NdArray<dtype>
empty_like
(
const
NdArray<dtype>
& inArray)
48
{
49
return
NdArray<dtype>
(inArray.
shape
());
50
}
51
}
nc::NdArray::shape
Shape shape() const noexcept
Definition:
NdArrayCore.hpp:4296
nc::NdArray< dtype >
NdArray.hpp
nc::empty_like
NdArray< dtype > empty_like(const NdArray< dtype > &inArray)
Definition:
empty_like.hpp:47
nc
Definition:
Coordinate.hpp:45
include
NumCpp
Functions
empty_like.hpp
Generated by
1.8.17