Macro faer_core::temp_mat_uninit
source · macro_rules! temp_mat_uninit {
{
$(
let ($id: pat, $stack_id: pat) = unsafe {
temp_mat_uninit::<$ty: ty>(
$nrows: expr,
$ncols: expr,
$stack: expr$(,)?
)
};
)*
} => { ... };
}Expand description
Creates a temporary matrix of possibly uninitialized values, from the given memory stack.
Warning
Working with uninitialized values is trickier in Rust than other languages. In particular,
references must always point to initialized data, which means that using
MatMut::get, MatMut::get_unchecked, the indexing operator, etc., on the resulting matrix
can cause undefined behavior.
Use the pointer access API instead: e.g., MatMut::ptr_at or zip::MatUninit.