This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

HarwellBoeing (.rsa, .rua, ...)

Harwell-Boeing matrix format.
Used for exchanging and storing sparse matrices.
Plain text format.
File format of the Harwell-Boeing collection of standard test matrices.
The three-letter file extension encodes matrix properties that are also represented in the file.
The first letter of the file extension encodes the data type: "r" (real), "c" (complex), or "p" (pattern).
The second letter denotes the symmetry property: "s" (symmetric), "u" (unsymmetric), "h" (Hermitian), "z" (skew-symmetric), or "r" (rectangular).
The third letter of the file extension is either "a" (assembled) or "e" (elemental unassembled).
Stores matrices in a sparse representation.
Developed in 1992 by Iain Duff, Roger Grimes, and John Lewis.
  • Import and Export fully support the Harwell-Boeing file format.
  • Import imports a matrix from a Harwell-Boeing file.
  • Export exports any numerical or pattern matrix to a Harwell-Boeing file.
  • Import reads a Harwell-Boeing file, returning the matrix it represents as a sparse array.
  • Import imports the specified element from a Harwell-Boeing file.
  • Import imports multiple elements.
  • Export creates a Harwell-Boeing file by treating expr as specifying element elem.
  • Export treats each as specifying the corresponding .
  • Export exports expr with the specified option elements taken to have the specified values.
  • Export uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Import and Export.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties and settings
  • Data representation elements:
"Data"matrix data given as a sparse array
"Graphics"a visual representation of the values of the matrix elements
  • Import uses the element by default.
  • Meta-information elements:
"Key"document identification string
"Title"document title
"MatrixStructure"symmetry properties of the matrix
  • Possible values for are:
"Hermitian"matrix which is equal to its own conjugate transpose
"Rectangular"nonsquare matrix
"SkewSymmetric"matrix whose transpose is also its negative
"Symmetric"matrix which is equal to its transpose
"Unsymmetric"square matrix without transposition symmetry
Import a Harwell-Boeing matrix file and render it as graphics:
Read the same file as a sparse array:
Import a sparse matrix and render it as a GraphPlot:
This exports a 1-by-2 matrix to the Harwell-Boeing format:
Import the previous output:
Import a Harwell-Boeing matrix file and render it as graphics:
In[1]:=
Click for copyable input
Out[1]=
Read the same file as a sparse array:
In[2]:=
Click for copyable input
Out[2]=
 
Import a sparse matrix and render it as a GraphPlot:
In[1]:=
Click for copyable input
Out[1]=
 
This exports a 1-by-2 matrix to the Harwell-Boeing format:
In[1]:=
Click for copyable input
Out[1]=
Import the previous output:
In[2]:=
Click for copyable input
Out[2]=