/* Example programs from the book Scientific and Engineering Programming in C++: An Introduction with Advanced Techniques and Examples, Addison-Wesley, 1994. (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 1994. ALL RIGHTS RESERVED. See README file for further details. */ template class Vector; extern float sdot(const Vector&, const Vector&); // Float accumulation extern double ddot(const Vector&, const Vector&); // Double accumulation #ifdef BAD_COMPILE template // WRONG: template argument not used in formal arguments extern AccumType dot(const Vector&, const Vector&); #endif