From: <sla...@us...> - 2012-03-24 16:34:29
|
Revision: 10034 http://octave.svn.sourceforge.net/octave/?rev=10034&view=rev Author: slackydeb Date: 2012-03-24 16:34:23 +0000 (Sat, 24 Mar 2012) Log Message: ----------- ga: test error when function requires more nvars than specified Trivial error. Modified Paths: -------------- trunk/octave-forge/main/ga/inst/ga.m Modified: trunk/octave-forge/main/ga/inst/ga.m =================================================================== --- trunk/octave-forge/main/ga/inst/ga.m 2012-03-24 16:34:10 UTC (rev 10033) +++ trunk/octave-forge/main/ga/inst/ga.m 2012-03-24 16:34:23 UTC (rev 10034) @@ -130,6 +130,9 @@ # TODO ## type of arguments +%!function f = ff (nvars) +%! f = @(x) sum (x(:, 1:nvars) .** 2, 2); +%!error x = ga (ff (3), 2); # TODO # TODO: test that each field in the user-specified "problem" structure is checked This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |