Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Matrix insert

Matias Vazquez-Levi edited this page Jan 31, 2021 · 6 revisions

insert( value , row , col );

This function sets a specific value in the matrix.

  • value

    The value to be inserted into the specified coordinates in the matrix

  • row

    Column index

  • col

    Row index


example:

const m1 = new Matrix(3,4);

m1.log({table:true});

const value = 0.5;
m1.insert(value,2,3);

m1.log({table:true});
Clone this wiki locally