This task is similar to:

   Matrix multiplication
   Matrix transposition


Task

Implement basic element-wise matrix-matrix and scalar-matrix operations, which can be referred to in other, higher-order tasks.

Implement:

   addition
   subtraction
   multiplication
   division
   exponentiation


Extend the task if necessary to include additional basic operations, which should not require their own specialised task.




declare (matrix(3,3), vector(3), scalar) fixed;
declare (m(3,3), v(3) fixed;
 
m = scalar * matrix;
m = vector * matrix;
m = matrix * matrix;
 
v = scalar * vector;
v = vector * vector;