#include <Vector.h>
Public Member Functions | |
Vector (void) | |
Vector (int) | |
Vector (int, const Type &) | |
Vector (const char *) | |
Vector (const Vector &) | |
virtual | ~Vector (void) |
Vector & | operator= (const Vector &) |
Type & | operator[] (int) |
const Type & | operator[] (int) const |
Vector< Type > | operator+ (const Type &) const |
Vector< Type > | operator+ (const Vector< Type > &) const |
Vector< Type > | operator- (const Type &) const |
Vector< Type > | operator- (const Vector< Type > &) const |
Vector< Type > | operator* (const Type &) const |
Vector< Type > | operator* (const Vector< Type > &) const |
Vector< Type > | operator/ (const Type &) const |
Vector< Type > | operator/ (const Vector< Type > &) const |
void | operator+= (const Type &) const |
void | operator+= (const Vector< Type > &) const |
void | operator-= (const Type &) const |
void | operator-= (const Vector< Type > &) const |
void | operator*= (const Type &) const |
void | operator*= (const Vector< Type > &) const |
void | operator/= (const Type &) const |
void | operator/= (const Vector< Type > &) const |
bool | operator== (const Vector< Type > &) const |
bool | operator== (const Type &) const |
bool | operator!= (const Vector< Type > &) const |
bool | operator!= (const Type &) const |
bool | operator> (const Vector< Type > &) const |
bool | operator> (const Type &) const |
bool | operator< (const Vector< Type > &) const |
bool | operator< (const Type &) const |
bool | operator>= (const Vector< Type > &) const |
bool | operator>= (const Type &) const |
bool | operator<= (const Vector< Type > &) const |
bool | operator<= (const Type &) const |
Type * | begin () const |
Type * | end () const |
int | get_size (void) const |
bool | get_display (void) const |
void | set (void) |
void | set (int) |
void | set (int, const Type &) |
void | set (const Vector &) |
void | set (const char *) |
void | set_size (int) |
void | set_size (int, const Type &) |
void | set_display (bool) |
void | resize (int) |
bool | is_zero (void) const |
void | insert (int, const Vector< Type > &) const |
Vector< Type > | extract (int, int) const |
Vector< Type > | assemble (const Vector< Type > &) const |
void | initialize (const Type &) const |
void | initialize_sequential (void) const |
void | initialize_uniform (void) const |
void | initialize_uniform (double, double) const |
void | initialize_uniform (const Vector< double > &, const Vector< double > &) const |
void | initialize_normal (void) const |
void | initialize_normal (double, double) const |
void | initialize_normal (const Vector< double > &, const Vector< double > &) const |
Type | dot (const Vector< Type > &) const |
Vector< Type > | dot (const Matrix< Type > &) const |
Matrix< Type > | outer (const Vector< Type > &) const |
Type | calculate_sum (void) const |
Type | calculate_product (void) const |
double | calculate_mean (void) const |
double | calculate_standard_deviation (void) const |
Vector< double > | calculate_mean_standard_deviation (void) const |
Type | calculate_minimum (void) const |
Type | calculate_maximum (void) const |
Vector< Type > | calculate_minimum_maximum (void) const |
int | calculate_minimal_index (void) const |
int | calculate_maximal_index (void) const |
Vector< int > | calculate_minimal_maximal_index (void) const |
double | calculate_norm (void) const |
Vector< Type > | calculate_lower_bounded (const Type &) const |
Vector< Type > | calculate_lower_bounded (const Vector< Type > &) const |
Vector< Type > | calculate_upper_bounded (const Type &) const |
Vector< Type > | calculate_upper_bounded (const Vector< Type > &) const |
Vector< Type > | calculate_lower_upper_bounded (const Type &, const Type &) const |
Vector< Type > | calculate_lower_upper_bounded (const Vector< Type > &, const Vector< Type > &) const |
void | apply_lower_bound (const Type &) |
void | apply_lower_bound (const Vector< Type > &) |
void | apply_upper_bound (const Type &) |
void | apply_upper_bound (const Vector< Type > &) |
void | apply_lower_upper_bounds (const Type &, const Type &) |
void | apply_lower_upper_bounds (const Vector< Type > &, const Vector< Type > &) |
std::string | to_XML (bool) |
void | save (const char *) |
void | save_data (const char *) |
void | load (const char *) |
void | load_data (const char *) |
Definition at line 40 of file Vector.h.
Flood::Vector< Type >::Vector | ( | void | ) | [inline, explicit] |
Flood::Vector< Type >::Vector | ( | int | new_size | ) | [inline, explicit] |
Flood::Vector< Type >::Vector | ( | int | new_size, | |
const Type & | value | |||
) | [inline, explicit] |
Flood::Vector< Type >::Vector | ( | const char * | filename | ) | [inline, explicit] |
Flood::Vector< Type >::Vector | ( | const Vector< Type > & | other_vector | ) | [inline] |
Flood::Vector< Type >::~Vector | ( | void | ) | [inline, virtual] |
Vector< Type > Flood::Vector< Type >::assemble | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Type * Flood::Vector< Type >::begin | ( | void | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_lower_bounded | ( | const Vector< Type > & | lower_bound | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_lower_bounded | ( | const Type & | lower_bound | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_lower_upper_bounded | ( | const Vector< Type > & | lower_bound, | |
const Vector< Type > & | upper_bound | |||
) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_lower_upper_bounded | ( | const Type & | lower_bound, | |
const Type & | upper_bound | |||
) | const [inline] |
int Flood::Vector< Type >::calculate_maximal_index | ( | void | ) | const [inline] |
Type Flood::Vector< Type >::calculate_maximum | ( | void | ) | const [inline] |
double Flood::Vector< Type >::calculate_mean | ( | void | ) | const [inline] |
Vector< double > Flood::Vector< Type >::calculate_mean_standard_deviation | ( | void | ) | const [inline] |
int Flood::Vector< Type >::calculate_minimal_index | ( | void | ) | const [inline] |
Vector< int > Flood::Vector< Type >::calculate_minimal_maximal_index | ( | void | ) | const [inline] |
Type Flood::Vector< Type >::calculate_minimum | ( | void | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_minimum_maximum | ( | void | ) | const [inline] |
double Flood::Vector< Type >::calculate_norm | ( | void | ) | const [inline] |
Type Flood::Vector< Type >::calculate_product | ( | void | ) | const [inline] |
double Flood::Vector< Type >::calculate_standard_deviation | ( | void | ) | const [inline] |
Type Flood::Vector< Type >::calculate_sum | ( | void | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_upper_bounded | ( | const Vector< Type > & | upper_bound | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::calculate_upper_bounded | ( | const Type & | upper_bound | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::dot | ( | const Matrix< Type > & | matrix | ) | const [inline] |
Type Flood::Vector< Type >::dot | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Type * Flood::Vector< Type >::end | ( | void | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::extract | ( | int | position, | |
int | other_size | |||
) | const [inline] |
bool Flood::Vector< Type >::get_display | ( | void | ) | const [inline] |
int Flood::Vector< Type >::get_size | ( | void | ) | const [inline] |
void Flood::Vector< Type >::initialize | ( | const Type & | value | ) | const [inline] |
void Flood::Vector< Type >::initialize_normal | ( | const Vector< double > & | mean, | |
const Vector< double > & | standard_deviation | |||
) | const [inline] |
This method assigns random values to each element in the vector. These are taken from normal distributions with given means and standard deviations for each element.
mean | Mean values of normal distributions. | |
standard_deviation | Standard deviation values of normal distributions. |
void Flood::Vector< Type >::initialize_normal | ( | double | mean, | |
double | standard_deviation | |||
) | const [inline] |
This method assigns random values to each element in the vector. These are taken from a normal distribution with single mean and standard deviation values for all the elements.
mean | Mean value of uniform distribution. | |
standard_deviation | Standard deviation value of uniform distribution. |
void Flood::Vector< Type >::initialize_normal | ( | void | ) | const [inline] |
void Flood::Vector< Type >::initialize_sequential | ( | void | ) | const [inline] |
void Flood::Vector< Type >::initialize_uniform | ( | const Vector< double > & | minimum, | |
const Vector< double > & | maximum | |||
) | const [inline] |
void Flood::Vector< Type >::initialize_uniform | ( | double | minimum, | |
double | maximum | |||
) | const [inline] |
void Flood::Vector< Type >::initialize_uniform | ( | void | ) | const [inline] |
void Flood::Vector< Type >::insert | ( | int | position, | |
const Vector< Type > & | other_vector | |||
) | const [inline] |
bool Flood::Vector< Type >::is_zero | ( | void | ) | const [inline] |
void Flood::Vector< Type >::load | ( | const char * | filename | ) | [inline] |
void Flood::Vector< Type >::load_data | ( | const char * | filename | ) | [inline] |
bool Flood::Vector< Type >::operator!= | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator!= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator* | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator* | ( | const Type & | scalar | ) | const [inline] |
void Flood::Vector< Type >::operator*= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
void Flood::Vector< Type >::operator*= | ( | const Type & | value | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator+ | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator+ | ( | const Type & | scalar | ) | const [inline] |
void Flood::Vector< Type >::operator+= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
void Flood::Vector< Type >::operator+= | ( | const Type & | value | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator- | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator- | ( | const Type & | scalar | ) | const [inline] |
void Flood::Vector< Type >::operator-= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
void Flood::Vector< Type >::operator-= | ( | const Type & | value | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator/ | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Vector< Type > Flood::Vector< Type >::operator/ | ( | const Type & | scalar | ) | const [inline] |
void Flood::Vector< Type >::operator/= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
void Flood::Vector< Type >::operator/= | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator< | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator< | ( | const Vector< Type > & | other_vector | ) | const [inline] |
bool Flood::Vector< Type >::operator<= | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator<= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Less than or equal to relational operator between this vector and other vector. It produces true if all the elements of this vector are less than or equal to the corresponding elements of the other vector, and false otherwise.
other_vector | vector to be compared with. |
Vector< Type > & Flood::Vector< Type >::operator= | ( | const Vector< Type > & | other_vector | ) | [inline] |
bool Flood::Vector< Type >::operator== | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator== | ( | const Vector< Type > & | other_vector | ) | const [inline] |
bool Flood::Vector< Type >::operator> | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator> | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Greater than relational operator between this vector and other vector. It produces true if all the elements of this vector are greater than the corresponding elements of the other vector, and false otherwise.
other_vector | vector to be compared with. |
bool Flood::Vector< Type >::operator>= | ( | const Type & | value | ) | const [inline] |
bool Flood::Vector< Type >::operator>= | ( | const Vector< Type > & | other_vector | ) | const [inline] |
Greater than or equal to relational operator between this vector and other vector. It produces true if all the elements of this vector are greater than or equal to the corresponding elements of the other vector, and false otherwise.
other_vector | vector to be compared with. |
const Type & Flood::Vector< Type >::operator[] | ( | int | i | ) | const [inline] |
Type & Flood::Vector< Type >::operator[] | ( | int | i | ) | [inline] |
Matrix< Type > Flood::Vector< Type >::outer | ( | const Vector< Type > & | other_vector | ) | const [inline] |
void Flood::Vector< Type >::resize | ( | int | new_size | ) | [inline] |
void Flood::Vector< Type >::save | ( | const char * | filename | ) | [inline] |
void Flood::Vector< Type >::save_data | ( | const char * | filename | ) | [inline] |
void Flood::Vector< Type >::set | ( | const char * | filename | ) | [inline] |
void Flood::Vector< Type >::set | ( | const Vector< Type > & | other_vector | ) | [inline] |
void Flood::Vector< Type >::set | ( | int | new_size, | |
const Type & | new_value | |||
) | [inline] |
void Flood::Vector< Type >::set | ( | int | new_size | ) | [inline] |
void Flood::Vector< Type >::set | ( | void | ) | [inline] |
void Flood::Vector< Type >::set_display | ( | bool | new_display | ) | [inline] |
void Flood::Vector< Type >::set_size | ( | int | new_size, | |
const Type & | new_value | |||
) | [inline] |
void Flood::Vector< Type >::set_size | ( | int | new_size | ) | [inline] |
std::string Flood::Vector< Type >::to_XML | ( | bool | show_declaration | ) | [inline] |