RDKit: Vector.h File Reference

| RDKit Open-source cheminformatics and machine learning.

Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
Vector.h File Reference
`#include <RDGeneral/export.h>`
`#include <RDGeneral/Invariant.h>`
`#include <RDGeneral/utils.h>`
`#include <cmath>`
`#include <iomanip>`
`#include <cstdlib>`
`#include <cstring>`
`#include <ctime>`
`#include <memory>`
`#include <boost/random.hpp>`

Go to the source code of this file.

## Classes
class | RDNumeric::Vector< TYPE >
| A class to represent vectors of numbers. More...

## Namespaces
namespace | RDNumeric

## Typedefs
typedef Vector< double > | RDNumeric::DoubleVector

## Functions
template<typename T>
constexpr double | RDNumeric::TanimotoSimilarity (const Vector< T > &v1, const Vector< T > &v2)
| returns the algebraic tanimoto similarity [defn' from JCIM 46:587-96 (2006)]
template<typename TYPE>
constexpr std::ostream & | operator<< (std::ostream &target, const RDNumeric::Vector< TYPE > &vec)
| ostream operator for Vectors

## Variables
static constexpr double | zero_tolerance = 1.e-16

## Function Documentation

## ◆ operator<<()

template<typename TYPE>

std::ostream & operator<< | ( | std::ostream & | target,
|  | const RDNumeric::Vector< TYPE > & | vec )
| constexpr

ostream operator for Vectors

Definition at line 315 of file Vector.h.

References RDNumeric::Vector< TYPE >::getVal(), and RDNumeric::Vector< TYPE >::size().

## Variable Documentation

## ◆ zero_tolerance

double zero_tolerance = 1.e-16
| staticconstexpr

Definition at line 24 of file Vector.h.

Referenced by RDGeom::Point2D::normalize(), RDGeom::Point3D::normalize(), RDNumeric::Vector< double >::normalize(), RDGeom::Point2D::signedAngleTo(), and RDGeom::Point3D::signedAngleTo().