5.0

5.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 7.54 KB File ID: #23391

Triangular and diagonal indexing

by Bruno Luong

 

22 Mar 2009

A collection of functions to index diagonal and triangular parts of the matrix

| Watch this File

File Information
Description

For a symmetric matrix A, A(:) (full "vectorization") contains more information than is strictly necessary, since the matrix is completely determined by the symmetry together with the lower triangular portion, that is, the n(n+1)/2 entries on and below the main diagonal. The half-vectorization, built as following with the package:
  > A(itril(size(A))),
of a symmetric n×n matrix A is the n(n+1)/2 × 1 column vector obtained by "vectorizing" only the lower triangular part of A.

This package provides functions for conveniently indexing the triangular parts (both lower and upper) parst as well as the diagonals of the matrix.

It also provides the so called Duplication and Elimination matrices which is used to convert between full and half-vectorization of the matrix.

The output indices are useful for programmers who wish to manipulate directly the triangular parts without calling built-in functions such as TRIU, TRIL and DIAG

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
27 Jan 2010 Vanesa  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matrix Bruno Luong 22 Mar 2009 21:35:51
triangular Bruno Luong 22 Mar 2009 21:35:51
upper Bruno Luong 22 Mar 2009 21:35:51
lower Bruno Luong 22 Mar 2009 21:35:51
diagonal Bruno Luong 22 Mar 2009 21:35:51
linear algebra Bruno Luong 22 Mar 2009 21:35:51
elimination Bruno Luong 22 Mar 2009 21:35:51
duplication Bruno Luong 22 Mar 2009 21:35:51
symmetric Bruno Luong 22 Mar 2009 21:35:51
indexing Bruno Luong 22 Mar 2009 21:35:51
indexing Geetha 13 Nov 2009 15:53:12

Contact us at files@mathworks.com