Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development Tools (Compilers, Debuggers, Profilers & Analyzers)
- Intel® Fortran Compiler
- Overloading matrix-matrix multiplication

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

dimdol10

New Contributor I

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-16-2016
05:38 PM

2 Views

Overloading matrix-matrix multiplication

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.

1 Reply

Highlighted
##

IanH

Black Belt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-16-2016
07:13 PM

2 Views

You cannot suppress the

You cannot suppress the accessibility of the intrinsic operations. This is a good thing, redefining basic operations like multiplication of REAL values is only going to confuse those reading your code.

Consider defining a different operator (e.g. .mymatmul.) for the operation.

For more complete information about compiler optimizations, see our Optimization Notice.