Errors in 'matop'
Framework for numerical computations, data analysis and visualisation
Brought to you by:
numere
Two issues appear, when using the matop command:
matop rand(0,1)*one(5) ## will throw an error
matop diagonalize(matfc({1,2,3},{3,1,2},{2,3,1}))(:,1:3) ## will return a row vector instead of a (3x3) matrix
The first issue is that the contents of the rand() parenthesis is pre-evaluated and returned as a single matrix. This won't work with a two-argument function. Change that to return the arguments separately by evaluating each argument separately.
The second issue is related to a wrong usage of the Indices class method Indices::setRange(). This method won't work with invalid indices.
This fix was added to the automatic tests. No deviations detected. Bug fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff:
Related
Commit: [r686]
Diff: