almost complete. Need to doublecheck names for functions in *_serial.h
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user