BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
|
#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) |
using bc::Dim< 0 >::value_type = bc::size_t |
|
inline |
|
inline |
unchecked version of dim
|
inline |
|
inline |
|
inline |
|
friend |
|
static |