Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Matrix Object

Matias Vazquez-Levi edited this page Feb 9, 2021 · 11 revisions

Back to Home

Import

const Matrix = require('dannjs').matrix;

Contructor( rows , cols )

When you create a matrix, you need to specify the number of rows & the number of columns.

const m1 = new Matrix(4,4);

Object Properties

  • rows

    A numeric value representing the number of rows.

  • cols

    A numeric value representing the number of columns.

  • matrix

    The matrix as an array containing other arrays.

Functions

Set values

Static

Debug