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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -