PopDiana / sparse_matrix

OOP module for operations on sparse 2D matrices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A python module for sparse two-dimensional arrays of real numbers.

The matrices' representation is done by storing only the non-zero values, specified by tuples <i, j, v>, where i and j are indices in the matrix corresponding to the non-zero value v. The module allows the following problems to be solved:

  • Matrix creation;
  • Matrix display;
  • Determining the matrix size;
  • Reading a value and writing it in the array (the element is specified by its indices);
  • The operations of adding, subtracting and multiplying two matrices;
  • Access to a matrix element by its indices;
  • Creating a unit matrix;
  • Creating a zero matrix;
  • Transposing the matrix.

About

OOP module for operations on sparse 2D matrices


Languages

Language:Python 100.0%