From @purd|e@@ @end|ng |rom gm@||@com  Fri Sep 11 04:02:48 2020
From: @purd|e@@ @end|ng |rom gm@||@com (Abby Spurdle)
Date: Fri, 11 Sep 2020 14:02:48 +1200
Subject: [Rd] more Matrix weirdness
In-Reply-To: <24410.8333.102266.856181@stat.math.ethz.ch>
References: <AM0PR0102MB3443F1F91F70197C52FE71ADAE260@AM0PR0102MB3443.eurprd01.prod.exchangelabs.com>
 <24410.8333.102266.856181@stat.math.ethz.ch>
Message-ID: <CAB8pepxxoJV2GJp_CsUee+4gRCw2e=DXb2zfgXbArJ+yxQ6Ahg@mail.gmail.com>

>     > "These operators are also implicit S4 generics, but as
>     > primitives, S4 methods will be dispatched only on S4
>     > objects ?x?."

> Yes, exactly,  very well found, Georgi!

I'm sorry Martin, but I don't understand your point here.

I'm assuming that you want the (S3) matrix, x, to be converted to an
(S4) Matrix.

However, this is not a question of method dispatch, as such.
But rather a question of type conversion (integer to numeric to complex, etc).

Specifically, can/should automatic type conversion, convert an S3 data
type to an S4 data type, even where user-defined data types are
involved?



[Rd] more Matrix weirdness
Abby Spurdle