matrices and arrays loose dimension after multiplying with scalar (PR#1979)

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Tue, 3 Sep 2002 18:01:25 +0200 (MET DST)


>>>>> "JensOe" == oehl list <oehl_list@gmx.de>
>>>>>     on Tue, 3 Sep 2002 17:45:33 +0200 (MET DST) writes:

    JensOe> A matrix or array with one of its dimensions having
    JensOe> zero elements looses its dimension after multiplying
    JensOe> with scalar.  Admittedly this is an extreme case,
    JensOe> however it DOES make sense to retain an objects
    JensOe> formal structure after multiplying with a scalar, as
    JensOe> e.g. a matrix with zero rows IS a legal object in
    JensOe> S. BTW, the prototype does retain the dimension.

    JensOe> Best

Danke, Jens!

o still happens in R-devel (aka 1.6.0 "unstable") of today.

o yes, it's a bug  though not a high-priority one {and we are
  approaching deep feature freeze real soon now...}


Martin




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._