Comments (6)
I think it's a good idea. However I'm quite busy right now with gtk so, if you want it quickly, you'll have to do it yourself. Otherwise, I'll try to take a took in one or two week.
from rust-gsl.
I can try and look into it. However, I just realised that that specialised versions of the functions aren't (of course) going to work without the trait specialisation support which is slowly coming along, but still quite far off. Dang! Well, I'll try and think about this.
from rust-gsl.
I was thinking to create a Float
type alias (like you proposed) on f32
or f64
, depending of the option. However, replacing all f32
will take a while (there are... a lot ^^).
from rust-gsl.
Somehow related to this, I was working with matrix operations and unfortunately the linear algebra ops use the double precision matrix while the BLAS ops use the float matrix.
I get this is a limitation or design with GSL itself but I wonder if there is someway to get around it doing some magic in rust with custom #[repr(C)] structs casting between f64 and f32 types to avoid unnecessary copying.
from rust-gsl.
I don't have much time to work on this crate lately unfortunately... My primary focus for the moment is to make the binding to the 2.0
version. But if you have an idea on how to do this, I'd gladly accept a PR.
from rust-gsl.
There are now MatrixF32
and MatrixF64
types as well as equivalent for other types. I can't make the GSL functions generic over them unfortunately though. So I think everything that could be done was already done.
from rust-gsl.
Related Issues (20)
- Feature request: add static linking option HOT 6
- Seg Fault using Minimization and Root HOT 3
- Add doc alias check for ffi_wrap types
- legendre_Pl_array and legendre_Pl_deriv_array are broken HOT 1
- glfixed_point is broken HOT 1
- Some `MultiFitFSolver` methods returns a `VectorF64` object with no lifetime bound
- Build on Windows using `vcpkg` HOT 4
- multifit_solver example broken: covariance matrix must be square and match second dimension of jacobian HOT 14
- Add multifit_solver binding HOT 1
- Wrong type of argument to rgsl::fit::linear
- Matrix Transpose
- Linking to GSL is failing HOT 7
- Publiciting it on GSL site HOT 2
- Unresolved external symbol HOT 5
- Mathieu functions always return zero HOT 7
- Incorrect ffi-binding to gsl_multifit_function_fdf HOT 4
- math in doc
- Trouble with linking HOT 3
- Failing to compile under Rust 1.51.0 HOT 1
- Spline::init can read uninitialized memory HOT 1
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 rust-gsl.