Cannot apply a vector componentwise to a matrix
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
Such an expression is not possible, because it will apply the vector only to the first dimension:
matop _targetTable(:,:) /= numTestCases(:,1) / 100;
A similiar fix was already done, however, it was not implemented completely: the fix implemented the expected behavior for scalar values, so one has to extend that to work on vectors as well. This can be done by changing
else if (vIndices[j].vI.size() == 1 && vIndices[j].vJ.size() == 1)
to
else if (vIndices[j].vI.size() >= 1 && vIndices[j].vJ.size() == 1)
and similar.
This fix was tested in the automatic SW tests. Occured deviations were resolved in [r412].
Anonymous
Diff:
Diff:
Diff:
Diff:
Related
Commit: [r382]
Diff:
Related
Commit: [r412]