Matrix multiplication: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,178: | Line 2,178: | ||
else throw "Matrix sizes do not match."; |
else throw "Matrix sizes do not match."; |
||
//a matrix, given by a relation of the x-coordinate, y-coordinate and value. |
|||
//a matrix |
|||
public rel[real x, real y, real v] matrixA = { |
public rel[real x, real y, real v] matrixA = { |
||
<0.0,0.0,12.0>, <0.0,1.0, 6.0>, <0.0,2.0,-4.0>, |
<0.0,0.0,12.0>, <0.0,1.0, 6.0>, <0.0,2.0,-4.0>, |