git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30972
ac1ea38d-2e2b-0410-8846-
a27921b304fc
return result;\r
}\r
\r
+ /*\r
+ * Other array is matrix (this is vector)\r
+ */\r
+ public Array vectorMulMatrix(Array other) {\r
+ Array result = new Array();\r
+ Array transposed = other.transposed();\r
+ for(Object o : transposed.elements) {\r
+ // Objects are columns\r
+ Array a = (Array)o;\r
+ result.addElement(this.inner(a));\r
+ }\r
+ return result;\r
+ }\r
+ \r
/*\r
* Other array is vector (this is matrix)\r
*/\r
Array ra = (Array)right;\r
if(la.isVector && ra.isVector) {\r
return la.inner(ra);\r
+ } else if(la.isVector) {\r
+ return la.vectorMulMatrix(ra);\r
} else if(ra.isVector) {\r
return la.matrixMulVector(ra);\r
} else {\r