LisaPizzoExercises/Sheet3/bench_funcs_blas.h
2025-11-05 15:58:10 +01:00

20 lines
646 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef BENCH_FUNCS_BLAS_H
#define BENCH_FUNCS_BLAS_H
#include <vector>
// ===== BLAS-based benchmark functions =====
// (A2) cBLAS dot product
double dot_cblas(const std::vector<double>& x, const std::vector<double>& y);
// (B2) cBLAS matrixvector product
void matvec_cblas(const std::vector<double>& A, std::size_t M, std::size_t N,
const std::vector<double>& x, std::vector<double>& b);
// (C2) cBLAS matrixmatrix product
void matmul_cblas(const std::vector<double>& A, std::size_t M, std::size_t L,
const std::vector<double>& B, std::size_t N,
std::vector<double>& C);
#endif