AgxVector * agx_vector_new(int size)
create an empty vector with a certain size
double agx_vector_min(AgxVector *vec)
looking for the minimum value of vector
int agx_vector_copy_elements(AgxVector *src, AgxVector *target)
copy all elements of a vector to a target vector
void agx_vector_delete(AgxVector **vec)
delete vector
int agx_vector_isexist(AgxVector *vec, int idx1, int idx2, double val)
checking a value is exist on the vector in a certain indexes range
char * p_vectorString_t
vector string typedef
Definition: vector.h:19
int size
length of array
Definition: vector.h:31
int agx_vector_sort(AgxVector *vec)
sorting the elements of vector from minimum to maximum
int agx_vector_substract_by_value(AgxVector *vec, double val)
substracting all elements of vector by a value
void agx_sin(double *val)
the double sinus
void agx_vector_sin(AgxVector *vec)
the sinus of each element of the vector
AgxVector * agx_vector_new_from_array(double *ndarray_in, int size)
create a new vector from C array
int agx_vector_add_by_value(AgxVector *vec, double val)
adding all elements of vector by a value
int agx_vector_print(AgxVector *vec, int islong)
print vector in the console
AgxVector * agx_vector_new_copy(AgxVector *vec)
create agx_vector_new by copying another vector
int agx_vector_print_partial(AgxVector *vec)
print the partial of vector
AgxVector * agx_vector_new_linspace(double min, double max, int size)
create a new range vector by using the size value
creating vector data type in this library
Definition: vector.h:27
int agx_vector_divide_by_value(AgxVector *vec, double val)
dividing all elements of vector by a value
void agx_vector_to_array(AgxVector *vec, double **ndarray_out, int *size)
passing the array reference to ndarray_out
void agx_vector_input_function(AgxVector *vec, void(*function)(double *))
change each element of vector based on a certain function
double * p_r_nums
array of vector
Definition: vector.h:29
p_vectorString_t agx_vector_to_string(AgxVector *vec, int islong)
convert vector to string using malloc
AgxVector * agx_vector_new_random(int size, double min, double max)
create a vector with random values
AgxVector * agx_vector_new_constant(int size, double val)
create agx_vector_new with a constant value
int agx_vector_change_elements_by_value(AgxVector *vec, double val)
changing all elements of vector by a value
AgxVector * agx_vector_new_arange_double(double min, double step, double max)
create a new range vector using the interval value
struct s_vector AgxVector
creating vector data type in this library
AgxVector * agx_vector_new_values(double *array, int size)
create a vector from C array
double agx_vector_max(AgxVector *vec)
looking for the maximum value of vector
AgxVector * agx_vector_new_duplicate_size(AgxVector *vec)
create agx_vector_new by using the size of another vector
int agx_vector_multiply_by_value(AgxVector *vec, double val)
multiplying all elements of vector by a value
int agx_vector_get_item(AgxVector *vec, int index, double *output)
get value in a certain element of vector
int agx_vector_append_value(AgxVector *vec, double val)
append vector with a value in the end of vector array
AgxVector * agx_vector_new_zero(int size)
create agx_vector_new_constant with zero value
int agx_vector_set_item(AgxVector *vec, int index, double val)
set value in a certain element of vector
int agx_vector_print_full(AgxVector *vec)
print the full of vector
AgxVector * agx_vector_new_arange(int min, int step, int max)
create a new range vector using the interval value
int agx_vector_append_vector(AgxVector *vec_target, AgxVector *vec_another)
append vector with another vector and overwriting