view test/classes/@SizeTester/size.m @ 20890:ef9b2a88fbb5 stable

Fixed isequal for comparison of objects with overridden size (bug #44334) * scripts/general/private/__isequal__.m: Removed comparison of built-in size (and ndims) with overridden size (and ndims). The algorithms compares the built-in values now. * test/classes/@SizeTester/SizeTester.m, test/classes/@SizeTester/size.m, test/classes/@SizeTester/numel.m: Implemented test class, which overrides its public size and numel in a consistent way. * test/classes/classes.tst: Added test cases for this bug and other related bugs.
author Oliver Heimlich <oheim@posteo.de>
date Mon, 14 Dec 2015 12:19:38 +0000
parents
children deb0273199a2
line wrap: on
line source

function s = size (this)

  s = this.desired_size;

endfunction