Comments (3)
Thanks so much for your help, @Andlon!
Your intuition is correct, this seems to be a stack overflow. The output below is what I get with RUST_BACKTRACE=1
. And yes, you're also correct that I get the same result when using repeat()
rather than new_random()
.
I will use DMatrix
as you suggest. Thanks again for your help, @Andlon! And thanks also for this phenomenal crate!!
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Aborted
from nalgebra.
Oh, and here is my Cargo.toml
file.
[package]
name = "nalgebra_mat_mul"
version = "0.1.0"
edition = "2021"
[dependencies]
nalgebra = { version = "0.32.2", features = ["rand"] }
from nalgebra.
Judging from your example, this is probably a stack overflow. Can you give the output with debug symbols turned on? It would be great to confirm. If that's the case, you'd probably get the same problem if you don't use get_random
but instead just Matrix::repeat(2.0)
(avoiding 0.0
since compilers/allocators etc. sometimes go alternate routes for zeroed memory).
A 512x512 f64
matrix requires 16 MB stack space, which is likely larger than the stack size your OS uses by default.
For such large matrices, there are usually no benefits to storing them on the stack. I'd recommend to use DMatrix
instead, if you can.
from nalgebra.
Related Issues (20)
- Update to syn 2.0
- Proposal: Add helper methods `is_hermitian` and `is_unitary` for the `Matrix` struct HOT 3
- Alias 'RowDVectorView<>' is missing for the result of DMatrix<T>.row() HOT 1
- Add `map_to` just like `add_to`, and `map_assign` just like `add_assign` HOT 3
- `add_to` others `*_to` methods should be a trait and return the destination reference HOT 2
- unhandled integer overflow in matrix view construction HOT 1
- Concept for reducing the verbosity of generics
- Update user guide to include matrix, stack macros
- New stack macro implementation triggers clippy::toplevel_ref_arg warning HOT 3
- Declaring const matrix/vector in nalgebra-glm?
- Quaternion.to_vector() protocol missing key specifications
- `Dyn` could have `DimName` implemented upstream
- There's a potential bug with the Mat4 inverse code. HOT 2
- Fixing assert_view_index() in matrix_view.rs
- Problem in assert_view_index function of matrix_view.rs? HOT 2
- Stuck compiling `nalgebra` on nightly HOT 5
- `UnitQuaternion` doesn't guarantee it's a unit quaternion
- `nalgebra` does not build on nightly `rustc` 1.83.0 HOT 1
- Support rkyv 0.8.x
- Add a v0.33.0 git tag
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 nalgebra.