/* * File: Vector.hpp * Author: jens * * Created on 19. Dezember 2014, 18:24 */ #ifndef VECTOR_HPP #define VECTOR_HPP #include #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 ComplexScalar; typedef Matrix RVec; typedef Matrix 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 */