Allow sharing matrices between stages.
Currently there is no way to use the same matrix for different stages of QP without duplicating it in memory.
Currently there is no way to use the same matrix for different stages of QP without duplicating it in memory.