| 23 | #include <cstring> |
| 24 | |
| 25 | EtaMatrix::EtaMatrix( unsigned m, unsigned index, const double *column ) |
| 26 | : _m( m ) |
| 27 | , _columnIndex( index ) |
| 28 | , _column( NULL ) |
| 29 | { |
| 30 | _column = new double[_m]; |
| 31 | if ( !_column ) |
| 32 | throw BasisFactorizationError( BasisFactorizationError::ALLOCATION_FAILED, |
| 33 | "EtaMatrix::column" ); |
| 34 | |
| 35 | memcpy( _column, column, sizeof( double ) * _m ); |
| 36 | } |
| 37 | |
| 38 | EtaMatrix::EtaMatrix( unsigned m, unsigned index ) |
| 39 | : _m( m ) |
nothing calls this directly
no test coverage detected