proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
dynstack_alloc.hpp
Go to the documentation of this file.
1#ifndef VEG_DYNSTACK_ALLOC_HPP_YYWN4MATS
2#define VEG_DYNSTACK_ALLOC_HPP_YYWN4MATS
3
6
7#define __VEG_IMPL_MAKE_STACK(vec, stack, ...) \
8 VEG_NOM_SEMICOLON; \
9 ::proxsuite::linalg::veg::Vec<unsigned char> vec; \
10 vec.resize_for_overwrite((__VA_ARGS__).alloc_req()); \
11 ::proxsuite::linalg::veg::dynstack::DynStackMut stack{ \
12 ::proxsuite::linalg::veg::tags::from_slice_mut, vec.as_mut() \
13 }; \
14 VEG_NOM_SEMICOLON
15
16#define VEG_MAKE_STACK(stack, ...) \
17 __VEG_IMPL_MAKE_STACK(VEG_ID(stack_storage), stack, __VA_ARGS__)
18
19#endif /* end of include guard VEG_DYNSTACK_ALLOC_HPP_YYWN4MATS */