/*! * \file v4.h * \brief v4 part of the exercise header file. * * \author * Christos Choutouridis AEM:8997 * */ #ifndef V4_H_ #define V4_H_ #include #include #include #include #if defined CILK #include #include #include #elif defined OMP #include #elif defined THREADS #include #include #include #else #endif namespace v4 { //! 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 /* V4_H_ */