00001 // @(#)root/minuit2:$Id: LaInnerProduct.cxx 20880 2007-11-19 11:23:41Z rdm $ 00002 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005 00003 00004 /********************************************************************** 00005 * * 00006 * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT * 00007 * * 00008 **********************************************************************/ 00009 00010 #include "Minuit2/LAVector.h" 00011 00012 namespace ROOT { 00013 00014 namespace Minuit2 { 00015 00016 00017 double mnddot(unsigned int, const double*, int, const double*, int); 00018 00019 double inner_product(const LAVector& v1, const LAVector& v2) { 00020 // calculate inner (dot) product of two vectors using mnddot function 00021 return mnddot(v1.size(), v1.Data(), 1, v2.Data(), 1); 00022 } 00023 00024 } // namespace Minuit2 00025 00026 } // namespace ROOT