comparison liboctave/array/Sparse.cc @ 17285:f519560bfcb4

maint: Use Octave spacing conventions in cset 79d4b6089968. * liboctave/array/Sparse.cc: Use spacing conventions in %!tests, wrap long lines. * scripts/general/private/__isequal__.m: Use true/false rather than logical(1)/logical(0) for clarity.
author Rik <rik@octave.org>
date Tue, 20 Aug 2013 06:56:51 -0700
parents 79d4b6089968
children 7ed397c8ca68
comparison
equal deleted inserted replaced
17284:c8f94d9d34d0 17285:f519560bfcb4
2792 %! s = sparse ([], [], [], 1, 1); 2792 %! s = sparse ([], [], [], 1, 1);
2793 %! s(1,:) = []; 2793 %! s(1,:) = [];
2794 %! assert (s, sparse ([], [], [], 0, 1)); 2794 %! assert (s, sparse ([], [], [], 0, 1));
2795 2795
2796 ## Test (bug #37321) 2796 ## Test (bug #37321)
2797 2797 %!test a=sparse (0,0); assert (all (a) == sparse ([1]));
2798 %!test a=sparse (0,0); assert (all (a)==sparse ([1])) 2798 %!test a=sparse (0,1); assert (all (a) == sparse ([1]));
2799 %!test a=sparse (0,1); assert (all (a)==sparse ([1])) 2799 %!test a=sparse (1,0); assert (all (a) == sparse ([1]));
2800 %!test a=sparse (1,0); assert (all (a)==sparse ([1])) 2800 %!test a=sparse (1,0); assert (all (a,2) == sparse ([1]));
2801 %!test a=sparse (1,0); assert (all (a,2)==sparse ([1])) 2801 %!test a=sparse (1,0); assert (size (all (a,1)), [1 0]);
2802 %!test a=sparse (1,0); assert (isequal (size (all (a,1)),[1 0])) 2802 %!test a=sparse (1,1);
2803 %!test a=sparse (1,1); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) 2803 %! assert (all (a) == sparse ([0]));
2804 %!test a=sparse (2,1); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) 2804 %! assert (size (all (a)), [1 1]);
2805 %!test a=sparse (1,2); assert (all (a)==sparse ([0])), assert (isequal (size (all (a)),[1 1])) 2805 %!test a=sparse (2,1);
2806 %!test a=sparse (2,2); assert (isequal(all (a),sparse ([0 0]))) 2806 %! assert (all (a) == sparse ([0]));
2807 2807 %! assert (size (all (a)), [1 1]);
2808 %!test a=sparse (1,2);
2809 %! assert (all (a) == sparse ([0]));
2810 %! assert (size (all (a)), [1 1]);
2811 %!test a=sparse (2,2); assert (isequal (all (a), sparse ([0 0])));
2808 2812
2809 */ 2813 */
2810 2814
2811 template <class T> 2815 template <class T>
2812 void 2816 void