Comments (8)
That might work well. Put a static constructor in the Control class to check for the variable. If it doesn't exist, then use the managed provider. Users could still override it in their code. It would simplify testing nicely without using an NUnit extension.
from mathnet-numerics-native.
I would prefer to have the environment variable only in the tests.
If it is in Control
class, someone can break my Application by changing a users environment variable. The application would become vulnerable.
from mathnet-numerics-native.
I disagree. Setting environment variables is an acceptable, standard way to control application behavior.
from mathnet-numerics-native.
and to add, an application could always use an app.config file and corresponding code to override the environment variable.
from mathnet-numerics-native.
Didn't thought on this. You are right. Should not be a problem.
from mathnet-numerics-native.
Great, thanks for the feedback!
from mathnet-numerics-native.
@cuda using environment variables, you no longer need the unit test config file (and corresponding code) then and I can drop it, correct?
from mathnet-numerics-native.
Right. We can also drop the mkl wrapper test project from the native wrapper project.
from mathnet-numerics-native.
Related Issues (8)
- Cannot add reference to MathNet.Numerics.MKL.dll HOT 2
- Redistribution license HOT 2
- Single mixed mode dll with Math.NET Numerics and MKL library HOT 2
- System.AccessViolation when doing many matrix multiplies from NancyFX HOT 4
- Project now obsolete? HOT 1
- Exception for missing CUDA dll HOT 9
- Native Provider Source? HOT 10
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 mathnet-numerics-native.