![]() |
Blitz Support : |
From: Tyson Whitehead (twhitehe_at_[hidden])
Date: 2003-09-03 16:27:07
Hi. I've been reading some of Blitz source code with regards to unary and
binary funcations and am somewhat confused about the fact that there seems to
be two styles of binary and unary functions.
Ones that are prepended with _bz_ and ones that are prepended with Fn_. It
looks like the Fn_ version is what the system is currently using (spread
between funcs.h, array/funcs.h, and array/newet-macros.h) .
Am I right in saying that the Fn_ versions represent the new ET style (i.e.
using defines to role out the required templates), and the _bz_ versions are
the old ET style (i.e. generated code in the .files)?
There seems to be a bunch of redundancy surrounding the mathfunc.h file. It
declares a whole slug of the old style _bz_ functions despite the fact that
they have all already been declared with the Fn_ prefix. Persumably this is
being done because the (autogenerated) TinyVector and the Matrix code hasn't
been updated yet to reflect the Fn_ prefix?
Am I right in guessing that the plan was to drop autogeneration in the
TinyVector and Matrix code, in favor of defines, as well? Is this still on
the game plan, or has the code been dropped in the middle of a 'transition to
defines' state?
Thanks -T
PS: Pretty cool stuff by the way -- I'm way impressed that Todd had this kind
of C++ ability at the Masters level...
PPS: Please CC me as I am not a member of this mailing group
-- Tyson Whitehead (-twhitehe_at_[hidden] -- WSC-) Computer Engineer Dept. of Applied Mathematics, Graduate Student- Applied Mathematics University of Western Ontario, GnuPG Key ID# 0x8A2AB5D8 London, Ontario, Canada