Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Issue 44 in cortex-vfx: Uninitialised variable at line 523 in include/IECore/LevenbergMarqua rdt.inl
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cortex-...@googlecode.com  
View profile  
 More options Oct 27 2011, 7:31 pm
From: cortex-...@googlecode.com
Date: Thu, 27 Oct 2011 23:31:16 +0000
Local: Thurs, Oct 27 2011 7:31 pm
Subject: Issue 44 in cortex-vfx: Uninitialised variable at line 523 in include/IECore/LevenbergMarquardt.inl
Status: Accepted
Owner: ----

New issue 44 by thehaddo...@gmail.com: Uninitialised variable at line 523  
in include/IECore/LevenbergMarquardt.inl
http://code.google.com/p/cortex-vfx/issues/detail?id=44

This was shown up by gcc 4.4.4. There are two potential fixes, but I don't  
understand the code well enough to choose one right now.

EITHER :

replace lines 613-614 with "par = parl;"...

OR :

T par = T(0);

on line 286, then :

change line 290 from :

  T par = computeLMParameter( m_wa1, m_wa2->writable(), delta );

to :

  computeLMParameter( m_wa1, m_wa2->writable(), delta, par );

change the function definition:

T LevenbergMarquardt<T, ErrorFn, Traits>::computeLMParameter(  
std::vector<T> &x, std::vector<T> &sdiag, T delta )

to :

void LevenbergMarquardt<T, ErrorFn, Traits>::computeLMParameter(  
std::vector<T> &x, std::vector<T> &sdiag, T delta, T &par )

change line 572 from :

return 0;

to:

par = T(0);

and then delete that peskly line 523....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »