annotate test/leftdiv.tst @ 31214:19bd1953fc1d stable

GitHub-CI: Remove ubuntu-18.04 runners from build matrix. * .github/workflow/make.yaml (ubuntu): GitHub-hosted runners for ubuntu-18.04 are being deprecated. Remove them from build matrix. See also: https://github.com/actions/runner-images/issues/6002
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 30 Aug 2022 11:16:27 +0200
parents 796f54d4ddbf
children 597f3ee61a48
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 ##
30564
796f54d4ddbf update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
3 ## Copyright (C) 2017-2022 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