IDL

SPRSTP

SPRSTP

The SPRSTP function constructs the transpose of a sparse matrix.

Examples


This example creates a 100 by 100 pseudo-random sparse matrix, with 1000 non-zero elements, and then computes the product of the matrix and its transpose:

n = 100                   ;Dimensions of matrix
m = 1000                  ;Number of non-zero elements
a = SPRSIN(RANDOMU(seed, m)*n, RANDOMU(seed, m)*n, $
    RANDOMU(seed, m),n)
b = SPRSAB(a, SPRSTP(a))  ;Transpose and create the product

Syntax


Result = SPRSTP(A)

Return Value


Returns the sparse matrix of the given sparse array.

Arguments


A

A row-indexed sparse array created by the SPRSIN function.

Keywords


None

Version History


4.0

Introduced

See Also


FULSTR, LINBCG, SPRSAB, SPRSAX, SPRSIN, READ_SPR, WRITE_SPR



Notes


This page has no user notes yet. Be the first one!


This information is not subject to the controls of the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). However, it may be restricted from transfer to various embargoed countries under U.S. laws and regulations.
© 2014 Exelis Visual Information Solutions