~ubuntu-branches/ubuntu/hardy/suitesparse/hardy

« back to all changes in this revision

Viewing changes to CXSparse/MATLAB/Test/cs_sparse2_mex.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    cs_mex_check (1, nz, 1, 0, 0, 1, pargin [2]) ;
21
21
    if (mxIsComplex (pargin [2]))
22
22
    {
 
23
#ifdef NCOMPLEX
 
24
        mexErrMsgTxt ("complex case not supported") ;
 
25
#else
23
26
        cs_complex_t *Tx ;
24
27
        cs_cl *A, *C, *T ;
25
28
        Tx = cs_cl_mex_get_double (nz, pargin [2]) ;
36
39
        cs_cl_spfree (C) ;
37
40
        pargout [0] = cs_cl_mex_put_sparse (&A) ;
38
41
        cs_free (Tx) ;
 
42
#endif
39
43
    }
40
44
    else
41
45
    {