Is it possible to access array using matlab like indexing in C++? -
i'm thinking accessing c++ array using matlab indexing, such a[1 , :]
. convenient.
i've overloaded operator [], seems not possible have a[1, : ]
syntax.
the solution figured out write script, pre-processes c++ source code , turns a[1, :]
c++ function, such col(a, 1)
. seems laborious.
does have better solution? thanks!!
the solution figured out write script, pre-processes c++ source code , turns a[1, :] c++ function, such col(a, 1). seems laborious.
it brittle, error prone, compounding complexity, compounding bugs , obscure. you're better off using macros (and should never use macros that).
does have better solution?
have considered adding function want? syntax not use array indexing, familiar looking @ code (including 2 years now) , explicit (as function name state function does).
Comments
Post a Comment