\doxysection{cxvec.\+h}
\label{cxvec_8h_source}\index{include/osmocom/dsp/cxvec.h@{include/osmocom/dsp/cxvec.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{/*}}
\DoxyCodeLine{2 \textcolor{comment}{ * cxvec.h}}
\DoxyCodeLine{3 \textcolor{comment}{ *}}
\DoxyCodeLine{4 \textcolor{comment}{ * Complex vectors handling}}
\DoxyCodeLine{5 \textcolor{comment}{ *}}
\DoxyCodeLine{6 \textcolor{comment}{ * Copyright (C) 2011  Sylvain Munaut <tnt@246tNt.com>}}
\DoxyCodeLine{7 \textcolor{comment}{ *}}
\DoxyCodeLine{8 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{9 \textcolor{comment}{ *}}
\DoxyCodeLine{10 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{11 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{12 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}}
\DoxyCodeLine{13 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{14 \textcolor{comment}{ *}}
\DoxyCodeLine{15 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{16 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{17 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{18 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{19 \textcolor{comment}{ *}}
\DoxyCodeLine{20 \textcolor{comment}{ * You should have received a copy of the GNU General Public License along}}
\DoxyCodeLine{21 \textcolor{comment}{ * with this program; if not, write to the Free Software Foundation, Inc.,}}
\DoxyCodeLine{22 \textcolor{comment}{ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-\/1301 USA.}}
\DoxyCodeLine{23 \textcolor{comment}{ */}}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{preprocessor}{\#ifndef \_\_OSMO\_DSP\_CXVEC\_H\_\_}}
\DoxyCodeLine{26 \textcolor{preprocessor}{\#define \_\_OSMO\_DSP\_CXVEC\_H\_\_}}
\DoxyCodeLine{27 }
\DoxyCodeLine{36 \textcolor{preprocessor}{\#include <complex.h>}}
\DoxyCodeLine{37 }
\DoxyCodeLine{38 \textcolor{preprocessor}{\#define CXVEC\_FLG\_REAL\_ONLY     (1<<0)  }}
\DoxyCodeLine{41 \textcolor{keyword}{struct }osmo\_cxvec \{}
\DoxyCodeLine{42         \textcolor{keywordtype}{int} len;             }
\DoxyCodeLine{43         \textcolor{keywordtype}{int} max\_len;             }
\DoxyCodeLine{44         \textcolor{keywordtype}{int} flags;         }
\DoxyCodeLine{45         \textcolor{keywordtype}{float} complex *data;        }
\DoxyCodeLine{46         \textcolor{keywordtype}{float} complex \_data[0];    }
\DoxyCodeLine{47 \};}
\DoxyCodeLine{48 }
\DoxyCodeLine{49 \textcolor{keywordtype}{void}}
\DoxyCodeLine{50 osmo\_cxvec\_init\_from\_data(\textcolor{keyword}{struct} osmo\_cxvec *cv,}
\DoxyCodeLine{51                           \textcolor{keywordtype}{float} complex *data, \textcolor{keywordtype}{int} len);}
\DoxyCodeLine{52 }
\DoxyCodeLine{53 \textcolor{keyword}{struct }osmo\_cxvec *}
\DoxyCodeLine{54 osmo\_cxvec\_alloc\_from\_data(\textcolor{keywordtype}{float} complex *data, \textcolor{keywordtype}{int} len);}
\DoxyCodeLine{55 }
\DoxyCodeLine{56 \textcolor{keyword}{struct }osmo\_cxvec *}
\DoxyCodeLine{57 osmo\_cxvec\_alloc(\textcolor{keywordtype}{int} max\_len);}
\DoxyCodeLine{58 }
\DoxyCodeLine{59 \textcolor{keywordtype}{void}}
\DoxyCodeLine{60 osmo\_cxvec\_free(\textcolor{keyword}{struct} osmo\_cxvec *cv);}
\DoxyCodeLine{61 }
\DoxyCodeLine{62 \textcolor{keywordtype}{void}}
\DoxyCodeLine{63 osmo\_cxvec\_dbg\_dump(\textcolor{keyword}{struct} osmo\_cxvec *cv, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *fname);}
\DoxyCodeLine{64 }
\DoxyCodeLine{67 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_\_OSMO\_DSP\_CXVEC\_H\_\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
