Actually, in any other language, I would put in the field H a pointer to an Hecke algebra. So there would be no need to understand the memory layout of a HeckeAlgebra to build a HeckeElt (the algebra, to which the element belongs, is just there to be able to consult some of its properties when, for example, multiplying the elements). But I was told you do not have pointers in Julia. Is there any other way to design my struct in view of that?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Unexpected allocations when acessing field of struct | 2 | 439 | March 5, 2021 | |
| Memory allocation in type construction | 2 | 590 | September 11, 2018 | |
| How to avoid the 2 allocations for any struct? | 21 | 1146 | May 26, 2019 | |
| Confusing memory allocations when using the integrator of DifferentialEquations.jl | 10 | 510 | January 12, 2022 | |
| Addition of floats allocates memory in not fully qualified struct | 1 | 422 | March 8, 2022 |