Boost logo

Boost :

Subject: Re: [boost] different matrix library?
From: DE (satan66613_at_[hidden])
Date: 2009-08-21 10:46:52


on 20.08.2009 at 23:46
 joel wrote :
>> i think we agreed that a 'symmetry' concept must be handled
>> and as i suppose a symmetric matrix is always square how you would
>> handle such illegal attempts?
>>
>> matrix<double, settings( symmetric ) > m;
>> m.resize( ofSize(6,7) );
>>
>> (i just thought: maybe restricting to 'm.resize( ofSize(6) );' ?
> This throw an exception.
thus you making available a design violation detection only at run
time while it should be detected at compile time
since you use additional object for resizing it is easy to provide
checking of such violation at compile time

-- 
Pavel

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk