1 #ifndef __BTWN_CENTRAL_H__ 2 #define __BTWN_CENTRAL_H__ 7 #define DEVICE __device__ 21 mpath(
int w_,
int m_){ w=w_; m=m_; }
35 cpath(
int w_,
float m_,
double c_){ w=w_; m=m_; c=c_;}
DEVICE HOST mpath(int w_, int m_)
Semiring is a Monoid with an addition multiplicaton function addition must have an identity and be as...
custom bivariate function on two tensors: e.g. C["ij"] = f(A["ik"],B["kj"])
CTF::Monoid< cpath > get_cpath_monoid()
CTF::Bivar_Function< int, cpath, cpath > * get_Brandes_kernel()
DEVICE HOST cpath(int w_, float m_, double c_)
DEVICE HOST mpath(mpath const &p)
A Monoid is a Set equipped with a binary addition operator '+' or a custom function addition must hav...
CTF::Bivar_Function< int, mpath, mpath > * get_Bellman_kernel()
DEVICE HOST cpath(cpath const &p)
CTF::Semiring< mpath > get_mpath_semiring()