file
Complex.cppimplements the category of complexes over a category, such as the Bar-Natan algebra from [4] or the universal cobordism category from [1]
Functions
-
template<typename Mor>auto NonZero(const Eigen::Index& row, const Eigen::Index& col, const Mor& value) -> bool
- true if the component of the Eigen matrix is non-zero; needed by the Eigen Template Library
-
template<typename Obj, template<typename> typename Mor, typename Coeff>auto to_coeff(const Complex<Obj, Mor, Z_
mod<integer_ simulant>>& cx) -> Complex<Obj, Mor, Coeff> - converts a complex over the integers to a complex over the new ring of coefficients specified by 'New_Coeff'