The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: very specific symmetric matrix
Replies: 5   Last Post: Jun 16, 2014 3:31 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: very specific symmetric matrix
Posted: Jun 16, 2014 3:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Eric" wrote in message <lnlr9p$f3u$>...
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <lne84h$19k$>...
> >
> > > Thanks; Is there some version of blkdiag or something else which allows you to put blocks on the off-diagonals, instead of only main diagonal?
> >
> > spdiags(), it will creates sparse matrix, but can easity converted to regular matrix using full()
> >
> > Bruno

> I don't see how that answers my question; I'm talking about taking blocks and placing them on diagonals; while there is a command to place them on the main diag (blkdiag), there doesn't seem to be a straightforward way to play blocks on the off-diagonals.

If your blocks is constant in size, might be you can you kron() combined with spdiags() to accomplish building matrix with the blocks off-diagonals


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.