function [ y, symm ] = cvx_s_complex( m, n, symm )

% CVX_S_COMPLEX Complex variables.

mn   = m * n;
rvec = 1 : 2 * mn;
cvec = ceil( 0.5 * rvec );
vvec = ones( 1, 2 * mn );
vvec( 2 : 2 : end ) = 1i;
y = sparse( rvec( : ), cvec( : ), vvec( : ), 2 * mn, mn );

% Copyright 2012 CVX Research, Inc. 
% See the file COPYING.txt for full copyright information.
% The command 'cvx_where' will show where this file is located.
