BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
bc::Dim< 0 > Struct Template Reference

#include <dim.h>

Public Types

using value_type = bc::size_t
 

Public Member Functions

BCINLINE value_type size (value_type base_sz=1, value_type base_index=0) const
 
BCINLINE value_type operator[] (int i) const
 unchecked version of dim More...
 
BCINLINE value_type dim (bc::size_t i) const
 
BCINLINE value_type outer_dim () const
 
BCINLINE bool operator== (const Dim &other) const
 
BCINLINE bool operator!= (const Dim &other) const
 
std::string to_string () const
 

Static Public Attributes

static constexpr int tensor_dim = 0
 

Friends

std::ostream & operator<< (std::ostream &os, const Dim &self)
 

Member Typedef Documentation

◆ value_type

using bc::Dim< 0 >::value_type = bc::size_t

Member Function Documentation

◆ dim()

BCINLINE value_type bc::Dim< 0 >::dim ( bc::size_t  i) const
inline

◆ operator!=()

BCINLINE bool bc::Dim< 0 >::operator!= ( const Dim< 0 > &  other) const
inline

◆ operator==()

BCINLINE bool bc::Dim< 0 >::operator== ( const Dim< 0 > &  other) const
inline

◆ operator[]()

BCINLINE value_type bc::Dim< 0 >::operator[] ( int  i) const
inline

unchecked version of dim

◆ outer_dim()

BCINLINE value_type bc::Dim< 0 >::outer_dim ( ) const
inline

◆ size()

BCINLINE value_type bc::Dim< 0 >::size ( value_type  base_sz = 1,
value_type  base_index = 0 
) const
inline

◆ to_string()

std::string bc::Dim< 0 >::to_string ( ) const
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Dim< 0 > &  self 
)
friend

Member Data Documentation

◆ tensor_dim

constexpr int bc::Dim< 0 >::tensor_dim = 0
static

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