473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Matrix*Vector and Vector*Matrix

Hi everybody,

I wonder if someone knows how to implement an operator* into NRVec and/
or NRMat, respectively, that can perform these kind of operations:
Matrix*Vector and Vector*Matrix. Thanks a lot,

Holger

Oct 25 '07 #1
3 2133
On 2007-10-25 11:10, Holgerson wrote:
Hi everybody,

I wonder if someone knows how to implement an operator* into NRVec and/
or NRMat, respectively, that can perform these kind of operations:
Matrix*Vector and Vector*Matrix. Thanks a lot,
See my reply to your other question for answers on that one. Please
notice though that these kinds of operations are usually undesirable
since they do not perform so well.

--
Erik Wikström
Oct 25 '07 #2
Holgerson wrote:
Hi everybody,

I wonder if someone knows how to implement an operator* into NRVec and/
or NRMat, respectively, that can perform these kind of operations:
Matrix*Vector and Vector*Matrix. Thanks a lot,

Holger

Hi,

I think you'd better try the blitz array library from
http://www.oonumerics.org/blitz/ and modify the NR algorithms to work
with it.
It has pretty much everything you need and it's very efficient (uses
expression templates).

Oct 25 '07 #3
On Oct 25, 8:02 pm, Valeriu Catina <cat...@NOSPAMuni-bremen.dewrote:
Holgerson wrote:
Hi everybody,
I wonder if someone knows how to implement an operator* into NRVec and/
or NRMat, respectively, that can perform these kind of operations:
Matrix*Vector and Vector*Matrix. Thanks a lot,
Holger

Hi,

I think you'd better try the blitz array library fromhttp://www.oonumerics.org/blitz/and modify the NR algorithms to work
with it.
It has pretty much everything you need and it's very efficient (uses
expression templates).
Dear Valeriu,

I did load that blitz-tool down and it looks very promising to me, so
I may want to use it. Thanks a lot,

Holger

Oct 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andre Bonin | last post by:
Hey all, i have a matrix-like map (like a city block) that i am trying to build. I need sequential access and synchronized access so i'me using vector. my map is defined as: // This is the Y...
1
by: Zhang Le | last post by:
Hi, I did a small benchmark of matrix-vector multiply operation using Numeric module. I'm a bit suprised to find matrix*col-vector is much faster than row-vector*matrix. I wonder whether other...
8
by: DeMarcus | last post by:
Hi, Is there any kind of "std::matrix<>" in the STL that is optimized for matrix operations, or do I have to do a std::vector< std::vector<someType> > myMatrix; Best regards Daniel
13
by: Charulatha Kalluri | last post by:
Hi, I'm implementing a Matrix class, as part of a project. This is the interface I've designed: class Matrix( )
15
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
27
by: Marcus Kwok | last post by:
I am getting warnings when comparing a (regular) int to the value returned from std::vector.size() in code similar to the following: int i = //stuff if (i >= vec.size()) The compiler gives...
5
by: =?iso-8859-1?B?TWF0dGlhcyBCcuRuZHN0cvZt?= | last post by:
Hello! I'm trying to find what package I should use if I want to: 1. Create 3d vectors. 2. Normalize those vectors. 3. Create a 3x3 rotation matrix from a unit 3-d vector and an angle in...
1
by: Peterwkc | last post by:
Hello all C++ expert programmer, i fairly new to C++ programming. I have designed a matrix class which uses vector to store the data. My problem is i want store the data into vector until user...
1
by: dmstarke | last post by:
I need to write a program that uses vectors to create a 2 dimensional array in which the user is prompted to input the dimensions of the matrix and then enter the elements one by one. Im having...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.