mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
- speed up Dice similarity between SparseIntVects (a lot)
- add bulk Dice similarity for SIVs to wrapper - speed up bulk Dice similarity for bit vects - test a bit more
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// $Id$
|
||||
//
|
||||
// Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC
|
||||
// Copyright (C) 2003-2008 greg Landrum and Rational Discovery LLC
|
||||
//
|
||||
// @@ All Rights Reserved @@
|
||||
//
|
||||
@@ -45,7 +45,7 @@ python::list BulkWrapper(const T &bv1,python::list bvs,
|
||||
unsigned int nbvs=python::extract<unsigned int>(bvs.attr("__len__")());
|
||||
for(unsigned int i=0;i<nbvs;++i){
|
||||
double simVal;
|
||||
T bv2=python::extract<T>(bvs[i])();
|
||||
const T &bv2=python::extract<T>(bvs[i])();
|
||||
if(bv1.GetNumBits()>bv2.GetNumBits()){
|
||||
T *bv1tmp = FoldFingerprint(bv1,bv1.GetNumBits()/bv2.GetNumBits());
|
||||
simVal = metric(*bv1tmp,bv2);
|
||||
|
||||
Reference in New Issue
Block a user