%PAGEMRDIVIDE Page-wise right matrix divide.
%   X = PAGEMRDIVIDE(B,A) computes the right matrix divide of each page of
%   N-D array A into each page of N-D array B:
%             X(:,:,i) = B(:,:,i) / A(:,:,i)
%
%   The pages of B and A must be valid inputs to mrdivide (/).
%
%   If B and A have more than 3 dimensions, then PAGEMRDIVIDE implicitly
%   expands the extra dimensions to divide all page combinations:
%              X(:,:,i,j,k) = B(:,:,i,j,k) / A(:,:,i,j,k)
%
%   All dimensions beyond the first two must have compatible sizes. Two
%   inputs have compatible sizes if, for every dimension, the dimension
%   sizes of the inputs are either the same or one of them is 1.
%
%   X = PAGEMRDIVIDE(B,A,transpA) optionally applies a transposition to
%   A. transpA can be one of:
%
%       'transpose' - Apply transposition
%      'ctranspose' - Apply complex conjugate transposition
%            'none' - Do not apply a transposition
%
%   For example, PAGEMRDIVIDE(B,A,'transpose') computes
%              X(:,:,i) = B(:,:,i) / A(:,:,i).' 
%
%   [X,RCONDA] = PAGEMRDIVIDE(...) also returns RCONDA(1,1,i), which is the
%   reciprocal of the condition number of A(:,:,i). If the pages of A are
%   M-by-N rectangular matrices with M~=N, then RCONDA is estimated using
%   the entries of R in the QR decomposition. If RCONDA(1,1,i) < eps, then
%   X(:,:,i) = B(:,:,i) / A(:,:,i) would warn because the matrix is
%   ill-conditioned. PAGEMRDIVIDE never warns for ill-conditioned inputs.
%
%   See also MRDIVIDE, PAGEMLDIVIDE, PAGEMTIMES, PAGETRANSPOSE, PAGECTRANSPOSE.

%   Copyright 2021-2022 The MathWorks, Inc.
