[vtk-developers] comments inside BTX ETX + matrix variable naming
David Doria
daviddoria+vtk at gmail.com
Sat Dec 12 09:21:16 EST 2009
Can I change
//BTX
static void Multiply3x3(const double a[9], const double b[9],
double c[9]);
//ETX
to
//BTX
// Description:
// Multiplies matrices a and b and stores the result in c according to
// c = ab. These matrices are specified as vector indicating a matrix in
// row major order. For example, the matrix
// [a00 a01 a02]
// [a10 a11 a12]
// [a20 a21 a22]
// should be defined as
// double a[9] = {a00, a01, a02, a10, a11, a12, a20, a21, a22};
static void Multiply3x3(const double a[9], const double b[9],
double c[9]);
//ETX
Or will the comment inside the BTX ETX block break something?
Also, I know the rule is to start variable names with lower case
letters, but does this hold for matrices also? I'd much rather see a
matrix named 'A' rather than 'a' to conform to mathematical
notation/practice. Is this ok?
Thanks,
David
More information about the vtk-developers
mailing list