Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <cblas.h>
- double ddot(double* m, double* n) {
- return cblas_ddot(10, m, 1, n, 1);
- }
- int main() {
- double m[3] = {1, 2, 3};
- double n[3] = {4, 5, 6};
- printf("ddot = %f\n", ddot(m, n));
- }
Advertisement
Add Comment
Please, Sign In to add comment