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 |
initialize with a particular size
Definition at line 31 of file RealValueVect.h.
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.
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
|
inline |
Definition at line 91 of file RealValueVect.h.
Definition at line 90 of file RealValueVect.h.
returns the length
Definition at line 61 of file RealValueVect.h.
double RDKit::RealValueVect::getTotalVal | ( | ) | const |
returns the sum of all the elements in the vect
RealValueVect & RDKit::RealValueVect::operator&= | ( | const RealValueVect & | other | ) |
in-place operator&
RealValueVect & RDKit::RealValueVect::operator+= | ( | const RealValueVect & | other | ) |
in-place operator+
RealValueVect & RDKit::RealValueVect::operator-= | ( | const RealValueVect & | other | ) |
in-place operator-
support indexing using []
Definition at line 52 of file RealValueVect.h.
RealValueVect & RDKit::RealValueVect::operator|= | ( | const RealValueVect & | other | ) |
in-place operator|
Definition at line 84 of file RealValueVect.h.
Definition at line 88 of file RealValueVect.h.
returns the length
Definition at line 64 of file RealValueVect.h.
std::string RDKit::RealValueVect::toString | ( | ) | const |
returns a binary string representation (pickle)