Subject: [boost] [qvn] Why doesn't QVM use [] or () to access vector and matrix elements?
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2015-12-09 18:46:17


Hi,

These operators could be used for views

So instead of

        (m, <http://zajo.github.io/boost-qvm/operator_mod_rationale.html>A42) *= 42;

we could have in C++11

        ref(m)(4,2) *= 42;
        ref(m)[4][2) *= 42;

In C++98 these could be less efficient than e.g.

        value<4,2>(m) *= 42;

Best,
Vicente