NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
NdArrayOperators.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  nc
 

Functions

template<typename dtype >
NdArray< bool > nc::operator! (const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< bool > nc::operator!= (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator!= (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator!= (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype , std::enable_if_t< std::is_integral_v< dtype >||std::is_floating_point_v< dtype >, int > = 0>
NdArray< dtype > nc::operator% (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype , std::enable_if_t< std::is_integral_v< dtype >, int > = 0>
NdArray< dtype > nc::operator% (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator% (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype , std::enable_if_t< std::is_integral_v< dtype >||std::is_floating_point_v< dtype >, int > = 0>
NdArray< dtype > & nc::operator%= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype , std::enable_if_t< std::is_integral_v< dtype >||std::is_floating_point_v< dtype >, int > = 0>
NdArray< dtype > & nc::operator%= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator& (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator& (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator& (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< bool > nc::operator&& (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator&& (const NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< bool > nc::operator&& (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator&= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator&= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator* (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (const NdArray< dtype > &lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (const NdArray< dtype > &lhs, const std::complex< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (const NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (const std::complex< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator* (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (dtype lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator* (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator* (NdArray< std::complex< dtype > > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator*= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator*= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator*= (NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator*= (NdArray< std::complex< dtype > > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator+ (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (const NdArray< dtype > &lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (const NdArray< dtype > &lhs, const std::complex< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (const NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (const std::complex< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator+ (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (dtype lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator+ (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator+ (NdArray< std::complex< dtype > > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator++ (NdArray< dtype > &lhs, int)
 
template<typename dtype >
NdArray< dtype > & nc::operator++ (NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator+= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator+= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator+= (NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator+= (NdArray< std::complex< dtype > > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator- (const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< dtype > nc::operator- (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (const NdArray< dtype > &lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (const NdArray< dtype > &lhs, const std::complex< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (const NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (const std::complex< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator- (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (dtype lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator- (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator- (NdArray< std::complex< dtype > > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator-- (NdArray< dtype > &lhs, int)
 
template<typename dtype >
NdArray< dtype > & nc::operator-- (NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator-= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator-= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator-= (NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator-= (NdArray< std::complex< dtype > > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator/ (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (const NdArray< dtype > &lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (const NdArray< dtype > &lhs, const std::complex< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (const NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (const std::complex< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator/ (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (dtype lhs, const NdArray< std::complex< dtype > > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator/ (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > nc::operator/ (NdArray< std::complex< dtype > > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator/= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator/= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator/= (NdArray< std::complex< dtype > > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< std::complex< dtype > > & nc::operator/= (NdArray< std::complex< dtype > > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< bool > nc::operator< (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator< (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator< (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< dtype > nc::operator<< (const NdArray< dtype > &lhs, uint8 inNumBits)
 
template<typename dtype >
std::ostream & nc::operator<< (std::ostream &inOStream, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< dtype > & nc::operator<<= (NdArray< dtype > &lhs, uint8 inNumBits)
 
template<typename dtype >
NdArray< bool > nc::operator<= (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator<= (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator<= (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< bool > nc::operator== (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator== (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator== (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< bool > nc::operator> (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator> (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator> (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< bool > nc::operator>= (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator>= (const NdArray< dtype > &lhs, dtype inValue)
 
template<typename dtype >
NdArray< bool > nc::operator>= (dtype inValue, const NdArray< dtype > &inArray)
 
template<typename dtype >
NdArray< dtype > nc::operator>> (const NdArray< dtype > &lhs, uint8 inNumBits)
 
template<typename dtype >
NdArray< dtype > & nc::operator>>= (NdArray< dtype > &lhs, uint8 inNumBits)
 
template<typename dtype >
NdArray< dtype > nc::operator^ (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator^ (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator^ (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator^= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator^= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator| (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator| (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator| (NdArray< dtype > lhs, dtype rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator|= (NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > & nc::operator|= (NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< bool > nc::operator|| (const NdArray< dtype > &lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< bool > nc::operator|| (const NdArray< dtype > &lhs, dtype rhs)
 
template<typename dtype >
NdArray< bool > nc::operator|| (dtype lhs, const NdArray< dtype > &rhs)
 
template<typename dtype >
NdArray< dtype > nc::operator~ (const NdArray< dtype > &inArray)
 

Detailed Description

Author
David Pilger dpilg.nosp@m.er26.nosp@m.@gmai.nosp@m.l.co.nosp@m.m GitHub Repository

License Copyright 2018-2023 David Pilger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description Operators for the NdArray class