def overwrite(self, array):
    """Overwrites self with array.
    
    'array' should have a size smaller than that of the array used to
    initialize the EigenMatrix. The method will not throw an Exception just
    yet if this is not true. It will throw exceptions or behave in strange
    ways later on.
    """
    assert type(array) == np.ndarray, 'array must be a np.ndarray.'
    array = reformat(array)
    self.numpy_array = array
    _eigenmat.init_from_array(self.p_mat, array.ctypes.data_as(ct.POINTER(ct.c_float)), ct.c_int(array.shape[0]), ct.c_int(array.shape[1]))
Overwrites self with array.
    
    'array' should have a size smaller than that of the array used to
    initialize the EigenMatrix. The method will not throw an Exception just
    yet if this is not true. It will throw exceptions or behave in strange
    ways later on.
    
eigenmat/eigenmat.py