Main Page | Report this Page
 
   
Science Forum Index  »  Math - Numerical Analysis Forum  »  Any Blitz++ and TVMET experts out there?
Page 1 of 1    
Author Message
dss
Posted: Fri Mar 09, 2007 1:08 am
Guest
I'm trying to compile some code that I downloaded. The code uses
Blitz++ and tvmet to manipulate arrays. I have never worked with either
of these, and I am having trouble getting both of these to work. When I
compile the code, I get a compiler error in the tvmet files. Instead of
trying to figure out what is going on with tvmet, I decided to do
everything with blitz. Which is also not working out. I am hoping that
someone can provide some insight into what I am doing wrong.
I removed the following code.

typedef tvmet::Matrix<double,3, 3> mtr_type;
typedef blitz::Array<mtr_type,2> matrix;
..
..
..
mutable matrix mat;

If I correctly understand the above code then "mat" is a 3 by 3 array.
I replaced this code with

blitz::Array<double,2> mat(3,3);

Which gave me the error message 'The text "3" is unexpected'.

Any insight into the problem would be appreciated.
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Thu Jan 08, 2009 2:06 am