Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uakari.primate.wisc.edu!caesar!blake!keffer From: keffer@blake.acs.washington.edu (Thomas Keffer) Newsgroups: comp.lang.c++ Subject: Minor patch for RWVector 2.2 Message-ID: <3803@blake.acs.washington.edu> Date: 26 Sep 89 23:56:18 GMT Reply-To: keffer@blake.UUCP (Thomas Keffer) Organization: University of Washington, Seattle Lines: 97 Here is a small patch that fixes a compilation problem in the Rogue Wave Vector library when compled with GNU g++ version 1.35.0 (1.35.1 seems to work). This library can be obtained from sperm.ocean.washington.edu (ip 128.208.2.7) as file pub/RWVector2.2.tar.Z. -tk --- Dr. Thomas Keffer | Internet: keffer@sperm.ocean.washington.edu School of Oceanography | BITNET: keffer%sperm.ocean.washington.edu@UWAVM Univ. of Washington, WB-10 | uucp: uw-beaver!sperm.ocean.washington.edu!keffer Seattle, WA 98195 | Telemail: T.KEFFER/OMNET (206) 543-6455 <--- cut here ---><--- cut here ---><--- cut here ---> diff -rc RWVector2.2/rw/CGEMatrix.h RWVector2.2.1/rw/CGEMatrix.h *** RWVector2.2/rw/CGEMatrix.h Mon Sep 18 19:03:10 1989 --- RWVector2.2.1/rw/CGEMatrix.h Tue Sep 26 15:55:10 1989 *************** *** 153,159 **** } Inline DComplexVec CGEMatrix::diagonal(int i){ ! register int iabs=abs(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); --- 153,159 ---- } Inline DComplexVec CGEMatrix::diagonal(int i){ ! register int iabs=ABSOLUTE(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); diff -rc RWVector2.2/rw/DGEMatrix.h RWVector2.2.1/rw/DGEMatrix.h *** RWVector2.2/rw/DGEMatrix.h Mon Sep 18 19:03:11 1989 --- RWVector2.2.1/rw/DGEMatrix.h Tue Sep 26 15:55:11 1989 *************** *** 154,160 **** } Inline DoubleVec DGEMatrix::diagonal(int i){ ! register int iabs=abs(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); --- 154,160 ---- } Inline DoubleVec DGEMatrix::diagonal(int i){ ! register int iabs=ABSOLUTE(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); diff -rc RWVector2.2/rw/FGEMatrix.h RWVector2.2.1/rw/FGEMatrix.h *** RWVector2.2/rw/FGEMatrix.h Mon Sep 18 19:03:12 1989 --- RWVector2.2.1/rw/FGEMatrix.h Tue Sep 26 15:55:11 1989 *************** *** 153,159 **** } Inline FloatVec FGEMatrix::diagonal(int i){ ! register int iabs=abs(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); --- 153,159 ---- } Inline FloatVec FGEMatrix::diagonal(int i){ ! register int iabs=ABSOLUTE(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); diff -rc RWVector2.2/rw/IGEMatrix.h RWVector2.2.1/rw/IGEMatrix.h *** RWVector2.2/rw/IGEMatrix.h Mon Sep 18 19:03:13 1989 --- RWVector2.2.1/rw/IGEMatrix.h Tue Sep 26 15:55:11 1989 *************** *** 153,159 **** } Inline IntVec IGEMatrix::diagonal(int i){ ! register int iabs=abs(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs); --- 153,159 ---- } Inline IntVec IGEMatrix::diagonal(int i){ ! register int iabs=ABSOLUTE(i); #if BOUNDS_CHECK assertSquare(); assertRowRange(iabs);