PolymorphicArgumentException
PolymorphicArgumentException = "Invalid argument pattern for polymorphic function."
$A : array
Matrix storage
$m : int
Matrix row dimension
$n : int
Matrix column dimension
__construct() : mixed
Polymorphic constructor
As PHP has no support for polymorphic constructors, we hack our own sort of polymorphism using func_num_args, func_get_arg, and gettype. In essence, we're just implementing a simple RTTI filter and calling the appropriate constructor.