spLib
|
Vector Operation (<sp/voperate.h>) | |
void | svoper (spSVector a, const char *op, spSVector b) |
spSVector | xsvoper (spSVector a, const char *op, spSVector b) |
void | svscoper (spSVector a, const char *op, double t) |
spSVector | xsvscoper (spSVector a, const char *op, double t) |
void | svcplxoper (spSVector a, const char *op, double tr, double ti) |
spSVector | xsvcplxoper (spSVector a, const char *op, double tr, double ti) |
void | lvoper (spLVector a, const char *op, spLVector b) |
spLVector | xlvoper (spLVector a, const char *op, spLVector b) |
void | lvscoper (spLVector a, const char *op, double t) |
spLVector | xlvscoper (spLVector a, const char *op, double t) |
void | lvcplxoper (spLVector a, const char *op, double tr, double ti) |
spLVector | xlvcplxoper (spLVector a, const char *op, double tr, double ti) |
void | fvoper (spFVector a, const char *op, spFVector b) |
spFVector | xfvoper (spFVector a, const char *op, spFVector b) |
void | fvscoper (spFVector a, const char *op, float t) |
spFVector | xfvscoper (spFVector a, const char *op, float t) |
void | fvcplxoper (spFVector a, const char *op, float tr, float ti) |
spFVector | xfvcplxoper (spFVector a, const char *op, float tr, float ti) |
void | dvoper (spDVector a, const char *op, spDVector b) |
spDVector | xdvoper (spDVector a, const char *op, spDVector b) |
void | dvscoper (spDVector a, const char *op, double t) |
spDVector | xdvscoper (spDVector a, const char *op, double t) |
void | dvcplxoper (spDVector a, const char *op, double tr, double ti) |
spDVector | xdvcplxoper (spDVector a, const char *op, double tr, double ti) |
Element Comparison (<sp/voperate.h>) | |
void | svsceval (spSVector x, const char *op, short t) |
spSVector | xsvsceval (spSVector x, const char *op, short t) |
void | lvsceval (spLVector x, const char *op, long t) |
spLVector | xlvsceval (spLVector x, const char *op, long t) |
void | fvsceval (spFVector x, const char *op, float t) |
spFVector | xfvsceval (spFVector x, const char *op, float t) |
void | dvsceval (spDVector x, const char *op, double t) |
spDVector | xdvsceval (spDVector x, const char *op, double t) |
spLVector | xsvscfind (spSVector x, const char *op, short t) |
spLVector | xlvscfind (spLVector x, const char *op, long t) |
spLVector | xfvscfind (spFVector x, const char *op, float t) |
spLVector | xdvscfind (spDVector x, const char *op, double t) |
spSVector | xsvscfindv (spSVector x, const char *op, short t) |
spLVector | xlvscfindv (spLVector x, const char *op, long t) |
spFVector | xfvscfindv (spFVector x, const char *op, float t) |
spDVector | xdvscfindv (spDVector x, const char *op, double t) |
Element Reorder (<sp/voperate.h>) | |
spSVector | xsvremap (spSVector x, spLVector map) |
spLVector | xlvremap (spLVector x, spLVector map) |
spFVector | xfvremap (spFVector x, spLVector map) |
spDVector | xdvremap (spDVector x, spLVector map) |
Element Extraction (<sp/voperate.h>) | |
spLVector | xsvfind (spSVector x) |
spLVector | xlvfind (spLVector x) |
spLVector | xfvfind (spFVector x) |
spLVector | xdvfind (spDVector x) |
spSVector | xsvfindv (spSVector x) |
spLVector | xlvfindv (spLVector x) |
spFVector | xfvfindv (spFVector x) |
spDVector | xdvfindv (spDVector x) |
Executes an element-wise arithmetic operation of two input vectors.
[in,out] | a | The first input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
Executes an element-wise arithmetic operation of two input vectors. The memory of the returned vector must be deallocated.
[in] | a | The first input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
void svscoper | ( | spSVector | a, |
const char * | op, | ||
double | t ) |
Executes an arithmetic operation between each element of the input vector and the input scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
Executes an arithmetic operation between each element of the input vector and the input scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
void svcplxoper | ( | spSVector | a, |
const char * | op, | ||
double | tr, | ||
double | ti ) |
Executes an arithmetic operation between each element of the input vector and the input complex scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . If this vector doesn't have the imaginary part, the memory of the imaginary part will be allocated automatically. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an arithmetic operation between each element of the input vector and the input complex scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an element-wise arithmetic operation of two input vectors.
[in,out] | a | The first input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
Executes an element-wise arithmetic operation of two input vectors. The memory of the returned vector must be deallocated.
[in] | a | The first input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
void lvscoper | ( | spLVector | a, |
const char * | op, | ||
double | t ) |
Executes an arithmetic operation between each element of the input vector and the input scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
Executes an arithmetic operation between each element of the input vector and the input scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
void lvcplxoper | ( | spLVector | a, |
const char * | op, | ||
double | tr, | ||
double | ti ) |
Executes an arithmetic operation between each element of the input vector and the input complex scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . If this vector doesn't have the imaginary part, the memory of the imaginary part will be allocated automatically. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an arithmetic operation between each element of the input vector and the input complex scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an element-wise arithmetic operation of two input vectors.
[in,out] | a | The first input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
Executes an element-wise arithmetic operation of two input vectors. The memory of the returned vector must be deallocated.
[in] | a | The first input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
void fvscoper | ( | spFVector | a, |
const char * | op, | ||
float | t ) |
Executes an arithmetic operation between each element of the input vector and the input scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
Executes an arithmetic operation between each element of the input vector and the input scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
void fvcplxoper | ( | spFVector | a, |
const char * | op, | ||
float | tr, | ||
float | ti ) |
Executes an arithmetic operation between each element of the input vector and the input complex scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . If this vector doesn't have the imaginary part, the memory of the imaginary part will be allocated automatically. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an arithmetic operation between each element of the input vector and the input complex scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an element-wise arithmetic operation of two input vectors.
[in,out] | a | The first input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
Executes an element-wise arithmetic operation of two input vectors. The memory of the returned vector must be deallocated.
[in] | a | The first input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the input vectors will be reversed if "!" is specified before the operator. For example, "!/" divides each element of b by the corresponding element of a . |
[in] | b | The second input vector. |
void dvscoper | ( | spDVector | a, |
const char * | op, | ||
double | t ) |
Executes an arithmetic operation between each element of the input vector and the input scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
Executes an arithmetic operation between each element of the input vector and the input scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar t by each element of a . |
[in] | t | The input scalar. |
void dvcplxoper | ( | spDVector | a, |
const char * | op, | ||
double | tr, | ||
double | ti ) |
Executes an arithmetic operation between each element of the input vector and the input complex scalar.
[in,out] | a | The input vector. The computed result for each element overwrites the input element of a . If this vector doesn't have the imaginary part, the memory of the imaginary part will be allocated automatically. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Executes an arithmetic operation between each element of the input vector and the input complex scalar. The memory of the returned vector must be deallocated.
[in] | a | The input vector. |
[in] | op | A null-terminated string indicating the type of the operator. "+", "-", "*", "/" and "^" correspond to addition, subtraction, multiplication, division and power respectively. Moreover, the order of the inputs will be reversed if "!" is specified before the operator. For example, "!/" divides the scalar tr + j * ti by each element of a . |
[in] | tr | The real part of the input scalar. |
[in] | ti | The imaginary part of the input scalar. |
Reorders the elements of the input vector x
according to map
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | map | The 0-based index vector indicating mapping from the index of the input vector to that of the generated vector. |
Reorders the elements of the input vector x
according to map
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | map | The 0-based index vector indicating mapping from the index of the input vector to that of the generated vector. |
Reorders the elements of the input vector x
according to map
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | map | The 0-based index vector indicating mapping from the index of the input vector to that of the generated vector. |
Reorders the elements of the input vector x
according to map
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | map | The 0-based index vector indicating mapping from the index of the input vector to that of the generated vector. |
Extracts the indices of nonzero elements of x
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the indices of nonzero elements of x
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the indices of nonzero elements of x
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the indices of nonzero elements of x
. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the elements of x
which have a nonzero value. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the elements of x
which have a nonzero value. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the elements of x
which have a nonzero value. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
Extracts the elements of x
which have a nonzero value. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
void svsceval | ( | spSVector | x, |
const char * | op, | ||
short | t ) |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise.
[in,out] | x | The input vector. The computed result for each element overwrites the input element of x . |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
void lvsceval | ( | spLVector | x, |
const char * | op, | ||
long | t ) |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise.
[in,out] | x | The input vector. The computed result for each element overwrites the input element of x . |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
void fvsceval | ( | spFVector | x, |
const char * | op, | ||
float | t ) |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise.
[in,out] | x | The input vector. The computed result for each element overwrites the input element of x . |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
void dvsceval | ( | spDVector | x, |
const char * | op, | ||
double | t ) |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise.
[in,out] | x | The input vector. The computed result for each element overwrites the input element of x . |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and resets the value of the element to 1 if the relation is true, or 0 otherwise. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the indices where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the indices where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the indices where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the indices where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the elements where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the elements where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the elements where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |
Executes a relational operation between each element of the input vector and the input scalar, and extracts the elements where the relation is true. The memory of the returned vector must be deallocated.
[in] | x | The input vector. |
[in] | op | A null-terminated string indicating the type of the relational operator. "<=", "<", ">=", ">", "==" and "!=" correspond to "less than", "less than or equal to", "greater than", "greater than or equal to", "equal to" and "not equal to" power respectively. |
[in] | t | The input scalar. |