UNPKG

paraview-glance

Version:

Web application for Visualizing Scientific and Medical datasets

11 lines (8 loc) 272 B
"use strict"; const Matrix = require('./Matrix.js'); const setMatrixElement = (matrix, row, column, value) => { const newMatrix = new Matrix(matrix); newMatrix.data[column + row * newMatrix.columns] = value; return newMatrix; }; module.exports = setMatrixElement;