- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I couldn't find in your doc a simple function to do an element-by-element multiplication of two vectors, i.e. something like
for(i=0; i = a * b;
I guess I could do it with a diagonal matrix/vector product, but is there a cleaner and/or faster interface?
for(i=0; i
I guess I could do it with a diagonal matrix/vector product, but is there a cleaner and/or faster interface?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check out the vdMul, vsMul, vcMul, and vzMul functions. They're documented in the reference manual in the chapter on vector mathematical functions.
-Todd
-Todd
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page