~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to MESHND/Contents.m

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%MESHND: creation and nested dissection of regular 2D and 3D meshes. 
 
2
%
 
3
%   meshnd         - creation and nested dissection of a regular 2D or 3D mesh.
 
4
%   meshnd_quality - test the ordering quality computed by meshnd.
 
5
%   meshsparse     - convert a 2D or 3D mesh into a sparse matrix matrix.
 
6
%   meshnd_example - example usage of meshnd and meshsparse.
 
7
%
 
8
% The outputs of the meshnd example and meshnd_quality are in meshd.png,
 
9
% meshnd_quality_out.txt, and meshnd_quality.png.
 
10
%
 
11
% Example:
 
12
%   % with no inputs or outputs, meshnd runs a demo:
 
13
%   meshnd          
 
14
%
 
15
%   % create the sparse matrix for a 7-by-5-by-2 mesh:
 
16
%   A = meshsparse (meshnd (7,5,2)) ;
 
17
%
 
18
%   % create a 7-by-5-by-2 mesh and find the nested dissection ordering:
 
19
%   [G p] = meshnd (7,5,2) ;
 
20
%   A = meshsparse (G) ;
 
21
%   subplot (1,2,1) ; spy (A) ;
 
22
%   subplot (1,2,2) ; spy (A (p,p)) ;
 
23
%
 
24
 
 
25
% Copyright 2007, Timothy A. Davis, Univ. of Florida
 
26
% VERSION 1.1.0, Nov 1, 2007