![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <RealValueVect.h>
Public Member Functions | |
| RealValueVect ()=default | |
| RealValueVect (unsigned int length) | |
| initialize with a particular size | |
| RealValueVect (unsigned int length, double val) | |
| initialize with a particular size and initial value | |
| RealValueVect (const std::string &pkl) | |
| constructor from a pickle | |
| RealValueVect (const char *pkl, unsigned int len) | |
| constructor from a pickle | |
| double | getVal (unsigned int i) const |
| return the value at an index | |
| double | operator[] (unsigned int idx) const |
| support indexing using [] | |
| void | setVal (unsigned int i, double val) |
| set the value at an index | |
| double | getTotalVal () const |
| returns the sum of all the elements in the vect | |
| unsigned int | getLength () const |
| returns the length | |
| unsigned int | size () const |
| returns the length | |
| bool | compareVectors (const RealValueVect &other) const |
| compares 2 vectors and returns false if different | |
| RealValueVect & | operator&= (const RealValueVect &other) |
| in-place operator& | |
| RealValueVect & | operator|= (const RealValueVect &other) |
| in-place operator| | |
| RealValueVect & | operator+= (const RealValueVect &other) |
| in-place operator+ | |
| RealValueVect & | operator-= (const RealValueVect &other) |
| in-place operator- | |
| std::string | toString () const |
| returns a binary string representation (pickle) | |
| void | setLength (unsigned int sz) |
| void | setToVal (double val) |
| const std::vector< double > & | getData () const |
| std::vector< double > & | getData () |
a class for efficiently storing vectors of double values Has additional features compared to std::vector<double>: construct from and write to pickle
Definition at line 27 of file RealValueVect.h.
|
default |
Referenced by compareVectors(), operator&=(), operator+=(), operator-=(), and operator|=().
|
inline |
initialize with a particular size
Definition at line 31 of file RealValueVect.h.
|
inline |
initialize with a particular size and initial value
Definition at line 36 of file RealValueVect.h.
|
inline |
constructor from a pickle
Definition at line 41 of file RealValueVect.h.
|
inline |
constructor from a pickle
Definition at line 46 of file RealValueVect.h.
| bool RDKit::RealValueVect::compareVectors | ( | const RealValueVect & | other | ) | const |
compares 2 vectors and returns false if different
References RealValueVect().
|
inline |
Definition at line 91 of file RealValueVect.h.
|
inline |
Definition at line 90 of file RealValueVect.h.
|
inline |
| double RDKit::RealValueVect::getTotalVal | ( | ) | const |
returns the sum of all the elements in the vect
| double RDKit::RealValueVect::getVal | ( | unsigned int | i | ) | const |
return the value at an index
Referenced by operator[]().
| RealValueVect & RDKit::RealValueVect::operator&= | ( | const RealValueVect & | other | ) |
in-place operator&
References RealValueVect().
| RealValueVect & RDKit::RealValueVect::operator+= | ( | const RealValueVect & | other | ) |
in-place operator+
References RealValueVect().
| RealValueVect & RDKit::RealValueVect::operator-= | ( | const RealValueVect & | other | ) |
in-place operator-
References RealValueVect().
|
inline |
| RealValueVect & RDKit::RealValueVect::operator|= | ( | const RealValueVect & | other | ) |
in-place operator|
References RealValueVect().
|
inline |
Definition at line 84 of file RealValueVect.h.
|
inline |
Definition at line 88 of file RealValueVect.h.
| void RDKit::RealValueVect::setVal | ( | unsigned int | i, |
| double | val ) |
set the value at an index
|
inline |
| std::string RDKit::RealValueVect::toString | ( | ) | const |
returns a binary string representation (pickle)