From: Ulf L. <ul...@wa...> - 2014-11-19 22:08:03
|
Hi, today I had a chat with Andreas, a new developer, and to revive the habit of sending a summary of what is going on, I am sending this mail. The task is #49 (unifying propagators), and was focused on making the OperatorMatrix more accessible. Basic decisions: * OperatorMatrix gets a new constructor that takes a single operator and sets up a 1x1 matrix with this operator (to handle the trivial case) - invalid_argument exception if the operator is null * OperatorMatrix gets a new constructor that takes a vector of vectors of operators (rows in the matrix), and sets up the operator - invalid_argument exception if all operators null - invalid_argument exception if matrix not quadratic - invalid_argument exception if wrong number of operators in a row * add a new static variable that represents a null operator (null pointer); supplying this operator in the second constructor signals that this cell of the matrix is the zero operator. * add a function getSize() to return the size of the OperatorMatrix * add a function getOperator(uint row, uint column) that returns the appropriate operator in this cell of the matrix - invalid_argument exception if the row or column is out of range |