D
dss
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.
For example, 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.
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.
For example, 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.