Skip to content
Back to formatted view

Raw Message

Message-ID: <1328894633646-4376952.post@n4.nabble.com>
Date: 2012-02-10T17:23:53Z
From: xiddw
Subject: Split matrix into square submatices
In-Reply-To: <CAP01uR=98AAsh-roFruC9ZZHoaWfpxznP39PFNWY+yFQ8t4B-g@mail.gmail.com>

Thanks to Peter and Gabriel for their comments,

The first way which Peter commented was my first approach, however as I use
it for a 'large' matrix (in my case nrow = ncol = 512) and I want to split
it into very small matrices (e.g. nrow = ncol = {4, 8, 16}) both nested
loops I think are a quite expensive and that's why I was looking for a
better way.

The Gabor's approach works perfect for my needs, thanks :)

--
View this message in context: http://r.789695.n4.nabble.com/Split-matrix-into-square-submatices-tp4375563p4376952.html
Sent from the R help mailing list archive at Nabble.com.