Skip to content

Latest commit

 

History

History
56 lines (27 loc) · 991 Bytes

File metadata and controls

56 lines (27 loc) · 991 Bytes

Home > @josh-brown/vector > FloatMatrix > map

FloatMatrix.map() method

Builds a matrix by transforming the values of the current matrix.

Signature:

map(entryFunction: (entry: number, rowIndex: number, columnIndex: number) => number): Matrix<number>;

Parameters

Parameter

Type

Description

entryFunction

(entry: number, rowIndex: number, columnIndex: number) => number

A function which takes an entry of the original matrix and its indices, and returns the corresponding entry of the new matrix

Returns:

Matrix<number>

The new matrix