Matrix Addition

Prerequisites

Matrices Show

Elements In A Matrix Show

Matrix Addition

Introduction

  • Matrices can be added and subtracted to produce new matrices.
  • This is only possible if the order (dimension) of the matrices is the same.
  • To add (or subtract) two matrices, you add (or subtract) the corresponding elements.

Mathematical Definition

Example

code (Python)

import numpy as np

a = [[3, 6, 2], [5, 1, 10]]
b = [[7, 8, 1], [1, 5, 2]]

c = np.add(a, b)
print(c)