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
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
alta
alta
Commits
3911242c
Commit
3911242c
authored
Jun 14, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding Visual studio compile for the rest of the projet
parent
b6aa7f79
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
sources/core/common.h
sources/core/common.h
+4
-0
sources/plugins/nonlinear_function_lafortune/function.cpp
sources/plugins/nonlinear_function_lafortune/function.cpp
+2
-0
sources/plugins/rational_fitter_quadprog/rational_fitter.cpp
sources/plugins/rational_fitter_quadprog/rational_fitter.cpp
+0
-2
sources/softs/generate_data/main.cpp
sources/softs/generate_data/main.cpp
+3
-3
No files found.
sources/core/common.h
View file @
3911242c
...
...
@@ -242,3 +242,7 @@ template<typename T> int is_in(std::vector<T> ve, T v)
std::cerr << "<<ERROR>> not implemented " << __FILE__ \
<< ":" << __LINE__ << std::endl; \
throw
#ifdef WIN32
#define M_PI 3.14159265
#endif
sources/plugins/nonlinear_function_lafortune/function.cpp
View file @
3911242c
...
...
@@ -307,6 +307,8 @@ std::ofstream& type_definition(std::ofstream& out, int nY)
out
<<
"float "
;
else
out
<<
"vec"
<<
nY
;
return
out
;
}
std
::
ofstream
&
type_affectation
(
std
::
ofstream
&
out
,
const
std
::
string
&
name
,
const
vec
&
x
,
int
nY
,
int
n
=
0
,
int
s
=
0
,
int
S
=
1
)
...
...
sources/plugins/rational_fitter_quadprog/rational_fitter.cpp
View file @
3911242c
...
...
@@ -17,8 +17,6 @@
#define isnan(X) ((X != X))
#endif
using
namespace
std
;
fitter
*
provide_fitter
()
{
return
new
rational_fitter_quadprog
();
...
...
sources/softs/generate_data/main.cpp
View file @
3911242c
...
...
@@ -72,7 +72,7 @@ int main(int argc, char** argv)
f
<<
"#PARAM_IN COS_TH"
<<
std
::
endl
;
for
(
int
i
=
0
;
i
<
nbx
;
++
i
)
{
const
float
x
=
i
/
(
float
)
nbx
;
const
double
x
=
i
/
(
float
)
nbx
;
// const float d[3] = {0.1, 0.0, 0.5};
const
float
d
[
3
]
=
{
0.0
,
0.0
,
0.0
};
const
float
z1
=
d
[
0
]
+
0.2
*
std
::
pow
(
x
,
1.5
)
;
...
...
@@ -91,8 +91,8 @@ int main(int argc, char** argv)
f
<<
"#PARAM_IN COS_TH"
<<
std
::
endl
;
for
(
int
i
=
0
;
i
<
nbx
;
++
i
)
{
const
float
x
=
i
/
(
float
)
nbx
;
const
float
z
=
0.1
+
0.5
*
std
::
pow
(
x
,
1.5
)
;
const
double
x
=
i
/
(
float
)
nbx
;
const
double
z
=
0.1
+
0.5
*
std
::
pow
(
x
,
1.5
)
;
f
<<
x
<<
"
\t
"
<<
z
<<
std
::
endl
;
}
...
...
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