Re: [R] Help with Matrix package

From: Douglas Bates <dmbates_at_gmail.com>
Date: Thu 13 Oct 2005 - 23:49:39 EST

The Matrix package is under active development and the documentation has not caught up with the code. Examples of usage can be found in the tests subdirectory of the source package. At present we are concentrating on the class hierarchy and writing methods and test cases for those methods. Because everything is in a state of flux we have not created the simple introductory document.

The benchmark examples were all simple examples that, for the most part, required just one function call. What you are doing sounds more realistic.

On 10/13/05, rob foxall (IFR) <rob.foxall@bbsrc.ac.uk> wrote:
> Hello all,
> A colleague at work set me the challenge to convert some MATLAB
> code into R, to see which is faster. We'd seen that benchmark comparing
> MATLAB 6.5 to R1.90 (and others), and so I thought that I should be able
> to get roughly comparable speeds. The code has lots of multiplications
> of matrixes, transposes, and MATLAB's "repmat". I did the code
> conversion, and R was about 6 times slower, so I had a closer look at
> the benchmark comparison and it seems that I should be using the
> "Matrix" package.
> Is there any dummies-level help available for this package? I am
> struggling even to apply simple functions such as "sum" and "mean" to
> matrixes constructed from this class (not that I need to yet), and more
> importantly "kronecker", to convert from "repmat". (The help for
> "kronecker" from the Matrix package doesn't seem to mention kronecker,
> so I am a bit stuck). Any guidance greatly accepted -- I have read the
> overview, looked through the various Matrix-listed functions, and
> unsuccessfully tried searching R-help.
>
> Using R version 2.2.0, windows xp.
>
> Cheers,
> Rob.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 13 23:55:41 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:50:14 EST