/* 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 void arrayCopy(const ConcreteArray1dRef& lhs, const ConstArray1d& rhs) { Subscript i = lhs.shape(0); if (i != rhs.shape(0)) throw ArrayErr::Shape(); while (i-- > 0) lhs(i) = rhs(i); } template void arrayCopy(Array1d& lhs, const AnArray& rhs) { Subscript i = lhs.shape(0); if (i != rhs.shape(0)) throw ArrayErr::Shape(); while (i-- > 0) lhs(i) = rhs(i); } /* template void arrayCopy(AnArray& lhs, const ConstArray1d& rhs) { Subscript i = lhs.shape(0); if (i != rhs.shape(0)) throw ArrayErr::Shape(); while (i-- > 0) lhs(i) = rhs(i); } */