HyperWorks Solvers

GET_MATRIX_INFO

GET_MATRIX_INFO

Previous topic Next topic No expanding text in this topic  

GET_MATRIX_INFO

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Subroutine Type

Utility/Data Access

Definition

Returns information about a Reference_Matrix element.

Use

The function can be called by any user subroutine.

Calling Syntax

Fortran

CALL GET_MATRIX_INFO(id, type, nrows, ncols, size, ierr)

 

C

c_get_matrix_info(id, type, nrows, ncols, size, ierr)

 

Python

[type, nrows, ncols, size, ierr] = py_get_matrix_info(id)

 

MATLAB

[type, nrows, ncols, size, ierr] = m_get_matrix_info(id)

Input Arguments

[integer]id

The ID of the Reference_Matrix element.

Output Values

[integer] type

The type of Reference_Matrix as follows:

1

Sparse.

2

Full, row-order.

3

Full, column-order.

 

[integer] nrows

The number of rows.

 

[integer] ncols

The number of columns.

 

[integer] size

The total number of entries.  For sparse matrix, it is the number of non-zero entries.  For full matrix, it is nrows*ncols.

 

[integer] ierr

An integer that specifies the status of the call to the GET_MATRIX_INFO as follows:

0

Normal return.

1

ID not found, call ignored.

See Also:

Data Access Subroutines