finitediff
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IncompatibleMatrixSizeException Class Reference

When trying to perform operation with matrices with incompatible sizes. More...

Inheritance diagram for IncompatibleMatrixSizeException:
Inheritance graph
[legend]
Collaboration diagram for IncompatibleMatrixSizeException:
Collaboration graph
[legend]

Public Member Functions

 IncompatibleMatrixSizeException (const unsigned int s1, const unsigned int s2)
 
virtual const char * what () const throw ()
 

Private Member Functions

std::string message (const unsigned int size1, const unsigned int size2) const
 

Private Attributes

unsigned int size1
 
unsigned int size2
 
std::string _msg
 

Detailed Description

When trying to perform operation with matrices with incompatible sizes.

bool a=(A==B); //throws
auto C=A*B; //throws

Constructor & Destructor Documentation

IncompatibleMatrixSizeException::IncompatibleMatrixSizeException ( const unsigned int  s1,
const unsigned int  s2 
)
inline

Member Function Documentation

std::string IncompatibleMatrixSizeException::message ( const unsigned int  size1,
const unsigned int  size2 
) const
inlineprivate
virtual const char* IncompatibleMatrixSizeException::what ( ) const
throw (
)
inlinevirtual

Member Data Documentation

std::string IncompatibleMatrixSizeException::_msg
private
unsigned int IncompatibleMatrixSizeException::size1
private
unsigned int IncompatibleMatrixSizeException::size2
private

The documentation for this class was generated from the following file: