| Trees | Indices | Help |
|
|---|
|
|
object --+
|
??.instance --+
|
LongSparseIntVect
A container class for storing integer values within a particular range. The length of the vector is set at construction time. As you would expect, _SparseIntVects_ support a set of binary operations so you can do things like: Arithmetic: siv1 += siv2 siv3 = siv1 + siv2 siv1 -= siv3 siv3 = siv1 - siv2 "Fuzzy" binary operations: siv3 = siv1 & siv2 the result contains the smallest value in each entry siv3 = siv1 | siv2 the result contains the largest value in each entry Elements can be set and read using indexing (i.e. siv[i] = 4 or val=siv[i])
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
__instance_size__ = 40
|
|||
__safe_for_unpickling__ = True
|
|||
|
|||
|
Inherited from |
|||
|
|||
Returns the length of the vector
C++ signature:
GetLength(RDKit::SparseIntVect<long long> {lvalue} useAbs=False) -> long long
|
returns a dictionary of the nonzero elements
C++ signature:
GetNonzeroElements(RDKit::SparseIntVect<long long> {lvalue}) -> boost::python::dict
|
Get the sum of the values in the vector, basically L1 norm
C++ signature:
GetTotalVal(RDKit::SparseIntVect<long long> {lvalue} useAbs=False) -> int
|
returns a binary (pickle) representation of the vector
C++ signature:
ToBinary(RDKit::SparseIntVect<long long> {lvalue}) -> std::string
|
update the vector based on the values in the list or tuple
C++ signature:
UpdateFromSequence(RDKit::SparseIntVect<long long> {lvalue}, boost::python::api::object {lvalue}) -> void*
|
C++ signature:
__add__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
C++ signature:
__and__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
C++ signature:
__eq__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
C++ signature: __getinitargs__(RDKit::SparseIntVect<long long>) -> boost::python::tuple |
Get the value at a specified location
C++ signature:
__getitem__(RDKit::SparseIntVect<long long> {lvalue}, long long) -> int
|
C++ signature: __iadd__(boost::python::back_reference<RDKit::SparseIntVect<long long>&>, RDKit::SparseIntVect<long long>) -> _object* |
Constructor
C++ signature:
__init__(_object*, long long) -> void*
C++ signature:
__init__(_object*, std::string) -> void*
|
C++ signature: __isub__(boost::python::back_reference<RDKit::SparseIntVect<long long>&>, RDKit::SparseIntVect<long long>) -> _object* |
C++ signature:
__ne__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
C++ signature:
__or__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
helper for pickle
|
Set the value at a specified location
C++ signature:
__setitem__(RDKit::SparseIntVect<long long> {lvalue}, long long, int) -> void*
|
C++ signature:
__sub__(RDKit::SparseIntVect<long long> {lvalue}, RDKit::SparseIntVect<long long>) -> _object*
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sat May 24 08:37:06 2008 | http://epydoc.sourceforge.net |