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