matlab mxgetjc函数语法

发表matlab mxgetjc函数相关文章
一句话说明: Sparse matrix JC array

mxGetJc (C and Fortran)

Sparse matrix JC array

C Syntax

#include "matrix.h"
mwIndex *mxGetJc(const mxArray *pm);

Fortran Syntax

mwPointer mxGetJc(pm)
mwPointer pm

Arguments

pm

Pointer to a sparse mxArray

Returns

Pointer to the first element in the jc array, if successful, and NULL in C (0 in Fortran) otherwise. Possible causes of failure include

  • Specifying a full (nonsparse) mxArray.

  • Specifying a value for pm that is NULL in C (0 in Fortran). This usually means that an earlier call to mxCreateSparse failed.

Description

Use mxGetJc to obtain the starting address of the jc array. The jc array is an integer array having n+1 elements, where n is the number of columns in the sparse mxArray. The values in the jc array indirectly indicate columns containing nonzero elements. For a detailed explanation of the jc array, see mxSetJc.

Examples

See the following examples in matlabroot/extern/examples/refbook.

See the following examples in matlabroot/extern/examples/mx.

See the following examples in matlabroot/extern/examples/mex.

See Also

mxGetIr, mxGetNzmax, mxSetIr, mxSetJc, mxSetNzmax

欢迎转载,转载请注明来自一手册:http://yishouce.com/matlab/func/mxgetjc

与matlab mxgetjc用法相关的文章

友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1