# matrix-convolution **Repository Path**: mirrors_mljs/matrix-convolution ## Basic Information - **Project Name**: matrix-convolution - **Description**: Matrix convolution. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ml-matrix-convolution [![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![test coverage][codecov-image]][codecov-url] [![license][license-image]][license-url] Matrix convolution. ## Installation ```console npm i ml-matrix-convolution ``` ```js const MatrixConvolution = require('ml-matrix-convolution'); let matrix = [ [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], [1, 1, 1, 1, 1], ]; let kernel = [ [1, 1, 1], [1, 1, 1], [1, 1, 1], ]; let conv1 = MatrixConvolution.direct(matrix, kernel); let conv2 = MatrixConvolution.fft(matrix, kerne11); console.log({ conv1, conv2 }); // both should be equal ``` ## License [MIT](./LICENSE) [npm-image]: https://img.shields.io/npm/v/ml-matrix-convolution.svg [npm-url]: https://npmjs.org/package/ml-matrix-convolution [codecov-image]: https://img.shields.io/codecov/c/github/mljs/matrix-convolution.svg [codecov-url]: https://codecov.io/gh/mljs/matrix-convolution [download-image]: https://img.shields.io/npm/dm/ml-matrix-convolution.svg [download-url]: https://npmjs.org/package/ml-matrix-convolution [license-image]: https://img.shields.io/npm/l/ml-matrix-convolution.svg [license-url]: https://github.com/image-js/ml-matrix-convolution/blob/main/LICENSE