Working with Arrays

Sandeep Nagar · Apress eBooks · 2017

Matrix formulation of mathematical problems enables faster numerical computations. For a two-dimensional matrix, elements have a unique row and column index through which users can access them. Rows and columns can be attributed to different properties under study. In this way, users can fit data for two properties as a matrix and then use these matrices for numerical calculations. For example, suppose an element of a row is defined as 1 if a compound is a conductor, 2 if it is a semiconductor, and 3 if it is an insulator. Then the row vector (a matrix composed of only one row) [1 0 0 3 2 1 3 0 1 0 3 2 1] has information about 13 compounds. In a numerical calculation involving the conductive nature of a compound, this row vector (a 13 × 1 matrix) can be utilized where 13 compounds can be simultaneously scanned mathematically.

Read the paper · More papers on PaperTik