Hi,
just had another chat with Andreas. The basic idea was to clean up the
OperatorMatrix and give it final touches.
* add a function setColumn() to set a whole column of the matrix
- behaves like setRow(), including the exceptions
* replace the internal data structure by a Tensor<Operator>
to match how a matrix is supposed to look like
* clean up the tests
- use getOperator() to explicitly check the setting of operators
instead of applying the matrix to some states
- replace the three tests for different aspects of the application
by a single test with hand-crafted matrix
- remove the cruft from the test fixture
- use MockOperator to test that parameters (time!) are passed
correctly to the single operators in the matrix
Ulf
|