Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion octave_pkg/make_oct_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
A=chebfun-5.7.0+

rm -rf $A
rm -f $A.tar.gz
mkdir $A
cp NEWS DESCRIPTION $A
cp ../LICENSE.txt $A/COPYING
pushd $A
mkdir inst
cp -ra ../../ inst/
cp -ra ../../* inst/
rm -rf inst/.git
rm -rf inst/.github
popd
Expand Down
2 changes: 1 addition & 1 deletion tests/chebfun/test_fracCalc.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Test file for fractional calculus.

function pass = test_fracInt(pref)
function pass = test_fracCalc(pref)

if ( nargin == 0 )
pref = chebfunpref();
Expand Down
2 changes: 1 addition & 1 deletion tests/chebop/test_scalarODE_damping.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [pass, u1, u2, info1, info2] = test_scalarODEdamping(pref)
function [pass, u1, u2, info1, info2] = test_scalarODE_damping(pref)
% A nonlinear CHEBOP test. This test tests a scalar ODE, where no breakpoints
% occur. It solves the problem using chebcolloc1, chebcolloc2 and ultraS
% discretizations. The problem solved requires damping for the Newton iteration
Expand Down
2 changes: 1 addition & 1 deletion tests/deltafun/test_imag.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Test file for @deltafun/imag.m

function pass = test_real(pref)
function pass = test_imag(pref)

if (nargin < 1)
pref = chebfunpref();
Expand Down
2 changes: 1 addition & 1 deletion tests/diskfun/test_coeffs2vals_vals2coeffs.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function pass = test_coeffs2vals( pref )
function pass = test_coeffs2vals_vals2coeffs( pref )

% Grab some preferences
if ( nargin == 0 )
Expand Down
32 changes: 16 additions & 16 deletions tests/linop/test_operarith.m
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
function pass = linop_operarith
% This test checks basic arithmetic operations of linops
% Toby Driscoll, 3 Feb 2014
d = [-1,4];
[Z,I,D,C,M] = linop.primitiveOperators(d);
f = chebfun(@(x) exp(sin(x).^2+2),d);
%%
F = M(f);
A = -(2*D^2 - F*C + 3*I);
Af = A*f;
%%
pass = norm( Af - (f.*cumsum(f)-2*diff(f,2)-3*f) ) < 1e4*eps;
function pass = test_operarith
% This test checks basic arithmetic operations of linops
% Toby Driscoll, 3 Feb 2014

d = [-1,4];
[Z,I,D,C,M] = linop.primitiveOperators(d);
f = chebfun(@(x) exp(sin(x).^2+2),d);

%%
F = M(f);
A = -(2*D^2 - F*C + 3*I);
Af = A*f;

%%
pass = norm( Af - (f.*cumsum(f)-2*diff(f,2)-3*f) ) < 1e4*eps;

end
2 changes: 1 addition & 1 deletion tests/spherefun/test_coeffs2vals_vals2coeffs.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function pass = test_coeffs2vals( pref )
function pass = test_coeffs2vals_vals2coeffs( pref )

% Grab some preferences
if ( nargin == 0 )
Expand Down