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