/*! * \file v3.h * \brief v3 part of the exercise header file. * * \author * Christos Choutouridis AEM:8997 * */ #ifndef V3_H_ #define V3_H_ #include #include #include #include #if defined CILK #include #include #include #elif defined OMP #include #elif defined THREADS #include #else #endif namespace v3 { //! Select a data representation suited for V3. using matrix = SpMat; using index_t = typename matrix::indexType; //!< syntactic sugar alias for index type using value_t = typename matrix::dataType; //!< syntactic sugar alias for value type /* * Common api for all the versions */ int nworkers(); std::vector triang_v(matrix& A); value_t triang_count (std::vector& c); }; #endif /* V3_H_ */