New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

matrixlib

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matrixlib

Adds matrix support and routines

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Matrixlib

Add matrix support and routines to nodejs

Methods

.matrix(m,n,init)

Create a matrix m by n (m rows, n columns) with initial value init

Example

// 4x4 matrix filled with 0
var mlib = require('matrixlib');
var myMatrix = mlib.matrix(4,4,0);

.identity(n)

Create an identity matrix n by n

Example

// 3x3 identity matrix
var mlib = require('matrixlib');
var myIdentityMatrix = mlib.identity(3);

.copy(matrix)

Returns a copy of a matrix.

.equals(a,b)

Tests for equality between matrix a and b.

FAQs

Package last updated on 04 Oct 2011

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