moghya / dsalglib

This is improved and stable version of dsalib ready to use C++ data structures and algorithms template library
http://moghya.me/dsalglib
29 stars 27 forks source link

add matrix class and basic operations #39

Closed bingwers closed 3 years ago

bingwers commented 4 years ago

The matrix class is essentially a wrapper around the array class that keeps track of its dimensions and implements matrix operations.

This change add a constructor, get and set element functions, and operators for assignment, matrix addition and subtraction, scalar multiplication, and matrix multiplication. For now these algorithms are not optimized, but they're meant to be a simple starting point.