Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Overloading matrix-matrix multiplication

$
0
0

I tried to overload matrix-matrix multiplication through the operator *, but the intrinsic matrix-matrix multiplication has already existed as component wise multiplication, which triggers "conflict" error.

I think there are only two ways to avoid this conflict as

(1) Use my own data type in overloading the operation 

(2) Removing the intrinsic matrix-matrix multiplication

However, the first one is not desirable for me, since I need to use lots of matrix multiplication for lots of variables which requires large efforts to turn them into my own data type.

So, my question is if the second way is possible or not , and please let me know if there is another way to resolve this problem.

 

 

 

 

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>