|
From: | Jaime Ferrer |
Subject: | [Octave-bug-tracker] [bug #30521] Error in diag function for complex numbers |
Date: | Thu, 22 Jul 2010 16:12:26 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 |
URL: <http://savannah.gnu.org/bugs/?30521> Summary: Error in diag function for complex numbers Project: GNU Octave Submitted by: ferrer Submitted on: jue 22 jul 2010 16:12:25 GMT Category: Interpreter Severity: 3 - Normal Item Group: Incorrect Result Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.2.2 Operating System: GNU/Linux _______________________________________________________ Details: If you use diag to convert a complex vector to a diagonal complex matrix, the function crashes if the vector has dim=1 Example: g=[0.1+2i] h=diag(g) hh=diag(h) Result: g = 0.10000 + 2.00000i h = 0.10000 hh = 0.10000 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30521> _______________________________________________ Mensaje enviado vai/por Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |