Reikriam

ddot-normal

Mar 15th, 2021
634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <cblas.h>
  3.  
  4. double ddot(double* m, double* n) {
  5.     return cblas_ddot(10, m, 1, n, 1);
  6. }
  7.  
  8. int main() {
  9.     double m[3] = {1, 2, 3};
  10.     double n[3] = {4, 5, 6};
  11.     printf("ddot = %f\n", ddot(m, n));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment