IMP
2.1.1
The Integrative Modeling Platform
|
Simple D vector class. More...
#include <IMP/algebra/algebra_config.h>
#include "GeometricPrimitiveD.h"
#include <IMP/base/types.h>
#include <IMP/base/check_macros.h>
#include <IMP/base/exception.h>
#include <IMP/base/utility.h>
#include <IMP/base/InputAdaptor.h>
#include <IMP/base/random.h>
#include "internal/vector.h"
#include <limits>
#include <cmath>
#include <boost/random/normal_distribution.hpp>
#include <boost/static_assert.hpp>
Go to the source code of this file.
Classes | |
class | IMP::algebra::VectorD< D > |
A Cartesian vector in D-dimensions. More... | |
class | IMP::algebra::VectorInputD< D > |
class | IMP::algebra::VectorInputD< 1 > |
Namespaces | |
IMP | |
All IMP::kernel code is brought into the IMP namespace. | |
IMP::algebra | |
See IMP.algebra for more information. | |
Macros | |
#define | IMP_VECTOR_CHECK check_vector() |
#define | IMP_VECTOR_CHECK_COMPATIBLE(o) |
#define | IMP_VECTOR_CHECK_INDEX(i) check_index(i) |
Typedefs | |
typedef VectorD< 1 > | IMP::algebra::Vector1D |
typedef base::Vector< VectorD< 1 > > | IMP::algebra::Vector1Ds |
typedef VectorD< 2 > | IMP::algebra::Vector2D |
typedef base::Vector< VectorD< 2 > > | IMP::algebra::Vector2Ds |
typedef VectorD< 3 > | IMP::algebra::Vector3D |
typedef base::Vector< VectorD< 3 > > | IMP::algebra::Vector3Ds |
typedef VectorD< 4 > | IMP::algebra::Vector4D |
typedef base::Vector< VectorD< 4 > > | IMP::algebra::Vector4Ds |
typedef VectorD< 5 > | IMP::algebra::Vector5D |
typedef base::Vector< VectorD< 5 > > | IMP::algebra::Vector5Ds |
typedef VectorD< 6 > | IMP::algebra::Vector6D |
typedef base::Vector< VectorD< 6 > > | IMP::algebra::Vector6Ds |
typedef VectorInputD< 1 > | IMP::algebra::VectorInput1D |
typedef base::Vector < VectorInputD< 1 > > | IMP::algebra::VectorInput1Ds |
typedef VectorInputD< 2 > | IMP::algebra::VectorInput2D |
typedef base::Vector < VectorInputD< 2 > > | IMP::algebra::VectorInput2Ds |
typedef VectorInputD< 3 > | IMP::algebra::VectorInput3D |
typedef base::Vector < VectorInputD< 3 > > | IMP::algebra::VectorInput3Ds |
typedef VectorInputD< 4 > | IMP::algebra::VectorInput4D |
typedef base::Vector < VectorInputD< 4 > > | IMP::algebra::VectorInput4Ds |
typedef VectorInputD< 5 > | IMP::algebra::VectorInput5D |
typedef base::Vector < VectorInputD< 5 > > | IMP::algebra::VectorInput5Ds |
typedef VectorInputD< 6 > | IMP::algebra::VectorInput6D |
typedef base::Vector < VectorInputD< 6 > > | IMP::algebra::VectorInput6Ds |
typedef VectorInputD<-1 > | IMP::algebra::VectorInputKD |
typedef base::Vector < VectorInputD<-1 > > | IMP::algebra::VectorInputKDs |
typedef VectorD<-1 > | IMP::algebra::VectorKD |
typedef base::Vector< VectorD<-1 > > | IMP::algebra::VectorKDs |
Functions | |
template<int D> | |
int | IMP::algebra::compare (const VectorD< D > &a, const VectorD< D > &b) |
lexicographic comparison of two vectors More... | |
template<int D> | |
VectorD< D > | IMP::algebra::get_basis_vector_d (unsigned int coordinate) |
Return the basis vector for the given coordinate. More... | |
VectorD<-1 > | IMP::algebra::get_basis_vector_kd (int D, unsigned int coordinate) |
Return a dynamically sized basis vector. | |
template<int D> | |
double | IMP::algebra::get_distance (const VectorD< D > &v1, const VectorD< D > &v2) |
compute the distance between two vectors More... | |
template<int D> | |
VectorD< D > | IMP::algebra::get_elementwise_product (const algebra::VectorD< D > &a, const algebra::VectorD< D > &b) |
template<int D> | |
VectorD< D > | IMP::algebra::get_elementwise_product (const Ints &a, const algebra::VectorD< D > &b) |
template<int D> | |
VectorD< D > | IMP::algebra::get_ones_vector_d (double v=1) |
Return a vector of ones (or another constant) | |
template<int D> | |
VectorD< D > | IMP::algebra::get_ones_vector_kd (unsigned int Di, double v=1) |
Return a vector of ones (or another constant) More... | |
template<int D> | |
double | IMP::algebra::get_squared_distance (const VectorD< D > &v1, const VectorD< D > &v2) |
compute the squared distance between two vectors More... | |
template<int D> | |
const VectorD< D > & | IMP::algebra::get_vector_d_geometry (const VectorD< D > &g) |
template<int D> | |
VectorD< D > | IMP::algebra::get_zero_vector_d () |
Return a vector of zeros. | |
template<int D> | |
VectorD< D > | IMP::algebra::get_zero_vector_kd (int Di) |
Return a dynamically sized vector of zeros. | |
template<int D> | |
VectorD< D > | IMP::algebra::operator* (double s, const VectorD< D > &o) |
template<int D> | |
void | IMP::algebra::set_vector_d_geometry (VectorD< D > &g, const VectorD< D > &v) |