SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Matrix Market I/O in Python.
Queries the contents of the Matrix Market file 'filename' to
extract size and storage information.
Inputs:
source - Matrix Market filename (extension .mtx) or open file object
Outputs:
rows,cols - number of matrix rows and columns
entries - number of non-zero entries of a sparse matrix
or rows*cols for a dense matrix
rep - 'coordinate' | 'array'
field - 'real' | 'complex' | 'pattern' | 'integer'
symm - 'general' | 'symmetric' | 'skew-symmetric' | 'hermitian'
Reads the contents of a Matrix Market file 'filename' into a matrix.
Inputs:
- source - Matrix Market filename (extensions .mtx, .mtz.gz)
- or open file object.
Outputs:
a - sparse or full matrix
Writes the sparse or dense matrix A to a Matrix Market formatted file.
Inputs:
target - Matrix Market filename (extension .mtx) or open file object a - sparse or full matrix comment - comments to be prepended to the Matrix Market file field - 'real' | 'complex' | 'pattern' | 'integer' precision - Number of digits to display for real or complex values.
| Local name | Refers to |
|---|---|
| asarray | numpy.asarray |
| conj | numpy.conj |
| imag | numpy.imag |
| ndarray | numpy.ndarray |
| os | os |
| real | numpy.real |
| zeros | numpy.zeros |