Fulguro Logo Support This Project

Vector manipulations
[Core]


Detailed Description

Functions to create and manipulate Vector.


Data Structures

struct  FLGR_Vector

Functions

FLGR_Ret flgr_vector_abs (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_acos (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_add (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_addsat (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_and (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_asin (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_atan (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_atan2 (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_ceil (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_clear (FLGR_Vector *vct)
FLGR_Ret flgr_vector_cmove (FLGR_Vector *vctdest, FLGR_Vector *vctcmp, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_cmp_eq (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_cmp_ge (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_cmp_gt (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_cmp_le (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_cmp_lt (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_cmp_ne (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_copy (FLGR_Vector *vctdest, FLGR_Vector *vctsrc)
FLGR_Ret flgr_vector_cos (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Vectorflgr_vector_create (int spp, FLGR_Type type)
FLGR_Ret flgr_vector_destroy (FLGR_Vector *vct)
FLGR_Ret flgr_vector_div (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
int flgr_vector_equal (FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_export_raw (void *raw_dest, FLGR_Vector *vctsrc)
FLGR_Ret flgr_vector_floor (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_get_element (FLGR_Vector *vct, int index, void *value)
FLGR_Ret flgr_vector_import_raw (FLGR_Vector *vctdest, void *raw_src)
FLGR_Ret flgr_vector_import_string (FLGR_Vector *vctdest, char *string_src)
FLGR_Ret flgr_vector_inf (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_invert (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_is_same_spp (FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_is_same_type (FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_is_type_valid (FLGR_Vector *vct)
int flgr_vector_is_zero (FLGR_Vector *vct)
FLGR_Ret flgr_vector_logb (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_mult (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_multsat (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_nand (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_nor (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_not (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_nxor (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_or (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_populate_from_scalar (FLGR_Vector *vctdest, void *scalar)
FLGR_Ret flgr_vector_populate_from_string (FLGR_Vector *vctdest, char *string_val)
FLGR_Ret flgr_vector_powb (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_revert_element (FLGR_Vector *vctdest, FLGR_Vector *vctsrc)
FLGR_Ret flgr_vector_set_element (FLGR_Vector *vct, int index, void *value)
FLGR_Ret flgr_vector_sin (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_sqrt (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_square (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_sub (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_subsat (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_sup (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)
FLGR_Ret flgr_vector_tan (FLGR_Vector *vctdest, FLGR_Vector *vct1)
FLGR_Ret flgr_vector_xor (FLGR_Vector *vctdest, FLGR_Vector *vct1, FLGR_Vector *vct2)


Function Documentation

FLGR_Ret flgr_vector_abs ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute abs element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1680 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_acos ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute acos element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1935 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_add ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute add element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 750 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_addsat ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute addsat element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1063 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_and ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute and element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 366 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_asin ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute asin element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2001 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_atan ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute atan element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2066 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_atan2 ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute atan2 element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1300 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_ceil ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute ceil element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2196 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_clear ( FLGR_Vector vct  ) 

Clear all vector elements (set to 0)

Parameters:
vct : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 119 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_cmove ( FLGR_Vector vctdest,
FLGR_Vector vctcmp,
FLGR_Vector vct1 
)

Conditional Copy of element regarding flags

dest[k] = (cmp[k] != 0) ? vct1[k] : dest[k]

Parameters:
vctdest : pointer to FLGR_Vector
vctcmp : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2911 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_eq ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store results in a vector

dest[k] = (vct1[k] == vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2478 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_ge ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store resuges in a vector

dest[k] = (vct1[k] >= vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2812 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_gt ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store results in a vector

dest[k] = (vct1[k] > vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2561 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_le ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store resules in a vector

dest[k] = (vct1[k] <= vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2729 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_lt ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store results in a vector

dest[k] = (vct1[k] < vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2645 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_cmp_ne ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compare two vectors and store results in a vector

dest[k] = (vct1[k] != vct2[k]) ? MAX_TYPE : 0

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2395 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_copy ( FLGR_Vector vctdest,
FLGR_Vector vctsrc 
)

Copy a vector. If vectors types are differents, a cast will be made, but no normalization

Parameters:
vctdest : pointer to a FLGR_Vector
vctsrc : pointer to a FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1551 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_cos ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute cos element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1744 of file flgrCoreArithVector.c.

FLGR_Vector* flgr_vector_create ( int  spp,
FLGR_Type  type 
)

Allocate Vector Structure

Parameters:
spp : Vector Size (number of elements)
type : type of vector elements
Returns:
pointer to FLGR_Vector or NULL if allocation failed
Examples:
example4.c, and multithread_watershed.c.

Definition at line 52 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_destroy ( FLGR_Vector vct  ) 

Destroy Vector Structure

Parameters:
vct : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...
Examples:
example4.c, and multithread_watershed.c.

Definition at line 90 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_div ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute div element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 986 of file flgrCoreArithVector.c.

int flgr_vector_equal ( FLGR_Vector vct1,
FLGR_Vector vct2 
)

Check if two vector are equal

if vectors have different spp or types, the result will be FLGR_FALSE

Parameters:
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_FALSE, FLGR_TRUE

Definition at line 922 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_export_raw ( void *  raw_dest,
FLGR_Vector vctsrc 
)

Copy vector to Vector array

Number of element in raw must correspond to number of element in the vector

Parameters:
vctsrc : pointer to FLGR_Vector
raw_dest : pointer to raw array, type must fit with vector type
Returns:
FLGR_RET_OK, ...

Definition at line 594 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_floor ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute floor element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2130 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_get_element ( FLGR_Vector vct,
int  index,
void *  value 
)

Get one element inside a vector

Parameters:
vct : pointer to FLGR_Vector
index : index of the element
value : pointer to an allocated variable with the right type regarding vct->type
Returns:
FLGR_RET_OK, ...

Definition at line 180 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_import_raw ( FLGR_Vector vctdest,
void *  raw_src 
)

Copy raw to Vector array

Number of element in raw must correspond to number of element in the vector

Parameters:
vctdest : pointer to FLGR_Vector
raw_src : pointer to raw array with the right type regarding vector type
Returns:
FLGR_RET_OK, ...

Definition at line 432 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_import_string ( FLGR_Vector vctdest,
char *  string_src 
)

Copy string (populated with decimal numbers) to the vector

Example : flgr_vector_import_string(vct, "10.3 11 12") will put elements [10.3, 11, 12] in the vector float array

Parameters:
vctdest : pointer to FLGR_Vectortype of vector elements
string_src : string
Returns:
FLGR_RET_OK, ...

Definition at line 510 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_inf ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute inf element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 131 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_invert ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute invert (a better name could be opposite) element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1615 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_is_same_spp ( FLGR_Vector vct1,
FLGR_Vector vct2 
)

Check if two vectors have same Sample Per Pixel

Parameters:
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1004 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_is_same_type ( FLGR_Vector vct1,
FLGR_Vector vct2 
)

Check if two vectors have same type

Parameters:
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 978 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_is_type_valid ( FLGR_Vector vct  ) 

Check if a vector type is valid

Parameters:
vct : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 946 of file flgrCoreVector.c.

int flgr_vector_is_zero ( FLGR_Vector vct  ) 

Return true if all vector elements are equal to zero

Parameters:
vct : pointer to FLGR_Vector
Returns:
FLGR_FALSE, FLGR_TRUE

Definition at line 841 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_logb ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute logb element by element over two FLGR_Vector

Each Element of vct2 represent the base for the corresponding element of vct1

vctdest[k] = logb(vct1[k], vct2[k])

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1386 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_mult ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute mult element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 907 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_multsat ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute multsat element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1221 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_nand ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute nand element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 289 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_nor ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute nor element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 519 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_not ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute not element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1550 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_nxor ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute nxor element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 673 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_or ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute or element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 444 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_populate_from_scalar ( FLGR_Vector vctdest,
void *  scalar 
)

Copy a scalar in each elements of a vector

Parameters:
vctdest : pointer to FLGR_Vector
scalar : pointer to scalar, type must fit with vector type
Returns:
FLGR_RET_OK, ...

Definition at line 662 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_populate_from_string ( FLGR_Vector vctdest,
char *  string_val 
)

convert a string to the right type and copy it to each elements of a vector

Parameters:
vctdest : pointer to FLGR_Vector
string_val : pointer to string
Returns:
FLGR_RET_OK, ...
Examples:
example4.c, and multithread_watershed.c.

Definition at line 719 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_powb ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute powb element by element over two FLGR_Vector

Each Element of vct2 represent the power for the corresponding element of vct1

vctdest[k] = powb(vct1[k], vct2[k])

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1470 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_revert_element ( FLGR_Vector vctdest,
FLGR_Vector vctsrc 
)

revert all elements

Parameters:
vctdest : pointer to FLGR_Vector
vctsrc : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 256 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_set_element ( FLGR_Vector vct,
int  index,
void *  value 
)

Set one element inside a vector

Parameters:
vct : pointer to FLGR_Vector
index : index of the element
value : pointer to an allocated variable with the right type regarding vct->type
Returns:
FLGR_RET_OK, ...

Definition at line 338 of file flgrCoreVector.c.

FLGR_Ret flgr_vector_sin ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute sin element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1808 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_sqrt ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute sqrt element by element

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2323 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_square ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute square element by element

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 2259 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_sub ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute sub element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 829 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_subsat ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute subsat element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1143 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_sup ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute sup element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 211 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_tan ( FLGR_Vector vctdest,
FLGR_Vector vct1 
)

Compute tan element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 1872 of file flgrCoreArithVector.c.

FLGR_Ret flgr_vector_xor ( FLGR_Vector vctdest,
FLGR_Vector vct1,
FLGR_Vector vct2 
)

Compute xor element by element over two FLGR_Vector

Parameters:
vctdest : pointer to FLGR_Vector
vct1 : pointer to FLGR_Vector
vct2 : pointer to FLGR_Vector
Returns:
FLGR_RET_OK, ...

Definition at line 596 of file flgrCoreArithVector.c.


SourceForge.net Logo
Generated on Tue Nov 11 19:17:28 2008 for Fulguro by doxygen 1.5.6