Comments (6)
Thank you for the feedback. Unfortunately the binary version for Windows is targeted at Visual Studio 2017, GCC have a different C++ name mangling convention. Therefore, you will not be able to link usiing the provided binary on Windows using GCC. Moreover, you are using CodelLite and if I remember right CodeLite ships a 32bit version of the GCC toolchain on Windows. The dace binaries are all 64bit.
If you want to use the dace on Windows with the GCC you should download the source and compile it yourself. The Build system is based on CMAKE which should have a generator for CodeLite. However, I'll suggest to move to a 64bit toolchain if possible, the 32bit limit on addressable memory will seriously limit the size of problems that can be addressed. Instead, if you want ot use the provided binary you should move to Visual Studio (the community edition can be freely downloaded form MS website.) or to Linux.
I'll update the release page adding all those information on the Windows Binary.
from dace.
Thank you for your help. I have changed my environment to Visual Studio 2017 and All things look to behave normally. However, when I run the example 6 titled "definite integral" at tutorial 1, I always get the wrong value 0. It seems that something goes wrong when evaluating the DA polynomial. To verify this, I write a simple example to compute sin(1.0) with the following code segment:
void test_06(void)
{
DA::init(24, 1);
DA x = DA(1);
DA f = sin(x);
double y = f.evalScalar(1.0);
cout << "The result is: " << y << endl;
}
In my computer, the result of y is also zero. By the way, I have changed my OS to windows 10 64 bit and the precompiled version 2.0 package is used with the static library dace.lib. I'm not sure if this is a bug, please help to check it. Many thanks!
from dace.
@breezeBIT in the future please open a new issue in case of different problem/error.
dace.lib is not a static library, it is used by Visual Studio 2017 to correctly link the dace.dll. By chance (or maybe by design at MS) it has the same file extension of the static library (which is not included in the installer). Do not worry, you are linking against the correct library.
Regarding your example I'm not able to reproduce your error. I'm using Win10Pro 64 with VS2017 latest update. The following code compiles and give the expected results, can you please check the includes you are using are the same?
#include "stdafx.h"
#include
#include
#include <DA/dace.h>
using namespace std;
using namespace DACE;
int main()
{
DA::init(24, 1);
DA x = DA(1);
DA f = sin(x);
double y = f.evalScalar(1.0);
cout << "expected resutls: " << sin(1.0) << endl;
cout << "The result is: " << y << endl ;
cout << "The error is: " << y - sin(1.0) << endl;
return 0;
}
from dace.
Sorry for appending to the previous one and I will start a new issue next time. I just changed the configuration to Release x64 and got the right value. In my previous operation, the Debug x64 configuration was used. I'm wondering why there are different behaviors between Debug and Release?
from dace.
The dace binaries are compiled in Release mode, but that should not affect the behavior of code compiled in debug mode. Thanks for the information, we will investigate the reason for this behavior.
from dace.
@breezeBIT can you please submit a new issue with this information so we can keep track of the Win64 Release/Debug issue separately? That way we can make sure it doesn't get lost.
from dace.
Related Issues (18)
- Different Results for the Same Expression HOT 5
- Strange result for the eval() function HOT 2
- Compilation Error HOT 2
- Build documentation in CMake
- Build Mac OS X Framework
- How to load a DA object from file? HOT 1
- Add automatic unit test suite
- Add Tutorials to the binary packages HOT 1
- Wrong Results Under Debug x64 Mode HOT 2
- Tutorial1/Example7 crash HOT 2
- Bug append operator HOT 2
- Error while reading `AlgebraicVector`s from text file HOT 3
- Wrong hyperbolic tangent for argument >> 0 HOT 2
- Floating point exception handling
- Problem running Tutorial1/Example7 HOT 1
- Wrong output allocation in matrix/vector product HOT 1
- Estimation of order sorted norms returns `nan` when zero is expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dace.