RDKit
Open-source cheminformatics and machine learning.
|
a class for efficiently storing sparse vectors of ints More...
#include <SparseIntVect.h>
Public Types | |
typedef std::map< IndexType, int > | StorageType |
a class for efficiently storing sparse vectors of ints
Definition at line 28 of file SparseIntVect.h.
typedef std::map<IndexType, int> RDKit::SparseIntVect< IndexType >::StorageType |
Definition at line 30 of file SparseIntVect.h.
|
inline |
Definition at line 32 of file SparseIntVect.h.
|
inline |
initialize with a particular length
Definition at line 35 of file SparseIntVect.h.
|
inline |
|
inline |
constructor from a pickle
Definition at line 45 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
constructor from a pickle
Definition at line 49 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
default |
destructor (doesn't need to do anything)
|
inline |
Definition at line 358 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
returns the length
Definition at line 110 of file SparseIntVect.h.
Referenced by RDKit::DiceSimilarity(), RDKit::SparseIntVect< IndexType >::size(), and RDKit::TverskySimilarity().
|
inline |
returns our nonzero elements as a map(IndexType->int)
Definition at line 130 of file SparseIntVect.h.
|
inline |
returns the sum of all the elements in the vect the doAbs argument toggles summing the absolute values of the elements
Definition at line 114 of file SparseIntVect.h.
References RDKit::rdvalue_is().
Referenced by RDKit::DiceSimilarity().
|
inline |
return the value at an index
Definition at line 77 of file SparseIntVect.h.
References RDKit::rdvalue_is().
Referenced by RDKit::SparseIntVect< IndexType >::operator[]().
|
inline |
Definition at line 331 of file SparseIntVect.h.
|
inline |
Definition at line 165 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
this is a "fuzzy" intesection, the final value of each element is equal to the minimum from the two vects.
Definition at line 135 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 284 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 276 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 237 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 308 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 209 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 300 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 271 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 320 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 243 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 312 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 296 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 288 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 53 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
Definition at line 325 of file SparseIntVect.h.
|
inline |
support indexing using []
Definition at line 107 of file SparseIntVect.h.
References RDKit::SparseIntVect< IndexType >::getVal().
|
inline |
Definition at line 203 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
this is a "fuzzy" union, the final value of each element is equal to the maximum from the two vects.
Definition at line 174 of file SparseIntVect.h.
References RDKit::rdvalue_is().
|
inline |
set the value at an index
Definition at line 90 of file SparseIntVect.h.
returns the length
Definition at line 127 of file SparseIntVect.h.
References RDKit::SparseIntVect< IndexType >::getLength().
|
inline |
returns a binary string representation (pickle)
Definition at line 336 of file SparseIntVect.h.
References ci_SPARSEINTVECT_VERSION, RDKit::rdvalue_is(), and RDKit::streamWrite().