🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

ml-matrix-convolution

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
m

ml-matrix-convolution

Matrix convolution: It offers the direct and the fourier transform convolution

2.0.0
latest
98

Supply Chain Security

100

Vulnerability

84

Quality

88

Maintenance

100

License

Version published
Weekly downloads
25K
-7.42%
Maintainers
6
Weekly downloads
 
Created
Issues
1

ml-matrix-convolution

NPM version npm download test coverage license

Matrix convolution.

Installation

npm i ml-matrix-convolution
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

FAQs

Package last updated on 25 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts