Commit 8486f6d8 authored by reichenbach's avatar reichenbach
Browse files

[FIX] fixed include in WTensorBase.h and some comments in WCompileTimeFunctions.h

parent 518df6e9
...@@ -40,8 +40,14 @@ namespace wmath ...@@ -40,8 +40,14 @@ namespace wmath
template< std::size_t n, std::size_t k > template< std::size_t n, std::size_t k >
struct WBinom struct WBinom
{ {
/**
* Using an enum here instead of a static constant.
*/
enum enum
{ {
/**
* The computed value.
*/
value = WBinom< n - 1, k - 1 >::value + WBinom< n - 1, k >::value value = WBinom< n - 1, k - 1 >::value + WBinom< n - 1, k >::value
}; };
}; };
...@@ -52,8 +58,14 @@ struct WBinom ...@@ -52,8 +58,14 @@ struct WBinom
template< std::size_t n > template< std::size_t n >
struct WBinom< n, n > struct WBinom< n, n >
{ {
/**
* Using an enum here instead of a static constant.
*/
enum enum
{ {
/**
* The computed value.
*/
value = 1 value = 1
}; };
}; };
...@@ -64,8 +76,14 @@ struct WBinom< n, n > ...@@ -64,8 +76,14 @@ struct WBinom< n, n >
template< std::size_t n > template< std::size_t n >
struct WBinom< n, 0 > struct WBinom< n, 0 >
{ {
/**
* Using an enum here instead of a static constant.
*/
enum enum
{ {
/**
* The computed value.
*/
value = 1 value = 1
}; };
}; };
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <map> #include <map>
#include <algorithm> #include <algorithm>
#include "WBinom.h" #include "WCompileTimeFunctions.h"
#include "../WAssert.h" #include "../WAssert.h"
// TODO(reichenbach): Remove vectors (because of the enum dataSize). // TODO(reichenbach): Remove vectors (because of the enum dataSize).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment