Code covered by the BSD License  

Highlights from
matlab2hypre and hypre2matlab

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 7.09 KB File ID: #27437

matlab2hypre and hypre2matlab

by Andrew Knyazev

 

30 Apr 2010

Read and write files with sparse matrices and vectors in hypre format

| Watch this File

File Information
Description

MATLAB sparse matrix converter to Hypre
MATLAB vector converter to Hypre
Hypre sparse matrix converter to MATLAB
Hypre vector converter to MATLAB

The Parallel High Performance Preconditioners (hypre) is a library of routines for scalable (parallel) solution of linear systems. The built-in BLOPEX package in addition allows solving eigenvalue problems. See http://en.wikipedia.org/wiki/Hypre and http://en.wikipedia.org/wiki/BLOPEX

Hypre currently does not have a direct MATLAB interface. These codes allow one to transfer data between hypre and MATLAB/OCTAVE.

Our previous code,
http://www.mathworks.com/matlabcentral/fileexchange/7421-matlab-to-hypre-and-hypre-to-matlab-matrix-and-vector-converter
is not Hypre 2.6.0b compatible.

GNU OCTAVE compatible. Tested with Octave 3.2.3 and Hypre 2.6.0b.

This code is a part of the BLOPEX package:
http://en.wikipedia.org/wiki/BLOPEX or directly http://code.google.com/p/blopex/

Copyright 2010 Bryan C. Smith, Diana Zakaryan, Andrew V. Knyazev

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
31 Jul 2011 Andrew Knyazev

Hypre does NOT support complex arithmetic. A complex valued matrix in MATLAB will be transformed into a real matrix by the matlab2hypre code, by simply dropping the imaginary part. No warning is generated by the code in this case.

20 Aug 2011 Andrew Knyazev

Similar functions for PETSc are available in the PETSc distribution in the directory bin/matlab , see http://www.mcs.anl.gov/petsc/

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
mathematics Andrew Knyazev 03 May 2010 10:24:07
data export Andrew Knyazev 03 May 2010 10:24:07
data import Andrew Knyazev 03 May 2010 10:24:07
matrix Andrew Knyazev 03 May 2010 10:24:07
hypre Andrew Knyazev 03 May 2010 10:24:07

Contact us at files@mathworks.com