Skip to content

Commit

Permalink
Added copyright notices to all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpf committed Aug 17, 2009
1 parent c6f7549 commit 39e0709
Show file tree
Hide file tree
Showing 109 changed files with 1,147 additions and 105 deletions.
8 changes: 5 additions & 3 deletions +spot/+utils/fdct_c2v.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
% the curvelet coefficients contained in X. When parameter
% CN is omitted the vector length is determined from X.

% Copyright 2008, Gilles Hennenfent and Ewout van den Berg
% http://www.cs.ubc.ca/labs/scl/sparco
% $Id$
% Copyright 2008, Gilles Hennenfent, Ewout van den Berg, Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% If vector size is not give, determine from coefficients
if nargin < 2
Expand Down
8 changes: 5 additions & 3 deletions +spot/+utils/fdct_v2c.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
% level, the treatment of the finest level (e.g. AC=2 for
% wavelets), and the number of angles.

% Copyright 2008, Gilles Hennenfent and Ewout van den Berg
% http://www.cs.ubc.ca/labs/scl/sparco
% $Id$
% Copyright 2008, Gilles Hennenfent and Ewout van den Berg, Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

k = prod(hdr{1}{1});
v{1}{1} = reshape(x(1:k),hdr{1}{1});
Expand Down
8 changes: 5 additions & 3 deletions +spot/+utils/fieldname.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
% See also parseParams, getOption

% Copyright 2008, Ewout van den Berg and Michael P. Friedlander
% http://www.cs.ubc.ca/labs/scl/sparco
% $Id: fieldname.m 1402 2009-06-18 23:35:43Z mpf $
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

str = regexprep(lower(name),'\W','_');
end

6 changes: 4 additions & 2 deletions +spot/+utils/getOption.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
% returned.

% Copyright 2008, Ewout van den Berg and Michael P. Friedlander
% http://www.cs.ubc.ca/labs/scl/sparco
% $Id: getOption.m 1402 2009-06-18 23:35:43Z mpf $
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

import spot.utils.*

Expand Down
8 changes: 7 additions & 1 deletion +spot/+utils/isposintmat.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
function r = isposintmat(m)
%ispostintmat Check if input vector is positive integer.

r = all(all( (round(m) == m) & (m > 0) ));
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

r = all(all( (round(m) == m) & (m > 0) ));
6 changes: 6 additions & 0 deletions +spot/+utils/isposintscalar.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
function r = isposintscalar(s)
%ispostintscalar Check if input vector is positive scalar.

% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

r = isscalar(s) && (round(s) == s) && s > 0;
27 changes: 14 additions & 13 deletions +spot/+utils/parseOptions.m
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
function [opts,args] = parseOptions(args, flagFields, optsFields)
%parseOptions Parse options
%
% [OPTS,ARGS] = parseOptions(ARGS,FLAGFIELDS,OPTSFIELDS) goes
% throught parameter list ARGS and looks for all flag strings
% indicated by FLAGFIELDS and keyword-value pairs with keywords
% given by OPTSFIELDS. All flag fields and encountered
% keyword-value pairs are stored in OPTS. The remaining arguments
% are returned in ARGS.

% 29 Jul 09: Imported from the Sparco project.

% Copyright 2008-2009, Ewout van den Berg and Michael P. Friedlander
% http://www.cs.ubc.ca/labs/scl/spot
%parseOptions Parse options
%
% [OPTS,ARGS] = parseOptions(ARGS,FLAGFIELDS,OPTSFIELDS) goes
% throught parameter list ARGS and looks for all flag strings
% indicated by FLAGFIELDS and keyword-value pairs with keywords
% given by OPTSFIELDS. All flag fields and encountered
% keyword-value pairs are stored in OPTS. The remaining arguments
% are returned in ARGS.

% Copyright 2008-2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

import spot.utils.*

Expand Down
3 changes: 3 additions & 0 deletions +spot/counter.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%counter Counter class used to track no. of matrix-vector products.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

properties
Expand Down
19 changes: 19 additions & 0 deletions +spot/gpl.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function gpl()
%GPL Location of full copyright information for the Spot Toolbox.

% Copyright 2009 Ewout van den Berg and Michael P. Friedlander.
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

parts = regexp(mfilename('fullpath'),filesep,'split');
spotpath = [filesep fullfile(parts{1:end-2})];

fprintf('\n');
fprintf(' Full copyright information for the Spot Toolbox\n');
fprintf(' can be found in\n\n');
fprintf(' %s%s%s\n',spotpath,filesep,'COPYING.txt');
fprintf('\n');

end % function gpl
3 changes: 3 additions & 0 deletions @opSpot/bicg.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
% Spot operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% Check if A is square
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/bicgstab.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
% Spot operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% Check if A is square
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/blkdiag.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
% See also opBlockDiag.
%
% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

y = opBlockDiag([],varargin{:},0); % No weight, zero overlap
3 changes: 3 additions & 0 deletions @opSpot/cgs.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
% Spot operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% Check if A is square
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/char.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
% char(A) converts the Spot operator into a string representation.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

m = A.size(1);
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/conj.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%CONJ Elementwise conjugate of operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

A = opConj(A);
3 changes: 3 additions & 0 deletions @opSpot/ctranspose.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
% See also opCTranspose, opTranspose, transpose.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

result = opCTranspose(A);
3 changes: 3 additions & 0 deletions @opSpot/diag.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
% See also opDiag.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

[m,n] = size(A);
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/disp.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ function disp(A,name)
% DISP(A,NAME) displays a Spot operator along with its name.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if nargin < 1
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/display.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ function display(A)
% DISPLAY(A) displays an operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

disp(A,inputname(1));
3 changes: 3 additions & 0 deletions @opSpot/divide.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
% See also mldivide, @opSpot/mrdivide, opFoG, opInverse, opPInverse, spotparams.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if mode == 1
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/double.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
% matrix.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if size(A,1) < size(A,2)
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/drandn.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
% See also opSpot.rrandn, randn.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

n = size(A,2);
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/eigs.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
% Again, see Matlab's built-in EIGS for details on these calls.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% NOTE: Because Spot does support "backslash" for operators, it
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/end.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
% returned.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% Get operator size
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/full.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
% See also @opSpot/double.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

x = full(double(A));
3 changes: 3 additions & 0 deletions @opSpot/gmres.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
% Spot operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if size(A,1) ~= size(A,2)
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/horzcat.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
% See also vertcat, opDictionary.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

y = opDictionary(varargin{:});
3 changes: 3 additions & 0 deletions @opSpot/imag.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%IMAG Complex imaginary part.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if isreal(A)
Expand Down
17 changes: 11 additions & 6 deletions @opSpot/inv.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
function y = inv(A)

%INV Inverse of a linear operator.
%
% inv(A) returns the operator inverse of A. This routine is
% a simple front-end to opInverse.
%
% See also opInverse.
%
% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

if size(A,1) ~= size(A,2)
error('Operator must be square.');
else
y = opInverse(A);
end
y = opInverse(A);
3 changes: 3 additions & 0 deletions @opSpot/isempty.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%isempty True for empty operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

[m,n] = size(A);
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/isreal.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%isreal True for real operator.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

% Get size information
Expand Down
3 changes: 3 additions & 0 deletions @opSpot/isscalar.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%isscalar True if operator is a scalar.

% Copyright 2009, Ewout van den Berg and Michael P. Friedlander
% See the file COPYING.txt for full copyright information.
% Use the command 'spot.gpl' to locate this file.

% http://www.cs.ubc.ca/labs/scl/spot

[m,n] = size(A);
Expand Down
Loading

0 comments on commit 39e0709

Please sign in to comment.