RubixML/Tensor

SVD not implemented in polyfill

ahmaruff opened this issue · 2 comments

I tried use this library with laravel,
there is no issue when installation via composer composer require rubix/tensor.
but when I try call TruncatedSVD() (which is require this lib)
it show error "The tensor extension is not installed, check PHP configuration"

my machine is
Windows 10
PHP 8.1.7 x64 (laragon)

I haven't tried using pear/pecl because I have problem in installation that tool.

Ah yeah, we didn't implement SVD in the polyfill because we just don't have the resources currently. It's a pretty complicated algorithm. With the extension, we call LAPACK under the hood. There's no such equivalent in PHP land currently.

So if you need SVD, you'll need to install the extension, for now.

Thanks for the explanation. It's clear now. I'll close this issue

Btw, you can install tensor extension in windows using
https://github.com/takielias/php-tensor-for-windows