|
| From: | Carlo de Falco |
| Subject: | [Octave-bug-tracker] [bug #55905] ode15{i, s} allocate enough memory for a full jacobian when the provided jacobian is sparse |
| Date: | Wed, 13 Mar 2019 04:32:40 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:65.0) Gecko/20100101 Firefox/65.0 |
URL:
<https://savannah.gnu.org/bugs/?55905>
Summary: ode15{i,s} allocate enough memory for a full
jacobian when the provided jacobian is sparse
Project: GNU Octave
Submitted by: cdf
Submitted on: Wed 13 Mar 2019 09:32:38 AM CET
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Performance
Status: In Progress
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The memory allocation for the sparse jacobian
is done in an overly safe way here
<http://hg.savannah.gnu.org/hgweb/octave/file/d94876e7a0aa/libinterp/dldfcn/__ode15__.cc#l356>
The memory is allocated as if the jacobian was full.
It would be more memory efficient to check the actual size of the needed
memory before doing the allocation.
I have already added a FIXME comment in the code, I am posting this here as
well in order not to forget.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55905>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |