Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
8486f6d8
Commit
8486f6d8
authored
Apr 14, 2010
by
reichenbach
Browse files
[FIX] fixed include in WTensorBase.h and some comments in WCompileTimeFunctions.h
parent
518df6e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
src/common/math/WCompileTimeFunctions.h
src/common/math/WCompileTimeFunctions.h
+18
-0
src/common/math/WTensorBase.h
src/common/math/WTensorBase.h
+1
-1
No files found.
src/common/math/WCompileTimeFunctions.h
View file @
8486f6d8
...
...
@@ -40,8 +40,14 @@ namespace wmath
template
<
std
::
size_t
n
,
std
::
size_t
k
>
struct
WBinom
{
/**
* Using an enum here instead of a static constant.
*/
enum
{
/**
* The computed value.
*/
value
=
WBinom
<
n
-
1
,
k
-
1
>::
value
+
WBinom
<
n
-
1
,
k
>::
value
};
};
...
...
@@ -52,8 +58,14 @@ struct WBinom
template
<
std
::
size_t
n
>
struct
WBinom
<
n
,
n
>
{
/**
* Using an enum here instead of a static constant.
*/
enum
{
/**
* The computed value.
*/
value
=
1
};
};
...
...
@@ -64,8 +76,14 @@ struct WBinom< n, n >
template
<
std
::
size_t
n
>
struct
WBinom
<
n
,
0
>
{
/**
* Using an enum here instead of a static constant.
*/
enum
{
/**
* The computed value.
*/
value
=
1
};
};
...
...
src/common/math/WTensorBase.h
View file @
8486f6d8
...
...
@@ -29,7 +29,7 @@
#include <map>
#include <algorithm>
#include "W
Binom
.h"
#include "W
CompileTimeFunctions
.h"
#include "../WAssert.h"
// TODO(reichenbach): Remove vectors (because of the enum dataSize).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment