COEFFS_CONJ2FULL

COEFFS_CONJ2FULL

Contents

function [Coeff_full] = coeffs_conj2full(Coeff_part,row_idx,col_idx, ordering, type)
        

Transform coefficients from reduced conjugate to full representation

This function computes the full coefficients with ordering specified in the input array with the same name, given the coefficients in conjugate ordering up to the conjugate center index. It is used in a cellfun of conj2lex as well for the autonomous computation.

See also: COEFFS_CONJ2LEX, COEFFS_LEX2REVLEX, COEFFS_SETUP

switch type
    case 'TaylorCoeffs'
        if isempty(row_idx)
            Coeff_full.coeffs = [Coeff_part.coeffs, flip(conj(Coeff_part.coeffs(:,1:col_idx,:)),2)];
            Coeff_full.coeffs = Coeff_full.coeffs(:,ordering,:);
        else
            Coeff_full.coeffs = [Coeff_part.coeffs, flip(conj(Coeff_part.coeffs(row_idx,1:col_idx)),2)];
            Coeff_full.coeffs = Coeff_full.coeffs(:,ordering);
        end
    case 'CompCoeffs'
            z_k = numel(ordering);
            Coeff_full = zeros(size(Coeff_part,1),z_k,size(Coeff_part,3));
            for i = 1:size(Coeff_part,3)
                Coeff_full(:,:,i) = [Coeff_part(:,:,i), flip(conj(Coeff_part(:,1:col_idx,i)),2)];
                Coeff_full(:,:,i) = Coeff_full(:,ordering,i);
            end
end
        
end