- Hands-On Mathematics for Deep Learning
- Jay Dawani
- 67字
- 2024-10-30 02:24:29
Adding matrices
As with scalars and vectors, sometimes we may have to add two or more matrices together, and the process of doing so is rather straightforward. Let's take two matrices, A and B, and add them:
It is important to note that we can only add matrices that have the same dimensions, and, as you have probably noticed, we add the matrices element-wise.