[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40017] bicgstab fails for complex matrices
From: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #40017] bicgstab fails for complex matrices |
Date: |
Fri, 13 Sep 2013 07:02:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0 |
URL:
<http://savannah.gnu.org/bugs/?40017>
Summary: bicgstab fails for complex matrices
Project: GNU Octave
Submitted by: caliari
Submitted on: Fri 13 Sep 2013 07:02:48 AM GMT
Category: Octave Function
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: 3.6.2
Operating System: GNU/Linux
_______________________________________________________
Details:
Dear all,
bicgstab fails for complex matrices, try
A = rand(4)+1i*rand(4);
bicgstab(A,A*ones(4,1))
whose result should be ones(4,1). The problem is in a couple of complex scalar
products (which are not symmetric). I think
rho_1 = res' * rr;
should be changed to
rho_1 = rr' * res;
and
omega = (t' * s) / (t' * t);
to
omega = (s' * t) / (t' * t);
Cheers,
Marco
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40017>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40017] bicgstab fails for complex matrices,
Marco Caliari <=