# mxGetIr, mxGetJc, mxSetIr, mxSetJc

## Purpose

Get and set the sparse `ir` and `jc` arrays.

## C Synopsis

    int *mxGetIr(pm)
      Matrix *pm;
    void mxSetIr(pm,ir)
      Matrix *pm;
      int *ir;
    int *mxGetJc(pm)
      Matrix *pm;
    void mxSetJc(pm,jc)
      Matrix *pm;
      int *jc;

## Fortran Synopsis

    integer*4 function mxGetIr(pm)
    integer*4 function mxGetJc(pm)
    subroutine mxSetIr(pm,ir)
    subroutine mxSetJc(pm,jc)
    integer*4 pm,ir,jc

## Arguments

`ir`
  pointer to the `ir` array
`jc`
  pointer to the `jc` array
`pm`
  pointer to the Matrix structure

## Description

These routines let you get and set the pointers to the `ir` and `jc` arrays associated with sparse Matrices. See the "Matrix Data Structure" section in Chapter 1 for more information on these properties.

If the Matrix is full, `mxGetIr` and `mxGetJc` return `NULL`.

(c) Copyright 1994 by The MathWorks, Inc.