[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44316] eq () between two permutations is not
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #44316] eq () between two permutations is not element-wise |
Date: |
Thu, 19 Feb 2015 21:52:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0 |
URL:
<http://savannah.gnu.org/bugs/?44316>
Summary: eq () between two permutations is not element-wise
Project: GNU Octave
Submitted by: carandraug
Submitted on: Thu 19 Feb 2015 21:52:16 GMT
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
If two matrices are of permutation matrix datatype, the equal comparison
returns a scalar instead of an element-wise operation.
Example:
octave> [~, ~, P] = lu (magic (3))
P =
Permutation Matrix
1 0 0
0 0 1
0 1 0
octave> P == P
ans = 1
octave> P != P
ans = 0
octave> typeinfo (P)
ans = permutation matrix
instead, it should return a 3x3 matrix. This bug was already present in Octave
3.8. It works properly as soon as one of the arguments is not a permutation
matrix.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44316>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44316] eq () between two permutations is not element-wise,
Carnë Draug <=