Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curves
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jason Chemin
curves
Commits
abf60b19
Commit
abf60b19
authored
Nov 24, 2017
by
t steve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inlining bin and fact to avoid redefinition
parent
950e634c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/spline/bernstein.h
include/spline/bernstein.h
+2
-2
No files found.
include/spline/bernstein.h
View file @
abf60b19
...
...
@@ -23,7 +23,7 @@ namespace spline
///
/// \brief Computes factorial of a number
///
unsigned
int
fact
(
const
unsigned
int
n
)
inline
unsigned
int
fact
(
const
unsigned
int
n
)
{
assert
(
n
>=
0
);
int
res
=
1
;
...
...
@@ -35,7 +35,7 @@ unsigned int fact(const unsigned int n)
///
/// \brief Computes a binomal coefficient
///
unsigned
int
bin
(
const
unsigned
int
n
,
const
unsigned
int
k
)
inline
unsigned
int
bin
(
const
unsigned
int
n
,
const
unsigned
int
k
)
{
return
fact
(
n
)
/
(
fact
(
k
)
*
fact
(
n
-
k
));
}
...
...
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