I encounter a problem when using cblas. I am new to use C++ to do numerics and I know Openblas is one of the famous library to perform linear algebra computation. I use brew install openblas
in my M1 Macbook. When the installation finishes, I follow the output instruction by simply typing these commands in terminal. However, when I use the following example to test openblas,
#include <iostream>
#include "cblas.h"
#include "lapacke.h"
using namespace std;
int main(){
float b[] = {3, 1, 3, 1, 5};
cblas_sasum(5, b, 1);
cout << "Program finished";
}
Xcode says that fatal error: 'cblas.h' file not found
. Therefore, I am wondering how to solve this issue. I appreciate any comment.