7 #ifndef IMPALGEBRA_VECTOR_D_H
8 #define IMPALGEBRA_VECTOR_D_H
10 #include <IMP/algebra/algebra_config.h>
13 IMPALGEBRA_BEGIN_NAMESPACE
26 using IMP::get_l2_norm;
27 using IMP::get_l1_norm;
28 using IMP::get_linf_norm;
50 IMPALGEBRA_END_NAMESPACE
VectorD< D > get_basis_vector_kd(int Di, unsigned int coordinate)
Return the basis vector for the given coordinate.
void set_vector_geometry(Particle *p, const algebra::Vector3D &v)
A Cartesian vector in D-dimensions.
VectorD< D > get_ones_vector_kd(unsigned int Di, double v=1)
Return a vector of ones (or another constant)
Vector< VectorD< 6 > > Vector6Ds
VectorD< D > get_zero_vector_d()
Return a vector of zeros.
VectorD< D > get_zero_vector_kd(int Di)
Return a dynamically sized vector of zeros.
VectorD< D > get_elementwise_product(const VectorD< D > &a, const VectorD< D > &b)
Return the vector that is the elementwise product of the two.
Vector< VectorD< 5 > > Vector5Ds
Vector< VectorD<-1 > > VectorKDs
VectorD< D > get_ones_vector_d(double v=1)
Return a vector of ones (or another constant)
double get_squared_distance(const VectorD< D > &v1, const VectorD< D > &v2)
Compute the squared distance between two vectors.
double get_distance(const VectorD< D > &v1, const VectorD< D > &v2)
Compute the distance between two vectors.
Vector< VectorD< 2 > > Vector2Ds
Vector< VectorD< 3 > > Vector3Ds
const algebra::Vector3D & get_vector_geometry(Particle *p)
VectorD< D > get_basis_vector_d(unsigned int coordinate)
Return the basis vector for the given coordinate.
Vector< VectorD< 4 > > Vector4Ds
Vector< VectorD< 1 > > Vector1Ds