Opened 10 years ago

#7411 new Feature Requests

Matrix with vector interface.

Reported by: Gunter Owned by: Gunter
Milestone: To Be Determined Component: uBLAS
Version: Boost 1.52.0 Severity: Optimization
Keywords: Cc: "Oswin Krause" <Oswin.Krause@…>

Description

Sometimes it is useful to treat a matrix as a range of (independent) columns (or rows). Currently there is no iterator available that iterates over one dimension of the matrix and returns a full column/row as value.

The attached files have been provided by Oswin Krause as a possible solution.

Attachments (4)

matrix_vector_range.hpp (4.3 KB ) - added by Gunter 10 years ago.
class matrix_vector_iterator
matrix_vector_range.cpp (3.2 KB ) - added by Gunter 10 years ago.
example code
matrix_vector.hpp (7.4 KB ) - added by Joaquim Duran Comas <jduran.gm@…> 9 years ago.
test_matrix_vector.cpp (3.5 KB ) - added by Joaquim Duran Comas <jduran.gm@…> 9 years ago.

Download all attachments as: .zip

Change History (4)

by Gunter, 10 years ago

Attachment: matrix_vector_range.hpp added

class matrix_vector_iterator

by Gunter, 10 years ago

Attachment: matrix_vector_range.cpp added

example code

by Joaquim Duran Comas <jduran.gm@…>, 9 years ago

Attachment: matrix_vector.hpp added

by Joaquim Duran Comas <jduran.gm@…>, 9 years ago

Attachment: test_matrix_vector.cpp added
Note: See TracTickets for help on using tickets.