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_a_mrdivider.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/runtime
    
    the code of the file until where you have to start completion: % function adj = adimat_a_mrdivider(divident, divisor, adj)
%
% This determines the adjoint of divisor in expr = divident / divisor
% where adj is the adjoint of expr.
%
% see also adimat_a_mldividel
%
% This file is part of the ADiMat runtime environment.
%
% Copyright 2010-2014 Johannes Willkomm
%
function adj = adimat_a_mrdivider(divident, divisor, adj)
  if isscalar(divisor)
    res = divident / divisor
    
function adj = adimat_a_mrdivider(divident, divisor, adj)
%
% This determines the adjoint of divisor in expr = divident / divisor
% where adj is the adjoint of expr.
%
% see also adimat_a_mldividel
%
% This file is part of the ADiMat runtime environment.
%
% Copyright 2010-2014 Johannes Willkomm
%
function adj = adimat_a_mrdivider(divident, divisor, adj)
  if isscalar(divisor)
    res = divident / divisor;
    adj = adimat_allsum(-res .* adj ./ divisor);
  else
    adj = adimat_a_mldividel(divisor.', divident.', adj.').';
  end