25#ifndef __OSMO_DSP_CXVEC_H__
26#define __OSMO_DSP_CXVEC_H__
38#define CXVEC_FLG_REAL_ONLY (1<<0)
51 float complex *data,
int len);
struct osmo_cxvec * osmo_cxvec_alloc_from_data(float complex *data, int len)
Allocate a complex vector referencing a given data array.
Definition: cxvec.c:63
void osmo_cxvec_dbg_dump(struct osmo_cxvec *cv, const char *fname)
Save the data contained of a vector into a .cfile for debug.
Definition: cxvec.c:119
struct osmo_cxvec * osmo_cxvec_alloc(int max_len)
Allocate a complex vector of a given maximum length.
Definition: cxvec.c:83
void osmo_cxvec_init_from_data(struct osmo_cxvec *cv, float complex *data, int len)
Initialize a vector structure with a given data array.
Definition: cxvec.c:48
void osmo_cxvec_free(struct osmo_cxvec *cv)
Free a complex vector (and possibly associated data)
Definition: cxvec.c:109
Complex vector.
Definition: cxvec.h:41
int len
Valid length.
Definition: cxvec.h:42
int max_len
Maximum length in data field.
Definition: cxvec.h:43
float complex _data[0]
Optional inline data array.
Definition: cxvec.h:46
int flags
Flags, see CXVEC_FLG_xxx.
Definition: cxvec.h:44
float complex * data
Data field.
Definition: cxvec.h:45