Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Rindow Math Matrix

Rindow Math Matrix Laravel Package

rindow/rindow-math-matrix

Rindow Math Matrix is a PHP library for scientific matrix operations, providing N-dimensional arrays, broadcasting, BLAS, linear algebra, and machine learning functions. It integrates C/C++ libraries like OpenBLAS and CLBlast via FFI and supports GPU acceleration through OpenCL.

View on GitHub
Deep Wiki
Context7

Rindow Math Matrix is a fundamental PHP package for scientific matrix computation, providing a powerful N-dimensional array object with broadcasting, BLAS functions, and linear algebra capabilities. It integrates with C/C++ libraries via FFI (OpenBLAS, Rindow-Matlib, CLBlast) and supports GPU acceleration through OpenCL on Intel, AMD, and other hardware—no NVIDIA required. It requires PHP 8.1–8.4.

  • N-dimensional arrays with sophisticated broadcasting functions
  • BLAS and linear algebra operations for machine learning
  • FFI integration for C/C++ libraries like OpenBLAS and CLBlast
  • OpenCL GPU support on laptops with Intel or AMD hardware
  • Randomized and numerical capabilities for scientific work
Frequently asked questions about Rindow Math Matrix
What is rindow/rindow-math-matrix used for in a Laravel application?
Rindow Math Matrix provides N-dimensional arrays, broadcasting, BLAS linear algebra, random number generation, and machine-learning helpers for PHP. In Laravel it fits analytics dashboards, fraud scoring, recommendation features, scientific data processing, and API endpoints that return numeric payloads. It is not a CRUD package, so wrap it in services or a facade rather than treating it as Eloquent.
How do I install rindow/rindow-math-matrix in Laravel?
Run composer require rindow/rindow-math-matrix in your Laravel project. For practical performance, also install rindow/rindow-math-matrix-matlibffi and the prebuilt OpenBLAS, Rindow Matlib, or CLBlast binaries described in the setup docs. You can bind MatrixOperator as a singleton or create a facade in your app.
Does rindow-math-matrix support Laravel 10, 11, and 12?
The package is framework-agnostic and requires PHP 8.1 through 8.4, so any Laravel release running a supported PHP version can install it with Composer. The provided documentation does not describe a bundled Laravel service provider, so you should register your own binding or facade. Check your Laravel version's PHP requirement before adopting it.
How do I enable OpenBLAS or GPU acceleration for matrix math in Laravel?
Install the rindow-math-matrix-matlibffi plug-in and the prebuilt OpenBLAS, Rindow Matlib, OpenCL, or CLBlast binaries. Configure the FFI driver and ensure the PHP FFI extension and native libraries are available in every Laravel environment, including queue workers. Pure PHP mode works but is much slower for large operations.
Can I use rindow-math-matrix for machine learning in a Laravel API?
Yes, it provides tensor-style operations such as einsum, topk, masking, random sampling, and linear solves that are useful for inference and feature processing. It is not a complete machine-learning framework, so pair it with trained model artifacts or a separate model service when needed. Serialize results to JSON and check isfinite or isinf before returning predictions.
How should I store matrices from rindow-math-matrix in Laravel database or cache?
Store small matrices as JSON in a text or jsonb column, or offload large payloads to Redis or dedicated storage. The 2.x serialization format may conflict with cached or queued data if package versions differ, so version and test your hydration path. Use shapeToString and dtypeToString as cheap guards before persisting or returning payloads.
Is rindow-math-matrix deterministic enough for Pest or PHPUnit tests?
Yes for random operations when you call setSeed on LinearAlgebra or MatrixOperator before generating values. The seed is process or instance level, and the docs do not promise per-call RNG isolation, so avoid sharing one seeded operator across concurrent queue workers. Seed per test and assert on stable shapes, dtypes, and numeric outputs.
What PHP versions does rindow/rindow-math-matrix require?
The current release requires PHP 8.1, 8.2, 8.3, or 8.4. PHP 7.2 through 8.0 are not supported in this release, so legacy Laravel apps should use Rindow Math Matrix 1.1 or upgrade PHP first.
What are good alternatives to rindow-math-matrix for Laravel matrix operations?
Alternatives include pure PHP array libraries, database-native analytics functions, or calling a Python and NumPy microservice from Laravel. Rindow is strongest when you want BLAS, FFI, or OpenCL acceleration inside PHP without adding a separate numerical service. Evaluate operational complexity and deployment support before choosing.
What is new in rindow-math-matrix 2.2.0 and is it backward compatible?
Version 2.2.0 adds trsv, solveg, randomCategorical, randInt, NumPy-style where, isfinite and isinf checks, explicit setSeed methods, and formatting helpers such as toString, dtypeToString, and shapeToString. NDArray::offsetSet also accepts 0-dimensional arrays as scalars. The release is described as strictly additive with no documented breaking changes or serialization format changes.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource