NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
TypeTraits.hpp File Reference
#include <complex>
#include <type_traits>

Go to the source code of this file.

Data Structures

struct  nc::all_arithmetic< Head, Tail... >
 
struct  nc::all_arithmetic< T >
 
struct  nc::all_same< T1, Head, Tail... >
 
struct  nc::all_same< T1, T2 >
 
struct  nc::greaterThan< Value1, Value2 >
 
struct  nc::is_complex< T >
 
struct  nc::is_complex< std::complex< T > >
 
struct  nc::is_ndarray_int< typename >
 
struct  nc::is_ndarray_int< NdArray< dtype, Allocator > >
 
struct  nc::is_valid_dtype< dtype >
 

Namespaces

namespace  nc
 

Typedefs

template<typename T >
using nc::ndarray_int_concept = std::enable_if_t< is_ndarray_int_v< T >, int >
 

Variables

template<typename... Ts>
constexpr bool nc::all_arithmetic_v = all_arithmetic<Ts...>::value
 
template<typename... Ts>
constexpr bool nc::all_same_v = all_same<Ts...>::value
 
template<std::size_t Value1, std::size_t Value2>
constexpr bool nc::greaterThan_v = greaterThan<Value1, Value2>::value
 
template<class T >
constexpr bool nc::is_complex_v = is_complex<T>::value
 
template<typename T >
constexpr bool nc::is_ndarray_int_v = is_ndarray_int<T>::value
 
template<class dtype >
constexpr bool nc::is_valid_dtype_v = is_valid_dtype<dtype>::value
 

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 Some helper routines for checking types