- initial version

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@90 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-12-20 17:56:16 +00:00
commit b0490ad5f2
4 changed files with 325 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
/*
* File: Vector.hpp
* Author: jens
*
* Created on 19. Dezember 2014, 18:24
*/
#ifndef VECTOR_HPP
#define VECTOR_HPP
#include <Eigen/Dense>
#include "../radio/radio_types.h"
using namespace std;
using namespace Eigen;
#ifndef radio_float_t
#define radio_float_t float
#endif
namespace Radio
{
typedef radio_float_t RealScalar;
typedef complex<radio_float_t> ComplexScalar;
typedef Matrix<RealScalar, Dynamic, 1> RVec;
typedef Matrix<ComplexScalar, Dynamic, 1> CVec;
static ComplexScalar toComplexScalar(cpx_t v)
{
return ComplexScalar(v.real, v.imag);
}
static cpx_t toCpx(ComplexScalar v)
{
return Cpx(v.real(), v.imag());
}
} // ::Radio
#endif /* VECTOR_HPP */