NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
array_equal.hpp
Go to the documentation of this file.
1
28#pragma once
29
31#include "NumCpp/NdArray.hpp"
32
33namespace nc
34{
35 //============================================================================
36 // Method Description:
46 template<typename dtype>
47 bool array_equal(const NdArray<dtype>& inArray1, const NdArray<dtype>& inArray2) noexcept
48 {
49 if (inArray1.shape() != inArray2.shape())
50 {
51 return false;
52 }
53
54 return array_equiv(inArray1, inArray2);
55 }
56} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
Definition: Cartesian.hpp:40
bool array_equal(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2) noexcept
Definition: array_equal.hpp:47
bool array_equiv(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2) noexcept
Definition: array_equiv.hpp:54