30 Apr 2009
05 Apr 2012)
Numerical computation with functions instead of numbers.
% VARMAT Variable-sized matrix object constructor.
% V = VARMAT(FUN) creates a variable-sized matrix object based on the
% function FUN. FUN should be a function of one argument N and return a
% a matrix of size NxN.
% VARMATs support arithmetic and referencing (slicing). It is mostly
% intended as a support class for CHEBOP and therefore is lightly
% documented. It may become inaccessible in future chebop releases.
% See also CHEBOP.
% Copyright 2011 by The University of Oxford and The Chebfun Developers.
% See http://www.maths.ox.ac.uk/chebfun/ for Chebfun information.
defn = ;
rowsel = ;
colsel = ;
function A = varmat(defn)
if nargin == 0
% Return an empty varmat
A = defn;
A.defn = defn;