22 #include <lal/LALStdlib.h>
23 #include <lal/LALConstants.h>
24 #include <lal/VectorOps.h>
101 for ( i = 0; i < in->
length; ++i )
102 out->
data[i] = cabsf( in->
data[i] );
116 for ( i = 0; i < in->
length; ++i )
132 for ( i = 0; i < in->
length; ++i )
133 out->
data[i] = cargf( in->
data[i] );
147 for ( i = 0; i < in->
length; ++i )
172 for ( i = 1; i < in->
length; ++i ) {
173 diff = in->
data[i] - prev;
200 for ( i = 1; i < in->
length; ++i ) {
201 diff = in->
data[i] - prev;
#define ASSERT(assertion, statusptr, code, mesg)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define VECTOROPSH_MSGESIZE
#define VECTOROPSH_MSGESAME
#define VECTOROPSH_MSGESZMM
#define VECTOROPSH_MSGENULL
#define LAL_PI
Archimedes's constant, pi.
#define LAL_TWOPI
2*pi is circumference of a circle divided by its radius
double REAL8
Double precision real floating-point number (8 bytes).
uint32_t UINT4
Four-byte unsigned integer.
int32_t INT4
Four-byte signed integer.
float REAL4
Single precision real floating-point number (4 bytes).
#define VECTOROPSH_ESIZE
Invalid input size.
#define VECTOROPSH_ENULL
Null pointer.
#define VECTOROPSH_ESZMM
Size mismatch.
#define VECTOROPSH_ESAME
Input/Output data vectors are the same.
int XLALREAL8VectorUnwrapAngle(REAL8Vector *out, const REAL8Vector *in)
corrects the radian phase angles of a real vector by adding multiples of pi when the absolute jumps b...
void LALCVectorAngle(LALStatus *status, REAL4Vector *out, const COMPLEX8Vector *in)
UNDOCUMENTED.
int XLALCOMPLEX16VectorArg(REAL8Vector *out, const COMPLEX16Vector *in)
computes the arguments of a vector of complex numbers
void LALZVectorAngle(LALStatus *status, REAL8Vector *out, const COMPLEX16Vector *in)
UNDOCUMENTED.
int XLALCOMPLEX8VectorArg(REAL4Vector *out, const COMPLEX8Vector *in)
computes the arguments of a vector of complex numbers
void LALUnwrapREAL8Angle(LALStatus *status, REAL8Vector *out, const REAL8Vector *in)
UNDOCUMENTED.
void LALZVectorAbs(LALStatus *status, REAL8Vector *out, const COMPLEX16Vector *in)
UNDOCUMENTED.
int XLALREAL4VectorUnwrapAngle(REAL4Vector *out, const REAL4Vector *in)
corrects the radian phase angles of a real vector by adding multiples of pi when the absolute jumps b...
int XLALCOMPLEX16VectorAbs(REAL8Vector *out, const COMPLEX16Vector *in)
computes the magnitudes of a vector of complex numbers
int XLALCOMPLEX8VectorAbs(REAL4Vector *out, const COMPLEX8Vector *in)
computes the magnitudes of a vector of complex numbers
void LALCVectorAbs(LALStatus *status, REAL4Vector *out, const COMPLEX8Vector *in)
UNDOCUMENTED.
void LALUnwrapREAL4Angle(LALStatus *status, REAL4Vector *out, const REAL4Vector *in)
UNDOCUMENTED.
#define XLAL_ERROR(...)
Macro to invoke a failure from a XLAL routine returning an integer.
@ XLAL_EBADLEN
Inconsistent or invalid length.
@ XLAL_EFAULT
Invalid pointer.
@ XLAL_EINVAL
Invalid argument.
Vector of type COMPLEX16, see DATATYPE-Vector types for more details.
UINT4 length
Number of elements in array.
COMPLEX16 * data
Pointer to the data array.
Vector of type COMPLEX8, see DATATYPE-Vector types for more details.
UINT4 length
Number of elements in array.
COMPLEX8 * data
Pointer to the data array.
LAL status structure, see The LALStatus structure for more details.
Vector of type REAL4, see DATATYPE-Vector types for more details.
REAL4 * data
Pointer to the data array.
UINT4 length
Number of elements in array.
Vector of type REAL8, see DATATYPE-Vector types for more details.
REAL8 * data
Pointer to the data array.
UINT4 length
Number of elements in array.