ΒΆtemplate <class It1, class It2, class A, class B>
auto dot(It1 begin1,
It2 begin2,
int N,
A tprod,
B tsum) ->
typename std::remove_reference<
decltype(*begin1)>::type
template <class It1, class It2, class A, class B>
auto dot(It1 begin1,
It2 begin2,
int N,
A tprod,
B tsum) ->
typename std::remove_reference<
decltype(*begin1)>::typeDescription
computes the dot product between posit values vectors The accumulating type is anything that can be converted to/from the posit: - floating point: float, double - another posit - fixed point - unpacked posit (AKA soft float)
Declared at: include/posit.h:65
Templates
- It1
- type of first iterator
- It2
- type of second iterator
- A
- is the product type, default is self
- B
- is the accumulating type, default is self
Parameters
- It1 begin1
- first iterator
- It2 begin2
- second iterator
- int N
- length of vectors
- A tprod
- B tsum