[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] #include "vector.hpp"
From: |
dcardona |
Subject: |
Re: [Discuss-gnuradio] #include "vector.hpp" |
Date: |
Tue, 23 Jun 2015 17:15:40 -0700 (MST) |
Hello!
I think I already found a way to do this, but now I'm getting this error:
"error: a function-definition is not allowed here before ‘{’ token"
In these parts of the code :
Vector txyz(4);
void initialize()
{
txyz[0] = 0.0;
txyz[1] = 0.0;
txyz[2] = 1.0;
txyz[3] = 0.0;
}
void PrimercruceenB()
{
char B;
char Bi;
double w = sqrt(b * (r - 1));
while (txyz[1] < w){ // Cruce con plano B en x
RK4Step(txyz, dt);
}
// Aqui ya tengo el primer valor de x cruzando al plano B
if (txyz[2] >= w) { // Cruce con plano B en y
Bi = '3';
}
else {
while ( txyz[2] < w) {
RK4Step(txyz, dt);
}
if (txyz[1] >= w) {
Bi = '3';
}
}
}
Vector f(Vector txyz)
{
double t = txyz[0];
double x = txyz[1];
double y = txyz[2];
double z = txyz[3];
Vector f(4);
f[0] = 1;
f[1] = - sigma * x + sigma * y;
f[2] = - x * z + r * x - y;
f[3] = x * y - b * z;
return f;
}
I don't know why I'm getting this error. Doesn't these functions can be
recognize by GNU Radio?
Thank you.
--
View this message in context:
http://gnuradio.4.n7.nabble.com/include-vector-hpp-tp54344p54388.html
Sent from the GnuRadio mailing list archive at Nabble.com.
- [Discuss-gnuradio] #include "vector.hpp", dcardona, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp", Michael Berman, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp", dcardona, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp", Michael Berman, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp", Tom Rondeau, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp", dcardona, 2015/06/22
- Re: [Discuss-gnuradio] #include "vector.hpp",
dcardona <=
- Re: [Discuss-gnuradio] #include "vector.hpp", Tom Rondeau, 2015/06/23
- Re: [Discuss-gnuradio] #include "vector.hpp", dcardona, 2015/06/23
- Re: [Discuss-gnuradio] #include "vector.hpp", Tom Rondeau, 2015/06/23
- Re: [Discuss-gnuradio] #include "vector.hpp", Marcus Müller, 2015/06/24
- Re: [Discuss-gnuradio] #include "vector.hpp", dcardona, 2015/06/24
Re: [Discuss-gnuradio] #include "vector.hpp", Marcus Müller, 2015/06/22