ΒΆtemplate <class It1,
          class It2,
          class A,
          class B,
          class C>
auto comp_dot(It1 begin1,
              It2 begin2,
              int N,
              A tprod,
              B tsum,
              C tcomp) ->
    typename std::remove_reference<
        decltype(*begin1)>::type

Description

computes the dot product between posit values vectors using Kahan summation algorithm

Declared at: include/posit.h:100

Templates

It1
type of first iterator
It2
type of second iterator
A
is the product type
B
is the accumulating type
C
is the running compensation type

Parameters

It1 begin1
first iterator
It2 begin2
second iterator
int N
length of vectors
A tprod
B tsum
C tcomp