BZDEV: Name preferences for differences?

From: Todd Veldhuizen (tveldhui@oonumerics.org)
Date: Thu Jun 25 1998 - 16:25:30 EST


I'm going to implement the following stencil operators:

  backward differences with accuracy O(h) and O(h^2)
  central differences with accuracy O(h^2) and O(h^4)
  forward differences with accuracy O(H) and O(h^2)

for the first through fourth derivatives (altogether, 24 stencil
operators).

Question: naming conventions.

Here are some possibilities, illustrated for the case of
a 2nd-order accurate 4th derivative in the 3rd dimension:

1. central<4,2>::diff(A,3)
2. central<4,2,3>(A) or central<4,2>(A,3) **
3. central4thOrder2(A,3)
4. central42(A,3)

** requires a language feature not widely available yet

Personally I'm leaning towards #4, but I'm open to pursuasion.

Cheers,
Todd
--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: mail to majordomo@oonumerics.org, with
"subscribe blitz-dev" or "unsubscribe blitz-dev" in the body of the message
* Blitz++ web page: http://oonumerics.org/blitz/



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:05 EST