Home > manopt > autodiff > functions_AD > tocstruct.m

tocstruct

PURPOSE ^

SYNOPSIS ^

function B = tocstruct(A)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function B = tocstruct(A)
0002     if iscstruct(A)
0003         B = A;
0004     elseif isnumeric(A)
0005         B.real = real(A);
0006         B.imag = imag(A);
0007     else
0008         error('Input does not have the expected format.');
0009     end
0010 end

Generated on Fri 30-Sep-2022 13:18:25 by m2html © 2005