Opened 8 years ago

Last modified 6 years ago

#10045 new Bugs

boost::numeric::symmetric_matrix serialization code missing

Reported by: maxim.yegorushkin@… Owned by: Gunter
Milestone: To Be Determined Component: uBLAS
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

boost::numeric::matrix<> and boost::numeric::vector<> have serialization implemented. boost::numeric::symmetric_matrix<> does not implement serialization:

/usr/local/ots/4/boost-1.55.0/include/boost/serialization/access.hpp:118:9: error: ‘class boost::numeric::ublas::symmetric_matrix<double>’ has no member named ‘serialize’

t.serialize(ar, file_version);

Attachments (3)

symmetric.hpp (87.1 KB ) - added by 2015csb1032@… 6 years ago.
Updated symmetric.hpp to support serialize function
test_symmetric_matrix_serialization.cpp (5.0 KB ) - added by 2015csb1032@… 6 years ago.
Test for symmetrix matrix serialization
symmetric_matrix_serialize.cpp (2.3 KB ) - added by 2015csb1032@… 6 years ago.
Example for symmetrix matrix serialization

Download all attachments as: .zip

Change History (5)

comment:1 by viboes, 8 years ago

Component: NoneuBLAS
Owner: set to Gunter

comment:2 by 2015csb1032@…, 6 years ago

I have added serialize function in boost/numeric/ublas/symmetric.hpp in my local copy.

I have even made tests (ublas/test/test_symmetric_matrix_serialization.cpp),
and example to show the function usage (ublas/doc/samples/symmetric_matrix_serialize.cpp)

I am attaching the three files in the attachments.

I have committed the change in my local copy. Howevery, I need help to push it to the remote repository. I am getting this error:
remote: Permission to uBLAS/ublas.git denied to shivam5.
fatal: unable to access 'https[colon]github[dot]com/uBLAS/ublas[dot]git/': The requested URL returned error: 403

-Shivam Mittal
2015csb1032@…
Github : shivam5

by 2015csb1032@…, 6 years ago

Attachment: symmetric.hpp added

Updated symmetric.hpp to support serialize function

by 2015csb1032@…, 6 years ago

Test for symmetrix matrix serialization

by 2015csb1032@…, 6 years ago

Example for symmetrix matrix serialization

Note: See TracTickets for help on using tickets.