I am trying to create a class that has some property, 'matrix'. If I have not explicitly defined an overloaded method for some function for my class, I would like to have it operate on this property, matrix, and then wrap it back up as an object of my class. Without a default method, I might have to use repeated try catch statements such as (for a simple with a single input and output):
output_argument = some_function(obj);
if ME.identifier ...
output_argument = make_obj(some_function(obj.matrix)),obj_template);
Is it possible to define a default catchall like this?