RubixML / Tensor

A library and extension that provides objects for scientific computing in PHP.
https://rubixml.com
MIT License
223 stars 27 forks source link

SVD not implemented in polyfill #37

Closed ahmaruff closed 1 year ago

ahmaruff commented 1 year ago

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.

andrewdalpino commented 1 year ago

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.

ahmaruff commented 1 year ago

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