function H = mldivide(C, F)
%\   SPHEREFUNV left divide.
%   C\F Divides each component of the SPHEREFUNV F by the DOUBLE C. 
%
%   Only allowed to divide a SPHEREFUNV by a DOUBLE.
%
% See also SPHEREFUNV/MRDIVIDE.

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

if ( isempty(C) || isempty(F) )
    H = spherefunv;
    return
end

if ( ~isa(C, 'double') )
    error('SPHEREFUN:SPHEREFUNV:mldivide:nonScalar', ...
        'Division must be by a scalar.');
end

% Left divide.
H = F;
for j = 1 : 3
    H.components{j} = mldivide(C, F.components{j});
end

end

chebfun
github-repos/MATLAB/chebfun-chebfun/chebfun-8c49396a55e46ddd57a1d108c6a8f32e37536d54/@spherefunv/mldivide.m
chebfun
github-repos/MATLAB/chebfun-chebfun
8c49396a55e46ddd57a1d108c6a8f32e37536d54