[Bug 465] New: Asserts where they don't belong

For more infomation about this bug, visit
Summary: Asserts where they don't belong
Product: BFL
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: core
AssignedTo: bfl [..] ...
ReportedBy: klaas [dot] gadeyne [..] ...
CC: bfl [..] ...
Estimated Hours: 0.0

See

The following, legal BFL code currently fails

Gaussian g; // without args, dimension = 0
ColumnVector v(5) = 0.0;
g.ExpectedValueSet(v); // Non-realtime operation, change dimension to 5.

[Bug 465] Asserts where they don't belong

For more infomation about this bug, visit

Tinne De Laet <tinne [dot] delaet [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #3 from Tinne De Laet <tinne [dot] delaet [..] ...> 2007-12-10 13:23:52 ---
I added some extra tests related to this bug to the unit test of the pdf.

svn commit tests/pdf_test.cpp
Sending tests/pdf_test.cpp
Transmitting file data .
Committed revision 28782.

[Bug 465] Asserts where they don't belong

For more infomation about this bug, visit

Tinne De Laet <tinne [dot] delaet [..] ...> changed:

What |Removed |Added
--------------------------------------------------------------------------
CC| |tinne [dot] delaet [..] ...en.b
| |e

--- Comment #2 from Tinne De Laet <tinne [dot] delaet [..] ...> 2007-12-10 13:22:42 ---
Patch checked and applied.

svn commit src/pdf/gaussian.cpp tests/pdf_test.cpp
Sending src/pdf/gaussian.cpp
Sending tests/pdf_test.cpp
Transmitting file data ..
Committed revision 28781.

[Bug 465] Asserts where they don't belong

For more infomation about this bug, visit

--- Comment #1 from Klaas Gadeyne <klaas [dot] gadeyne [..] ...> 2007-12-08 16:55:47 ---
Created an attachment (id=162)
--> (https://svn.fmtc.be/bugzilla/orocos/attachment.cgi?id=162)
solve issue + add regression test

The following patch solves the described issue and adds a unit test