nalgebra/src/base
Sébastien Crozet 5ad68f486d
Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416)
* Add Storage::forget

* Adjust implementations of Reallocator to use Storage::forget

* Fix formatting

* Rename forget to forget_elements and add safety comments

* Update comments in Reallocator implementations

---------

Co-authored-by: Nick Mertin <nickmertin@gmail.com>
2024-06-23 11:46:20 +02:00
..
alias_slice.rs Deplecate Dynamic and Dynamic::new 2023-01-14 16:22:40 +01:00
alias_view.rs docs: Improve view alias docs. 2023-08-10 09:26:15 +07:00
alias.rs docs: correct row-major -> column-major for Matrix{1-6}xX storage 2023-04-28 13:35:54 +02:00
allocator.rs feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
array_storage.rs Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416) 2024-06-23 11:46:20 +02:00
blas_uninit.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
blas.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
cg.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
componentwise.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
constraint.rs Improved stack! implementation, tests (#1375) 2024-06-23 11:29:28 +02:00
construction_view.rs Fix Clippy Warnings (#1300) 2023-12-16 13:54:38 -08:00
construction.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
conversion.rs feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
coordinates.rs Implement the single-allocator-trait approach. 2021-08-02 18:41:46 +02:00
default_allocator.rs Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416) 2024-06-23 11:46:20 +02:00
dimension.rs Remove CUDA support relying on abandoned toolchain 2024-01-11 23:09:17 -08:00
edition.rs feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
helper.rs Make the rand dependency optional. 2021-03-02 12:25:12 +01:00
indexing.rs Fix Clippy Warnings (#1300) 2023-12-16 13:54:38 -08:00
interpolation.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
iter.rs Allow creating matrix iter with an owned view 2023-11-12 08:19:29 +00:00
matrix_simba.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
matrix_view.rs Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416) 2024-06-23 11:46:20 +02:00
matrix.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
min_max.rs Fix some clippy warnings 2021-08-28 12:05:21 -04:00
mod.rs fix bug, add test in tests folder 2023-04-25 01:25:36 +03:00
norm.rs feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
ops.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
par_iter.rs fix: Correct minor typos 2023-02-01 15:48:06 +09:00
properties.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
rkyv_wrappers.rs docs: Fix 2 warnings when building with rkyv. 2023-08-14 17:23:59 +07:00
scalar.rs Remove the Copy requirement from SimdRealField. 2021-08-04 17:34:25 +02:00
statistics.rs chore: update to simba 0.9 (#1415) 2024-06-22 19:06:20 +02:00
storage.rs Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416) 2024-06-23 11:46:20 +02:00
swizzle.rs Remove the Copy requirement from SimdRealField. 2021-08-04 17:34:25 +02:00
uninit.rs fix: Correct minor typos 2023-02-01 15:48:06 +09:00
unit.rs feat: use GAT to remove the scalar type T from the Allocator trait (#1397) 2024-06-12 11:16:06 +02:00
vec_storage.rs Introduce Storage::forget_elements() to fix memory leak in Matrix::generic_resize() (#1416) 2024-06-23 11:46:20 +02:00