-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve way of implementing blas_sys #13
Comments
Depending on which features you need for this project, a simpler crate for linear algebra might do the trick. There's a number of crates implemented in pure Rust, so no C compiler is needed: cgmath, nalgebra and rulinalg, to name a few. |
Blas seems to be the only crate fast enough for the amount of matrix multiplication we'll have |
Please don't waste time prematurely optimizing unwritten and unbenchmarked code. I'm frequently making that mistake, and it costs hours (if not days) of work each time. If you really have to use BLAS, please consider using the blas crate instead of blas-sys. blas-sys is only an FFI binding to the C library (CBLAS), which means that all functions use raw pointers and are unsafe - two topics that weren't yet convered in the lecture (AFAIK). |
Looks like blas has blas-sys as dependency and probably uses the same unsafe methoda that blas-sys has, but with rust data types and maybe some input sanitising. I'd say let's use that then. |
Da wir uns ja jetzt anscheinend auf nalgebra geeinigt haben, schliesse ich des hier mal... |
As of now we can work with blas_sys (yay!) but we need to install a c-compiler and gfortran before we do that (boho:( ). So It would be good if someone could work a way around that or at least put the necessary stuff into a script so that installation works automated.
The text was updated successfully, but these errors were encountered: