BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Classes | Namespaces | Macros | Functions
coefficientwise_iterator.h File Reference
#include "common.h"
Include dependency graph for coefficientwise_iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bc::tensors::iterators::Coefficientwise_Iterator< Direction, Tensor, enabler >
 

Namespaces

 bc
 The Evaluator determines if an expression needs to be greedily optimized.
 
 bc::tensors
 
 bc::tensors::iterators
 

Macros

#define BC_Iter_Compare(sign, rev)
 

Functions

template<class Tensor >
auto bc::tensors::iterators::iter_cw_begin (Tensor &tensor)
 
template<class Tensor >
auto bc::tensors::iterators::iter_cw_end (Tensor &tensor)
 
template<class Tensor >
auto bc::tensors::iterators::iter_cw_rbegin (Tensor &tensor)
 
template<class Tensor >
auto bc::tensors::iterators::iter_cw_rend (Tensor &tensor)
 

Macro Definition Documentation

◆ BC_Iter_Compare

#define BC_Iter_Compare (   sign,
  rev 
)
Value:
BCINLINE \
bool operator sign (const Iterator& iter) { \
if (Direction == direction::forward) \
return index sign iter.index; \
else \
return index rev iter.index; \
} \
BCINLINE \
bool operator sign (int p_index) { \
if (Direction == direction::forward) \
return index sign p_index; \
else \
return index rev p_index; \
}
Definition: common.h:19