JWS C Library
C language utility library
|
Declarations for a vector and associated functions. More...
#include <jwsc/config.h>
#include <stdlib.h>
#include <inttypes.h>
#include "jwsc/base/error.h"
#include "jwsc/math/complex.h"
Go to the source code of this file.
Data Structures | |
struct | Vector_i8 |
Vector of signed 8-bit values. More... | |
struct | Vector_i16 |
Vector of signed 16-bit values. More... | |
struct | Vector_i32 |
Vector of signed 32-bit values. More... | |
struct | Vector_i64 |
Vector of signed 64-bit values. More... | |
struct | Vector_u8 |
Vector of unsigned 8-bit values. More... | |
struct | Vector_u16 |
Vector of unsigned 16-bit values. More... | |
struct | Vector_u32 |
Vector of unsigned 32-bit values. More... | |
struct | Vector_u64 |
Vector of unsigned 64-bit values. More... | |
struct | Vector_f |
Vector of single precision floating point values. More... | |
struct | Vector_d |
Vector of double precision floating point values. More... | |
struct | Vector_cf |
Vector of single precision complex floating point values. More... | |
struct | Vector_cd |
Vector of double precision complex floating point values. More... | |
Functions | |
create_vector | |
Creates a vector of integer or floating point values. | |
void | create_vector_u32 (Vector_u32 **v_out, uint32_t num_elts) |
32-bit unsigned integer. | |
void | create_vector_i32 (Vector_i32 **v_out, uint32_t num_elts) |
32-bit signed integer. | |
void | create_vector_i64 (Vector_i64 **v_out, uint32_t num_elts) |
64-bit signed integer. | |
void | create_vector_f (Vector_f **v_out, uint32_t num_elts) |
Single precision floating point. | |
void | create_vector_d (Vector_d **v_out, uint32_t num_elts) |
Double precision floating point. | |
void | create_vector_cf (Vector_cf **v_out, uint32_t num_elts) |
Single precision complex floating point. | |
void | create_vector_cd (Vector_cd **v_out, uint32_t num_elts) |
Double precision complex floating point. | |
create_init_vector | |
Creates and initializes a vector of integer or floating point values. | |
void | create_init_vector_u32 (Vector_u32 **v_out, uint32_t num_elts, uint32_t val) |
32-bit unsigned integer. | |
void | create_init_vector_i32 (Vector_i32 **v_out, uint32_t num_elts, int32_t val) |
32-bit signed integer. | |
void | create_init_vector_i64 (Vector_i64 **v_out, uint32_t num_elts, int64_t val) |
64-bit signed integer. | |
void | create_init_vector_f (Vector_f **v_out, uint32_t num_elts, float val) |
Single precision floating point. | |
void | create_init_vector_d (Vector_d **v_out, uint32_t num_elts, double val) |
Double precision floating point. | |
void | create_init_vector_cf (Vector_cf **v_out, uint32_t num_elts, Complex_f val) |
Single precision complex floating point. | |
void | create_init_vector_cd (Vector_cd **v_out, uint32_t num_elts, Complex_d val) |
Double precision complex floating point. | |
create_zero_vector | |
Creates a vector of integer or floating point values and initializes it with zeros. | |
void | create_zero_vector_u32 (Vector_u32 **v_out, uint32_t num_elts) |
32-bit unsigned integer. | |
void | create_zero_vector_i32 (Vector_i32 **v_out, uint32_t num_elts) |
32-bit signed integer. | |
void | create_zero_vector_i64 (Vector_i64 **v_out, uint32_t num_elts) |
64-bit signed integer. | |
void | create_zero_vector_f (Vector_f **v_out, uint32_t num_elts) |
Single precision floating point. | |
void | create_zero_vector_d (Vector_d **v_out, uint32_t num_elts) |
Double precision floating point. | |
void | create_zero_vector_cf (Vector_cf **v_out, uint32_t num_elts) |
Single precision complex floating point. | |
void | create_zero_vector_cd (Vector_cd **v_out, uint32_t num_elts) |
Double precision complex floating point. | |
create_random_vector | |
Creates a vector of integer or floating point values and initializes it with random values. | |
void | create_random_vector_u32 (Vector_u32 **v_out, uint32_t num_elts, uint32_t min, uint32_t max) |
32-bit unsigned integer. | |
void | create_random_vector_i32 (Vector_i32 **v_out, uint32_t num_elts, int32_t min, int32_t max) |
32-bit signed integer. | |
void | create_random_vector_i64 (Vector_i64 **v_out, uint32_t num_elts, int64_t min, int64_t max) |
64-bit signed integer. | |
void | create_random_vector_f (Vector_f **v_out, uint32_t num_elts, float min, float max) |
Single precision floating point. | |
void | create_random_vector_d (Vector_d **v_out, uint32_t num_elts, double min, double max) |
Double precision floating point. | |
void | create_random_vector_cf (Vector_cf **v_out, uint32_t num_elts, Complex_f min, Complex_f max) |
Single precision complex floating point. | |
void | create_random_vector_cd (Vector_cd **v_out, uint32_t num_elts, Complex_d min, Complex_d max) |
Double precision complex floating point. | |
copy_vector | |
Copies a vector into another. | |
Error * | copy_vector_u32 (Vector_u32 **v_out, const Vector_u32 *v_in) |
32-bit unsigned integer. | |
Error * | copy_vector_i32 (Vector_i32 **v_out, const Vector_i32 *v_in) |
32-bit signed integer. | |
Error * | copy_vector_i64 (Vector_i64 **v_out, const Vector_i64 *v_in) |
64-bit signed integer. | |
Error * | copy_vector_f (Vector_f **v_out, const Vector_f *v_in) |
Single precision floating point. | |
Error * | copy_vector_d (Vector_d **v_out, const Vector_d *v_in) |
Double precision floating point. | |
Error * | copy_vector_cf (Vector_cf **v_out, const Vector_cf *v_in) |
Single precision complex floating point. | |
Error * | copy_vector_cd (Vector_cd **v_out, const Vector_cd *v_in) |
Double precision complex floating point. | |
copy_vector_section | |
Copies a section of a vector into another. | |
Error * | copy_vector_section_u32 (Vector_u32 **v_out, const Vector_u32 *v_in, uint32_t offset, uint32_t num_elts) |
32-bit unsigned integer. | |
Error * | copy_vector_section_i32 (Vector_i32 **v_out, const Vector_i32 *v_in, uint32_t offset, uint32_t num_elts) |
32-bit signed integer. | |
Error * | copy_vector_section_i64 (Vector_i64 **v_out, const Vector_i64 *v_in, uint32_t offset, uint32_t num_elts) |
64-bit signed integer. | |
Error * | copy_vector_section_f (Vector_f **v_out, const Vector_f *v_in, uint32_t offset, uint32_t num_elts) |
Single precision floating point. | |
Error * | copy_vector_section_d (Vector_d **v_out, const Vector_d *v_in, uint32_t offset, uint32_t num_elts) |
Double precision floating point. | |
Error * | copy_vector_section_cf (Vector_cf **v_out, const Vector_cf *v_in, uint32_t offset, uint32_t num_elts) |
Single precision complex floating point. | |
Error * | copy_vector_section_cd (Vector_cd **v_out, const Vector_cd *v_in, uint32_t offset, uint32_t num_elts) |
Double precision complex floating point. | |
copy_vector_section_into_vector | |
Copies a section of a vector. | |
Error * | copy_vector_section_into_vector_u32 (Vector_u32 *v_1, uint32_t offset_1, const Vector_u32 *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a 32-bit unsigned integer vector into another. | |
Error * | copy_vector_section_into_vector_i32 (Vector_i32 *v_1, uint32_t offset_1, const Vector_i32 *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a 32-bit signed integer vector into another. | |
Error * | copy_vector_section_into_vector_i64 (Vector_i64 *v_1, uint32_t offset_1, const Vector_i64 *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a 64-bit signed integer vector into another. | |
Error * | copy_vector_section_into_vector_f (Vector_f *v_1, uint32_t offset_1, const Vector_f *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a single precision floating point vector into another. | |
Error * | copy_vector_section_into_vector_d (Vector_d *v_1, uint32_t offset_1, const Vector_d *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a double precision floating point vector into another. | |
Error * | copy_vector_section_into_vector_cf (Vector_cf *v_1, uint32_t offset_1, const Vector_cf *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a single precision complex floating point vector into another. | |
Error * | copy_vector_section_into_vector_cd (Vector_cd *v_1, uint32_t offset_1, const Vector_cd *v_2, uint32_t offset_2, uint32_t num_elts) |
Copies a section of a double precision complex floating point vector into another. | |
cat_vectors | |
Concatenates two vectors. | |
void | cat_vectors_u32 (Vector_u32 **v_out, const Vector_u32 *v_1, const Vector_u32 *v_2) |
Concatenates two 32-bit unsigned integer vectors. | |
void | cat_vectors_i32 (Vector_i32 **v_out, const Vector_i32 *v_1, const Vector_i32 *v_2) |
Concatenates two 32-bit signed integer vectors. | |
void | cat_vectors_i64 (Vector_i64 **v_out, const Vector_i64 *v_1, const Vector_i64 *v_2) |
Concatenates two 64-bit signed integer vectors. | |
void | cat_vectors_f (Vector_f **v_out, const Vector_f *v_1, const Vector_f *v_2) |
Concatenates two single precision floating point vectors. | |
void | cat_vectors_d (Vector_d **v_out, const Vector_d *v_1, const Vector_d *v_2) |
Concatenates two double precision floating point vectors. | |
void | cat_vectors_cf (Vector_cf **v_out, const Vector_cf *v_1, const Vector_cf *v_2) |
Concatenates two single precision complex floating point vectors. | |
void | cat_vectors_cd (Vector_cd **v_out, const Vector_cd *v_1, const Vector_cd *v_2) |
Concatenates two double precision complex floating point vectors. | |
free_vector | |
Frees a vector. | |
void | free_vector_u32 (Vector_u32 *v) |
32-bit unsigned integer. | |
void | free_vector_i32 (Vector_i32 *v) |
32-bit signed integer. | |
void | free_vector_i64 (Vector_i64 *v) |
64-bit signed integer. | |
void | free_vector_f (Vector_f *v) |
Single precision floating point. | |
void | free_vector_d (Vector_d *v) |
Double precision floating point. | |
void | free_vector_cf (Vector_cf *v) |
Single precision complex floating point. | |
void | free_vector_cd (Vector_cd *v) |
Double precision complex floating point. |
Declarations for a vector and associated functions.
The vector holds integers and floating point real and complex numbers.
Definition in file vector.h.
void create_vector_u32 | ( | Vector_u32 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_vector_i32 | ( | Vector_i32 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_vector_i64 | ( | Vector_i64 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_vector_f | ( | Vector_f ** | v_out, |
uint32_t | num_elts | ||
) |
void create_vector_d | ( | Vector_d ** | v_out, |
uint32_t | num_elts | ||
) |
void create_vector_cf | ( | Vector_cf ** | v_out, |
uint32_t | num_elts | ||
) |
Single precision complex floating point.
Does not initialize the vector.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
void create_vector_cd | ( | Vector_cd ** | v_out, |
uint32_t | num_elts | ||
) |
Double precision complex floating point.
Does not initialize the vector.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
void create_init_vector_u32 | ( | Vector_u32 ** | v_out, |
uint32_t | num_elts, | ||
uint32_t | val | ||
) |
32-bit unsigned integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
void create_init_vector_i32 | ( | Vector_i32 ** | v_out, |
uint32_t | num_elts, | ||
int32_t | val | ||
) |
32-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
void create_init_vector_i64 | ( | Vector_i64 ** | v_out, |
uint32_t | num_elts, | ||
int64_t | val | ||
) |
64-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
void create_init_vector_f | ( | Vector_f ** | v_out, |
uint32_t | num_elts, | ||
float | val | ||
) |
Single precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
void create_init_vector_d | ( | Vector_d ** | v_out, |
uint32_t | num_elts, | ||
double | val | ||
) |
Double precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
Single precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
Double precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
val | Value to initialize all elements of the vector with. |
void create_zero_vector_u32 | ( | Vector_u32 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_i32 | ( | Vector_i32 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_i64 | ( | Vector_i64 ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_f | ( | Vector_f ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_d | ( | Vector_d ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_cf | ( | Vector_cf ** | v_out, |
uint32_t | num_elts | ||
) |
void create_zero_vector_cd | ( | Vector_cd ** | v_out, |
uint32_t | num_elts | ||
) |
void create_random_vector_u32 | ( | Vector_u32 ** | v_out, |
uint32_t | num_elts, | ||
uint32_t | min, | ||
uint32_t | max | ||
) |
32-bit unsigned integer.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_i32 | ( | Vector_i32 ** | v_out, |
uint32_t | num_elts, | ||
int32_t | min, | ||
int32_t | max | ||
) |
32-bit signed integer.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_i64 | ( | Vector_i64 ** | v_out, |
uint32_t | num_elts, | ||
int64_t | min, | ||
int64_t | max | ||
) |
64-bit signed integer.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_f | ( | Vector_f ** | v_out, |
uint32_t | num_elts, | ||
float | min, | ||
float | max | ||
) |
Single precision floating point.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_d | ( | Vector_d ** | v_out, |
uint32_t | num_elts, | ||
double | min, | ||
double | max | ||
) |
Double precision floating point.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_cf | ( | Vector_cf ** | v_out, |
uint32_t | num_elts, | ||
Complex_f | min, | ||
Complex_f | max | ||
) |
Single precision complex floating point.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
void create_random_vector_cd | ( | Vector_cd ** | v_out, |
uint32_t | num_elts, | ||
Complex_d | min, | ||
Complex_d | max | ||
) |
Double precision complex floating point.
Calls rand() to generate the random numbers.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
num_elts | Number of elements in the vector. |
min | Minimum random value. |
max | Maximum random value. |
Error* copy_vector_u32 | ( | Vector_u32 ** | v_out, |
const Vector_u32 * | v_in | ||
) |
32-bit unsigned integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Error* copy_vector_i32 | ( | Vector_i32 ** | v_out, |
const Vector_i32 * | v_in | ||
) |
32-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Error* copy_vector_i64 | ( | Vector_i64 ** | v_out, |
const Vector_i64 * | v_in | ||
) |
64-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Single precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Double precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Single precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Double precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | Vector to copy. |
Error* copy_vector_section_u32 | ( | Vector_u32 ** | v_out, |
const Vector_u32 * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
32-bit unsigned integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_i32 | ( | Vector_i32 ** | v_out, |
const Vector_i32 * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
32-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_i64 | ( | Vector_i64 ** | v_out, |
const Vector_i64 * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
64-bit signed integer.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_f | ( | Vector_f ** | v_out, |
const Vector_f * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
Single precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_d | ( | Vector_d ** | v_out, |
const Vector_d * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
Double precision floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_cf | ( | Vector_cf ** | v_out, |
const Vector_cf * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
Single precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_cd | ( | Vector_cd ** | v_out, |
const Vector_cd * | v_in, | ||
uint32_t | offset, | ||
uint32_t | num_elts | ||
) |
Double precision complex floating point.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_in | vector to copy a section from. |
offset | Position of first element to begin copying from. |
num_elts | Number of elements to copy. |
Error* copy_vector_section_into_vector_u32 | ( | Vector_u32 * | v_1, |
uint32_t | offset_1, | ||
const Vector_u32 * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a 32-bit unsigned integer vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elements in the section to copy. |
Error* copy_vector_section_into_vector_i32 | ( | Vector_i32 * | v_1, |
uint32_t | offset_1, | ||
const Vector_i32 * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a 32-bit signed integer vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
Error* copy_vector_section_into_vector_i64 | ( | Vector_i64 * | v_1, |
uint32_t | offset_1, | ||
const Vector_i64 * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a 64-bit signed integer vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
Error* copy_vector_section_into_vector_f | ( | Vector_f * | v_1, |
uint32_t | offset_1, | ||
const Vector_f * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a single precision floating point vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
Error* copy_vector_section_into_vector_d | ( | Vector_d * | v_1, |
uint32_t | offset_1, | ||
const Vector_d * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a double precision floating point vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
Error* copy_vector_section_into_vector_cf | ( | Vector_cf * | v_1, |
uint32_t | offset_1, | ||
const Vector_cf * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a single precision complex floating point vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
Error* copy_vector_section_into_vector_cd | ( | Vector_cd * | v_1, |
uint32_t | offset_1, | ||
const Vector_cd * | v_2, | ||
uint32_t | offset_2, | ||
uint32_t | num_elts | ||
) |
Copies a section of a double precision complex floating point vector into another.
v_1 | Vector to copy the section into. |
offset_1 | Position of first elt to copy into v_1. |
v_2 | Vector to copy the section from. |
offset_2 | Position of first elt to copy from v_2. |
num_elts | Number of elts to copy. |
void cat_vectors_u32 | ( | Vector_u32 ** | v_out, |
const Vector_u32 * | v_1, | ||
const Vector_u32 * | v_2 | ||
) |
Concatenates two 32-bit unsigned integer vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
void cat_vectors_i32 | ( | Vector_i32 ** | v_out, |
const Vector_i32 * | v_1, | ||
const Vector_i32 * | v_2 | ||
) |
Concatenates two 32-bit signed integer vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
void cat_vectors_i64 | ( | Vector_i64 ** | v_out, |
const Vector_i64 * | v_1, | ||
const Vector_i64 * | v_2 | ||
) |
Concatenates two 64-bit signed integer vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
Concatenates two single precision floating point vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
Concatenates two double precision floating point vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
Concatenates two single precision complex floating point vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
Concatenates two double precision complex floating point vectors.
v_out | Result parameter. If *v_out is NULL, a vector is allocated; otherwise its space is re-used. |
v_1 | First vector in the concatenation. |
v_2 | Second vector in the concatenation. |
void free_vector_u32 | ( | Vector_u32 * | v | ) |
void free_vector_i32 | ( | Vector_i32 * | v | ) |
void free_vector_i64 | ( | Vector_i64 * | v | ) |
void free_vector_f | ( | Vector_f * | v | ) |
void free_vector_d | ( | Vector_d * | v | ) |
void free_vector_cf | ( | Vector_cf * | v | ) |