'Validates that the input matrix is a 2x2 2D array.'

@matrix.validator
def matrix(self, value):

    if (np.shape(value) != (2, 2)):
        raise InputParameterError(u'Expected    transformation    matrix    to    be    a    2x2    array')
