add a blueNorm() function implementing the Blues's stable norm

algorithm. it is currently provided for experimentation
purpose only.
This commit is contained in:
Gael Guennebaud
2009-07-13 21:14:47 +02:00
parent ddbaaebf9e
commit f5d2317b12
4 changed files with 170 additions and 14 deletions

View File

@@ -70,7 +70,9 @@ template<> struct NumTraits<float>
HasFloatingPoint = 1,
ReadCost = 1,
AddCost = 1,
MulCost = 1
MulCost = 1,
Base = 2,
Mantissa = 23
};
};
@@ -83,7 +85,9 @@ template<> struct NumTraits<double>
HasFloatingPoint = 1,
ReadCost = 1,
AddCost = 1,
MulCost = 1
MulCost = 1,
Base = 2,
Mantissa = 52
};
};