1
     2
     3
     4
     5
     6
     7
     8
     9
#include <iostream>
#include <vector>
#include "dotprod.hpp"

int main() {
   std::vector<double> a = {2.0, 4.5, 7.0};
   int b[] = {4, 5, 6};
   std::cout << "a dot b = " << dotprod(a, b) << std::endl;
}