xtensor-stack / xtensor-blas

BLAS extension to xtensor
BSD 3-Clause "New" or "Revised" License
157 stars 55 forks source link

The error occurred on Windows system #160

Closed xichaoqiang closed 4 years ago

xichaoqiang commented 4 years ago

I try run the example code of xtensor-blas but met an error.

Error message is about unresolved externals.

I have include the project dir,and the example codes of other package xtensor,xtensor-fft,xsimd have passed.

#include "pch.h"
#include "iostream"

#include <xtensor-blas/xlinalg.hpp>
//#include <xtensor/xarray.hpp>

int main()
{

    xt::xarray<double> a = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} };
    auto d = xt::linalg::eig(a);
    std::cout << a << std::endl;  // 6.661338e-16

}

image

image