6b8a7ab582
Sync public mirror / sync (push) Failing after 29s
almost complete. Need to doublecheck names for functions in *_serial.h
21 lines
490 B
C++
21 lines
490 B
C++
#pragma once
|
|
|
|
#include "./core/omp_config.h"
|
|
#include "detail/dot_serial.h"
|
|
|
|
|
|
namespace numerics{
|
|
|
|
// ---------------- Vector * vector ----------------
|
|
template <typename T>
|
|
inline T dot(const utils::Vector<T>& v, const utils::Vector<T>& p) {
|
|
return detail::dot_serial(v,p);
|
|
}
|
|
|
|
// ---------------- Matrix * vector ----------------
|
|
template <typename T>
|
|
inline utils::Vector<T> dot(const utils::Matrix<T>& A, const utils::Vector<T>& v) {
|
|
return detail::dot_serial(A,v);
|
|
}
|
|
|
|
} |