cvxgrp/qcml

Should we have dimension variables?

Opened this issue · 0 comments

echu commented

Instead of "variable x vector", we have "dimension n; variable x(n)".

Will this be a better representation of the problem? Or will it reduce its ability to be generic? At the moment, you already have to specify the dimensions of x, so specifying "n" instead is not so bad.

Then again, if we wanted to be able to "infer" dimensions directly from the parameters, we would not be able to do that using "variable x(n)" notation, since the user has already said what size "x" should be.

It's a toss-up, but since everything is "abstract" at the moment, doing the latter may "violate" that abstraction. Any other thoughts would be welcome.