MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / EtaMatrix

Method EtaMatrix

src/basis_factorization/EtaMatrix.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <cstring>
24
25EtaMatrix::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
38EtaMatrix::EtaMatrix( unsigned m, unsigned index )
39 : _m( m )

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected