[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35148] Error Msg suppressed: tic; sparse(1e5,
From: |
Clem |
Subject: |
[Octave-bug-tracker] [bug #35148] Error Msg suppressed: tic; sparse(1e5, 1e5, 0); toc |
Date: |
Wed, 21 Dec 2011 20:10:34 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0.1) Gecko/20100101 Firefox/8.0.1 |
URL:
<http://savannah.gnu.org/bugs/?35148>
Summary: Error Msg suppressed: tic; sparse(1e5, 1e5, 0); toc
Project: GNU Octave
Submitted by: clemwang
Submitted on: Wed 21 Dec 2011 08:10:33 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Clem
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: Mac OS
_______________________________________________________
Details:
This is a minor bug, but I wasted some time pointlessly trying to time a bad
sparse matrix creation without realizing it was in error.
I did:
>> tic; sparse(1e5, 1e5, 0); toc
Elapsed time is 0.000164986 seconds.
However, this is very missing leading since the sparse() call failed, but tic
and toc seem to have suppressed the error message. Without tic and toc, I
see:
sparse(1e5, 1e5, 0)
error: memory exhausted or requested size too large for range of Octave's
index type -- trying to return to prompt
ans =
Compressed Column Sparse (rows = 100000, cols = 100000, nnz = 0>>
(Note: a final LF is missing on this error, so the prompt follows the last 0
and there's a missing close paren too!)
At first, I thought this might be a generic STDERR problem, but no. It's
specific to this particular error in sparse() and who knows what other errors.
My guess is this error actually went to STDOUT instead of STDERR.
In these calls, tic and toc do not suppress errors:
>> tic; Inf/0 ; toc
warning: division by zero
Elapsed time is 0.000152 seconds.
>> tic; i2 = eye(2); i2(1i) ; toc
error: complex scalar type invalid as index value
>>tic; sparse(-1,-1,0) ; toc
error: sparse: subscript indices must be either positive integers or logicals
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35148>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35148] Error Msg suppressed: tic; sparse(1e5, 1e5, 0); toc,
Clem <=