Readjust whitespace to original conventions.

This commit is contained in:
Bård Skaflestad 2013-04-30 11:52:03 +02:00
parent e2d8b77ec5
commit 134b9b1a7f

View File

@ -41,19 +41,21 @@
namespace AutoDiff {
template <typename Scalar>
class Forward {
private:
public:
static Forward constant(const Scalar x)
static Forward
constant(const Scalar x)
{
return Forward(x, Scalar(0));
}
static Forward variable(const Scalar x)
static Forward
variable(const Scalar x)
{
return Forward(x, Scalar(1));
}
static Forward function(const Scalar x, const Scalar dx)
static Forward
function(const Scalar x, const Scalar dx)
{
return Forward(x, dx);
}
@ -128,7 +130,8 @@ namespace AutoDiff {
Forward(const Scalar x, const Scalar dx)
: val_(x), der_(dx)
{}
Scalar val_ ;
Scalar val_;
Scalar der_;
};