BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Classes | Typedefs | Functions
bc::tensors Namespace Reference

Namespaces

 detail
 
 exprs
 
 io
 
 iterators
 

Classes

class  Expression_Base
 
struct  Scalar_Accessor
 
class  Tensor_Accessor_Base
 
class  Tensor_Base
 
struct  Tensor_Dim
 

Typedefs

template<class ExpressionTemplate >
using Tensor_Accessor = std::conditional_t< ExpressionTemplate::tensor_dim==0, Scalar_Accessor, Tensor_Accessor_Base< ExpressionTemplate::tensor_dim, Tensor_Base< ExpressionTemplate > >>
 

Functions

template<class ExpressionTemplate >
auto make_tensor (ExpressionTemplate expression)
 
template<class ExpressionTemplate >
auto make_expression (ExpressionTemplate expression)
 
template<class Expression >
auto sum (const Expression_Base< Expression > &tensor)
 
template<class Expression >
auto value_sum (const Expression_Base< Expression > &tensor)
 
template<class Expression >
auto prod (const Expression_Base< Expression > &tensor)
 

Typedef Documentation

◆ Tensor_Accessor

template<class ExpressionTemplate >
using bc::tensors::Tensor_Accessor = typedef std::conditional_t< ExpressionTemplate::tensor_dim == 0, Scalar_Accessor, Tensor_Accessor_Base< ExpressionTemplate::tensor_dim, Tensor_Base<ExpressionTemplate> >>

Function Documentation

◆ make_expression()

template<class ExpressionTemplate >
auto bc::tensors::make_expression ( ExpressionTemplate  expression)

◆ make_tensor()

template<class ExpressionTemplate >
auto bc::tensors::make_tensor ( ExpressionTemplate  expression)

◆ prod()

template<class Expression >
auto bc::tensors::prod ( const Expression_Base< Expression > &  tensor)

◆ sum()

template<class Expression >
auto bc::tensors::sum ( const Expression_Base< Expression > &  tensor)

◆ value_sum()

template<class Expression >
auto bc::tensors::value_sum ( const Expression_Base< Expression > &  tensor)