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::Shape< 0 > Struct Template Reference

#include <shape.h>

Inheritance diagram for bc::Shape< 0 >:
Inheritance graph
[legend]

Public Types

using size_t = bc::size_t
 
using value_type = size_t
 

Public Member Functions

BCINLINE Shape ()
 
template<class... Args>
BCINLINE Shape (const Args &...)
 
BCINLINE Dim< 0 > inner_shape () const
 
BCINLINE size_t operator[] (size_t i)
 
BCINLINE size_t size () const
 
BCINLINE size_t rows () const
 
BCINLINE size_t cols () const
 
BCINLINE size_t dim (int i) const
 
BCINLINE size_t outer_dim () const
 
BCINLINE size_t leading_dim (int i=0) const
 
BCINLINE bool operator== (const Shape &other) const
 
BCINLINE size_t coefficientwise_dims_to_index (size_t i) const
 
template<class... Integers>
BCINLINE size_t dims_to_index (Integers... ints) const
 

Static Public Attributes

static constexpr int tensor_dim = 0
 

Friends

template<int >
struct Shape
 

Member Typedef Documentation

◆ size_t

using bc::Shape< 0 >::size_t = bc::size_t

◆ value_type

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

Constructor & Destructor Documentation

◆ Shape() [1/2]

BCINLINE bc::Shape< 0 >::Shape ( )
inline

◆ Shape() [2/2]

template<class... Args>
BCINLINE bc::Shape< 0 >::Shape ( const Args &  ...)
inline

Member Function Documentation

◆ coefficientwise_dims_to_index()

BCINLINE size_t bc::Shape< 0 >::coefficientwise_dims_to_index ( size_t  i) const
inline

◆ cols()

BCINLINE size_t bc::Shape< 0 >::cols ( ) const
inline

◆ dim()

BCINLINE size_t bc::Shape< 0 >::dim ( int  i) const
inline

◆ dims_to_index()

template<class... Integers>
BCINLINE size_t bc::Shape< 0 >::dims_to_index ( Integers...  ints) const
inline

◆ inner_shape()

BCINLINE Dim<0> bc::Shape< 0 >::inner_shape ( ) const
inline

◆ leading_dim()

BCINLINE size_t bc::Shape< 0 >::leading_dim ( int  i = 0) const
inline

◆ operator==()

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

◆ operator[]()

BCINLINE size_t bc::Shape< 0 >::operator[] ( size_t  i)
inline

◆ outer_dim()

BCINLINE size_t bc::Shape< 0 >::outer_dim ( ) const
inline

◆ rows()

BCINLINE size_t bc::Shape< 0 >::rows ( ) const
inline

◆ size()

BCINLINE size_t bc::Shape< 0 >::size ( ) const
inline

Friends And Related Function Documentation

◆ Shape

template<int >
friend struct Shape
friend

Member Data Documentation

◆ tensor_dim

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

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