/* 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 RigidRall1d:: RigidRall1d(): Rall1d >(0.,RigidArithmetic1d()) { } template RigidRall1d:: RigidRall1d(const T& t): Rall1d >(t,RigidArithmetic1d()) { the_gradient=0.; } template RigidRall1d:: RigidRall1d(int i_th, const T&t): Rall1d >(t,RigidArithmetic1d()) { the_gradient=0.; the_gradient(i_th) = 1.; }