I have an overload ambiguity here between `MatrixV...
# getting-started
h
I have an overload ambiguity here between
MatrixVector::timesAssign
and
MatrixVector::times
because
MatrixVector
is an inner class of Matrix that is just a reference to a handful of values in the matrix, however it also has the standard vector operations like scaling in case you want to use it as a value in vector operations.
Copy code
v[j] *= -1  // v[j] is the jth row of matrix v. ambiguity between v[j] = v[j] * -1 and v[j].timesAssign(-1)
Does anyone have any ideas for how I can resolve operator overload ambiguity? Can it be done via: annotations? inlining? wrappers or something? nothing at all? If so, can you please provide an example of how to accomplish such?