annotate test/leftdiv.tst @ 28240:2fb684dc2ec2

axis.m: Implement "fill" option for Matlab compatibility. * axis.m: Document that "fill" is a synonym for "normal". Place "vis3d" option in documentation table for modes which affect aspect ratio. Add strcmpi (opt, "fill") to decode opt and executed the same behavior as "normal".
author Rik <rik@octave.org>
date Fri, 24 Apr 2020 13:16:09 -0700
parents bd51beb6205e
children 0a5b15007766
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
1 ########################################################################
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
2 ##
27919
1891570abac8 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27918
diff changeset
3 ## Copyright (C) 2017-2020 The Octave Project Developers
27918
b442ec6dda5c use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents: 26376
diff changeset
4 ##
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
5 ## See the file COPYRIGHT.md in the top-level directory of this
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
6 ## distribution or <https://octave.org/copyright/>.
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
7 ##
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
8 ## This file is part of Octave.
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
9 ##
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 24251
diff changeset
10 ## Octave is free software: you can redistribute it and/or modify it
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
11 ## under the terms of the GNU General Public License as published by
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 24251
diff changeset
12 ## the Free Software Foundation, either version 3 of the License, or
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
13 ## (at your option) any later version.
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
14 ##
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
15 ## Octave is distributed in the hope that it will be useful, but
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
18 ## GNU General Public License for more details.
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
19 ##
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
20 ## You should have received a copy of the GNU General Public License
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
21 ## along with Octave; see the file COPYING. If not, see
24534
194eb4bd202b maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents: 24251
diff changeset
22 ## <https://www.gnu.org/licenses/>.
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
23 ##
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
24 ########################################################################
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
25
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
26 ## There are many corner cases for left division operator
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
27 %!assert (0 \ 1, Inf)
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
28 %!assert (0 \ single (1), single (Inf))
24691
b658e0fa0cb3 maint: Remove trailing whitespace from files.
Rik <rik@octave.org>
parents: 24534
diff changeset
29 ## FIXME: Should return Inf, but not coded correctly yet.
24251
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
30 %#!assert (0 \ i, Inf)
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
31 %#!assert (0 \ single (i), single (Inf))
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
32
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
33 %!assert ([Inf, 0; 0, 0] \ [1; 1], zeros (2,1))
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
34 %!assert ([Inf, 0; 0, 0] \ single ([1; 1]), zeros (2,1, "single"))
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
35 %!assert ([Inf, 0; 0, 0] \ [i; 1], zeros (2,1))
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
36 %!assert ([Inf, 0; 0, 0] \ single ([i; 1]), zeros (2,1, "single"))
599fe61a5619 Fix incorrect size of the solution of some singular systems (bug #52402).
Marco Caliari <marco.caliari@univr.it>
parents:
diff changeset
37