liquid_vectorf
Variants: liquid_vectorcf, liquid_vectorf
Public Functions
void | liquid_vectorf_init( |
void | liquid_vectorf_add( |
void | liquid_vectorf_addscalar( |
void | liquid_vectorf_mul( |
void | liquid_vectorf_mulscalar( |
void | liquid_vectorf_cexpj( |
void | liquid_vectorf_carg( |
void | liquid_vectorf_abs( |
float | liquid_vectorf_sumsq( |
float | liquid_vectorf_norm( |
float | liquid_vectorf_pnorm( |
void | liquid_vectorf_normalize( |
Interfaces
void liquid_vectorf_init(
Initialize vector with scalar: x[i] = c (scalar)
- _c :
- _x :
- _n :
void liquid_vectorf_add(
Add each element pointwise: z[i] = x[i] + y[i]
- _x :
- _y :
- _n :
- _z :
void liquid_vectorf_addscalar(
Add scalar to each element: y[i] = x[i] + c
- _x :
- _n :
- _c :
- _y :
void liquid_vectorf_mul(
Multiply each element pointwise: z[i] = x[i] * y[i]
- _x :
- _y :
- _n :
- _z :
void liquid_vectorf_mulscalar(
Multiply each element with scalar: y[i] = x[i] * c
- _x :
- _n :
- _c :
- _y :
void liquid_vectorf_cexpj(
Compute complex phase rotation: x[i] = exp{j theta[i]}
- _theta :
- _n :
- _x :
void liquid_vectorf_carg(
Compute angle of each element: theta[i] = arg{ x[i] }
- _x :
- _n :
- _theta :
void liquid_vectorf_abs(
Compute absolute value of each element: y[i] = |x[i]|
- _x :
- _n :
- _y :
float liquid_vectorf_sumsq(
Compute sum of squares: sum{ |x|^2 }
- _x :
- _n :
float liquid_vectorf_norm(
Compute l-2 norm: sqrt{ sum{ |x|^2 } }
- _x :
- _n :
float liquid_vectorf_pnorm(
Compute l-p norm: { sum{ |x|^p } }^(1/p)
- _x :
- _n :
- _p :
void liquid_vectorf_normalize(
Scale vector elements by l-2 norm: y[i] = x[i]/norm(x)
- _x :
- _n :
- _y :