IMP
2.0.0
The Integrative Modeling Platform
|
#include <IMP/algebra/VectorD.h>
Public Member Functions | |
VectorInputD (const VectorD< D > &v) | |
VectorInputD (const Floats &v) | |
Public Member Functions inherited from IMP::algebra::VectorD< D > | |
VectorD (const Floats &f) | |
template<class It > | |
VectorD (It b, It e) | |
VectorD (double x) | |
Initialize the 1-vector from its value. | |
VectorD (double x, double y) | |
Initialize a 2-vector from separate x,y values. | |
VectorD (double x, double y, double z) | |
Initialize a 3-vector from separate x,y,z values. | |
VectorD (double x0, double x1, double x2, double x3) | |
Initialize a 4-vector from separate w,x,y,z values. | |
VectorD () | |
Default constructor. | |
CoordinateIterator | coordinates_begin () |
CoordinateConstIterator | coordinates_begin () const |
CoordinateIterator | coordinates_end () |
CoordinateConstIterator | coordinates_end () const |
Floats | get_coordinates () const |
unsigned int | get_dimension () const |
double | get_magnitude () const |
double | get_scalar_product (const VectorD< D > &o) const |
double | get_squared_magnitude () const |
VectorD | get_unit_vector () const |
double | operator[] (unsigned int i) const |
double & | operator[] (unsigned int i) |
Additional Inherited Members | |
Public Types inherited from IMP::algebra::VectorD< D > | |
typedef const double * | CoordinateConstIterator |
typedef double * | CoordinateIterator |
Related Functions inherited from IMP::algebra::VectorD< D > | |
template<int D> | |
int | compare (const VectorD< D > &a, const VectorD< D > &b) |
lexicographic comparison of two vectors More... | |
template<int D> | |
VectorD< D > | get_basis_vector_d (unsigned int coordinate) |
Return the basis vector for the given coordinate. More... | |
template<int D> | |
double | get_distance (const VectorD< D > &v1, const VectorD< D > &v2) |
compute the distance between two vectors | |
template<int D> | |
VectorD< D > | get_elementwise_product (const algebra::VectorD< D > &a, const algebra::VectorD< D > &b) |
template<int D> | |
VectorD< D > | get_elementwise_product (const Ints &a, const algebra::VectorD< D > &b) |
template<int D> | |
double | get_squared_distance (const VectorD< D > &v1, const VectorD< D > &v2) |
compute the squared distance between two vectors | |
template<int D> | |
const VectorD< D > & | get_vector_d_geometry (const VectorD< D > &g) |
template<int D> | |
VectorD< D > | operator* (double s, const VectorD< D > &o) |
template<int D> | |
void | set_vector_d_geometry (VectorD< D > &g, const VectorD< D > &v) |
void | write_pts (const Vector3Ds &vs, base::TextOutput out) |
Write a set of 3D vectors to a file. More... | |
Vector3Ds | read_pts (base::TextInput input) |
Read a set of 3D vectors from a file. More... | |
template<int D> | |
VectorD< D > | get_random_vector_in (const BoundingBoxD< D > &bb) |
Generate a random vector in a box with uniform density. | |
template<int D> | |
VectorD< D > | get_random_vector_on (const BoundingBoxD< D > &bb) |
Generate a random vector on a box with uniform density. | |
Vector3Ds | get_uniform_surface_cover (const SpherePatch3D &sph, unsigned int number_of_points) |
Generate a set of 3d points that uniformly cover a patch of a sphere. More... | |
A class to flexibly accept vectors as inputs to functions.