CMS 3D CMS Logo

Classes | Namespaces | Functions
nnet_mult.h File Reference
#include "nnet_common.h"
#include <iostream>
#include <math.h>

Go to the source code of this file.

Classes

class  nnet::product::both_binary< x_T, w_T >
 
class  nnet::product::data_binary< x_T, w_T >
 
class  nnet::product::mult< x_T, w_T >
 
class  nnet::product::Product
 
class  nnet::product::weight_binary< x_T, w_T >
 
class  nnet::product::weight_exponential< x_T, w_T >
 
class  nnet::product::weight_ternary< x_T, w_T >
 

Namespaces

 nnet
 
 nnet::product
 

Functions

template<class data_T , class res_T , typename CONFIG_T >
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, ap_int< nnet::ceillog2(CONFIG_T::n_in)+2 > >::type nnet::cast (typename CONFIG_T::accum_t x)
 
template<class data_T , class res_T , typename CONFIG_T >
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&!std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, res_T >::type nnet::cast (typename CONFIG_T::accum_t x)
 
template<class data_T , class res_T , typename CONFIG_T >
std::enable_if<(!std::is_same< data_T, ap_uint< 1 >>::value), res_T >::type nnet::cast (typename CONFIG_T::accum_t x)
 
constexpr int nnet::ceillog2 (int x)