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

Matrix insert

Matias Vazquez-Levi edited this page Feb 1, 2021 · 6 revisions

Back to Matrix

insert( value , row , column );

This function sets a specific value in the matrix.

  • value

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

  • column

    Column index

  • row

    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});