| MATLAB Central > MATLAB Newsreader > Computing ( X' * X ) Faster? |
|
|
|
I want to compute a real matrix transpose times itself. Is there a faster way to do this than simply computing XtX = X' * X ; ? My X matrix is rather large and not square ( M x N with M > N and M and N are in the tens or even hundreds of thousands). |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 17 Nov, 2009 18:38:19 Message: 2 of 30 |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdupu7$aa6$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: James Tursa Date: 17 Nov, 2009 19:07:01 Message: 3 of 30 |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdupu7$aa6$1@fred.mathworks.com>... |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdupu7$aa6$1@fred.mathworks.com>... |
|
|
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hduv38$87p$1@fred.mathworks.com>... |
|
|
|
> It might be worth telling us what you want to do with XtX. It's very unusual to >need to compute such a matrix explicitly. For example, if all you want is some matrix-?vector product y=XtX*b, then you would certainly compute this according to |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 17 Nov, 2009 21:00:23 Message: 9 of 30 |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdv24o$i7d$1@fred.mathworks.com>... |
|
"Chad " <parishcm@ornl.gov> wrote in message <hdv1lm$iqp$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: James Tursa Date: 17 Nov, 2009 21:39:02 Message: 11 of 30 |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hduv38$87p$1@fred.mathworks.com>... |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hdv2t7$6gr$1@fred.mathworks.com>... |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdv24o$i7d$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 17 Nov, 2009 21:53:02 Message: 14 of 30 |
|
"Matt " <xys@whatever.com> wrote in message <hdv5d5$d1a$1@fred.mathworks.com>... |
|
"Matt " <xys@whatever.com> wrote in message <hdv5s7$csm$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 17 Nov, 2009 22:08:01 Message: 16 of 30 |
|
"Chad " <parishcm@ornl.gov> wrote in message <hdv1lm$iqp$1@fred.mathworks.com>... |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hdv6s1$e5o$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 17 Nov, 2009 22:53:02 Message: 18 of 30 |
|
"Matt " <xys@whatever.com> wrote in message <hdv8f6$o0q$1@fred.mathworks.com>... |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hdv9ge$rgp$1@fred.mathworks.com>... |
|
> Note that: |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 18 Nov, 2009 06:22:04 Message: 21 of 30 |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdvk9e$o79$1@fred.mathworks.com>... |
|
Subject: Computing ( X' * X ) Faster? From: Bruno Luong Date: 18 Nov, 2009 06:43:03 Message: 22 of 30 |
|
"Matt " <xys@whatever.com> wrote in message <hdvd2q$704$1@fred.mathworks.com>... |
|
|
|
"Chad " <parishcm@ornl.gov> wrote in message <he0qgf$hhl$1@fred.mathworks.com>... |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <hdvk9e$o79$1@fred.mathworks.com>... |
|
"Matt " <xys@whatever.com> wrote in message <hdv6j6$qst$1@fred.mathworks.com>... |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <he19e4$rfu$1@fred.mathworks.com>... |
|
> ====== |
|
"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message <he1ddj$6bv$1@fred.mathworks.com>... |
|
i think you may be correct on the memory issue--i'll keep playing with it, thanks. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| optimization tr... | Matt J | 18 Nov, 2009 16:14:12 |
| mm | Matt J | 18 Nov, 2009 13:57:27 |
| lsqnonneg | Matt J | 18 Nov, 2009 13:57:27 |
| transpose | J RP | 17 Nov, 2009 13:29:22 |
Contact us at files@mathworks.com
