mgcpp
A C++ Math Library Based on CUDA
Public Types | Public Member Functions | Public Attributes | List of all members
mgcpp::shape< Dims > Struct Template Reference

#include <shape.hpp>

Public Types

using shape_type = shape< Dims >
 

Public Member Functions

 shape ()
 
 shape (std::initializer_list< size_t > list)
 
 shape (shape const &)=default
 
shapeoperator= (shape const &)=default
 
size_t operator[] (size_t idx) const
 
size_t & operator[] (size_t idx)
 
bool operator== (shape const &rhs) const
 
bool operator!= (shape const &rhs) const
 
template<std::size_t N>
size_t get () const
 

Public Attributes

size_t dims [Dims]
 

Member Typedef Documentation

◆ shape_type

template<size_t Dims>
using mgcpp::shape< Dims >::shape_type = shape<Dims>

Constructor & Destructor Documentation

◆ shape() [1/3]

template<size_t Dims>
mgcpp::shape< Dims >::shape ( )

◆ shape() [2/3]

template<size_t Dims>
mgcpp::shape< Dims >::shape ( std::initializer_list< size_t >  list)

◆ shape() [3/3]

template<size_t Dims>
mgcpp::shape< Dims >::shape ( shape< Dims > const &  )
default

Member Function Documentation

◆ get()

template<size_t Dims>
template<std::size_t N>
size_t mgcpp::shape< Dims >::get ( ) const

◆ operator!=()

template<size_t Dims>
bool mgcpp::shape< Dims >::operator!= ( shape< Dims > const &  rhs) const

◆ operator=()

template<size_t Dims>
shape& mgcpp::shape< Dims >::operator= ( shape< Dims > const &  )
default

◆ operator==()

template<size_t Dims>
bool mgcpp::shape< Dims >::operator== ( shape< Dims > const &  rhs) const

◆ operator[]() [1/2]

template<size_t Dims>
size_t mgcpp::shape< Dims >::operator[] ( size_t  idx) const

◆ operator[]() [2/2]

template<size_t Dims>
size_t& mgcpp::shape< Dims >::operator[] ( size_t  idx)

Member Data Documentation

◆ dims

template<size_t Dims>
size_t mgcpp::shape< Dims >::dims[Dims]

The documentation for this struct was generated from the following file: