Displaying 4 results from an estimated 4 matches for "shunran".
2023 Apr 12
1
Matrix scalar operation that saves memory?
I doubt that R's basic matrix capabilities can handle this, but have a look
at the Matrix package, especially if your matrix is some special form.
Bert
On Tue, Apr 11, 2023, 19:21 Shunran Zhang <szhang at ngs.gen-info.osaka-u.ac.jp>
wrote:
> Hi all,
>
> I am currently working with a quite large matrix that takes 300G of
> memory. My computer only has 512G of memory. I would need to do a few
> arithmetic on it with a scalar value. My current code looks like this...
2023 Apr 12
2
Matrix scalar operation that saves memory?
Hi all,
I am currently working with a quite large matrix that takes 300G of
memory. My computer only has 512G of memory. I would need to do a few
arithmetic on it with a scalar value. My current code looks like this:
mat <- 100 - mat
However such code quickly uses up all of the remaining memory and got
the R script killed by OOM killer.
Are there any more memory-efficient way of doing
2023 Apr 12
1
Matrix scalar operation that saves memory?
...On Wed, Apr 12, 2023 at 7:34?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:
> I doubt that R's basic matrix capabilities can handle this, but have a look
> at the Matrix package, especially if your matrix is some special form.
>
> Bert
>
> On Tue, Apr 11, 2023, 19:21 Shunran Zhang <
> szhang at ngs.gen-info.osaka-u.ac.jp>
> wrote:
>
> > Hi all,
> >
> > I am currently working with a quite large matrix that takes 300G of
> > memory. My computer only has 512G of memory. I would need to do a few
> > arithmetic on it with a scala...
2023 Apr 12
1
Matrix scalar operation that saves memory?
...apped in and out from the
disk that allows larger things to be done, albeit often much slower. I also
note that you can remove some things you are not using and hope garbage
collection happens soon enough.
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Shunran Zhang
Sent: Tuesday, April 11, 2023 10:21 PM
To: r-help at r-project.org
Subject: [R] Matrix scalar operation that saves memory?
Hi all,
I am currently working with a quite large matrix that takes 300G of
memory. My computer only has 512G of memory. I would need to do a few
arithmetic on it wit...