Turn on suggestions

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

Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
- Is there a Vector/Matrix Fill/Set?

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

James_N_2

Beginner

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

04-22-2015
10:08 AM

91 Views

Is there a Vector/Matrix Fill/Set?

Hello,

Is there a function to set every element of a vector/matrix to a constant value? You can do it with mkl_calloc, but there a cases where you want to set an existing array and I was wondering if there was an optimized call for this. (esp for complex data).

Link Copied

2 Replies

Gennady_F_Intel

Moderator

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

04-22-2015
09:53 PM

91 Views

Hi James,

MKL doesn't provide such routines. There is another performance library - IPP, which contains a lot of similar functions you are looking for.

James_N_2

Beginner

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

04-23-2015
12:34 PM

91 Views

Thanks!

IPP seems to have vector set routines, but nothing for matrices. Thanks though.

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