Zeta Matrix
Introduction
This is a simple matrix library including the following functions:
- Addition
- Subtraction
- Multiplication
- Entrywise multiplication
How to use
//Create a matrix objectvar matrix = number of row number of col; //Add value to the matrixmatrix; //Add all values to the matrixmatrix;matrix; //Print the matrix 1 2 3 4 5 6 7 8 9 //Transposevar matrixT = matrix; //matrix will not changed. //Matrix1 2 3 4 5 6 7 8 9 //MatrixT1 4 7 2 5 8 3 6 9 //Addition (add) / Subtraction (subtract) / Multiplication (multiply)//Parameter [Const / Matrix]matrix; //Note that the matrix will be updated.4 5 6 7 8 9 10 11 12 matrix;5 9 13 9 13 17 13 17 21 //Clone the matrixvar newMatrix = matrix;