Opened 13 years ago

Closed 13 years ago

#3230 closed Bugs (fixed)

coordinate_vector::set_filled() has a bug

Reported by: Makoto Yamashita Owned by: Gunter
Milestone: Boost 1.41.0 Component: uBLAS
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

I have found a small bug as follow.

FILE:: boost_1_39_0/boost/numeric/ublas/vector_sparse.hpp FUNCTION:: coordinate_vector::set_filled()

Line 1478 to 1483 ORIGINAL::

void set_filled (const typename index_array_type::size_type &sorted, const typename index_array_type::size_type &filled) {

sorted_filled_ = sorted; filled_ = filled; storage_invariants (); return filled_;

}

MODIFIED:: (Last return should be comment out)

void set_filled (const typename index_array_type::size_type &sorted, const typename index_array_type::size_type &filled) {

sorted_filled_ = sorted; filled_ = filled; storage_invariants (); return filled_;

}

Change History (4)

comment:1 by Steven Watanabe, 13 years ago

Component: NoneuBLAS
Owner: set to Gunter

comment:2 by Gunter, 13 years ago

(In [56611]) see #3230: coordinate_vector::set_filled() has a bug (Incomplete)

  • removed wrong return statement

comment:3 by Gunter, 13 years ago

Milestone: Boost 1.40.0Boost 1.41.0
Status: newassigned

comment:4 by Gunter, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [56612]) fix #3230: (coordinate_vector::set_filled() has wrong return statement)

Note: See TracTickets for help on using tickets.