You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: adimat_sqrtm.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/runtime
    
    the code of the file until where you have to start completion: % function [R U T] = adimat_sqrtm(x)
%
% Compute z = sqrtm(x). This uses a schur method as described in "A
% Schur method for the Square Root of a Matrix", Åke Björck, 1982. 
% 
% This function is differentiation with ADiMat to create the runtime
% functions g_adimat_sqrtm, d_adimat_sqrtm, and a_adimat_sqrtm.
%
% see also g_adimat_sqrtm, d_adimat_sqrtm, and a_adimat_sqrtm.
%
% This file is part of the ADiMat runtime environment
%
% Copyright 2013 Johannes Willkomm, Institute for Scientific Computing
%                     TU Darmstadt
function [R U T] = adimat_sqrtm(x)

  [U T] = adimat_schur(x)
    
function [R U T] = adimat_sqrtm(x)
%
% Compute z = sqrtm(x). This uses a schur method as described in "A
% Schur method for the Square Root of a Matrix", Åke Björck, 1982. 
% 
% This function is differentiation with ADiMat to create the runtime
% functions g_adimat_sqrtm, d_adimat_sqrtm, and a_adimat_sqrtm.
%
% see also g_adimat_sqrtm, d_adimat_sqrtm, and a_adimat_sqrtm.
%
% This file is part of the ADiMat runtime environment
%
% Copyright 2013 Johannes Willkomm, Institute for Scientific Computing
%                     TU Darmstadt
function [R U T] = adimat_sqrtm(x)

  [U T] = adimat_schur(x);
%  [U T] = schur(x, 'complex');
%  squal = norm(U * T * U' - x)

  R = adimat_sqrtm_triu(T);
  
  R = U * R * U';
%  squal = norm(R * R - x)
end