Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to Ticket #2195
Ticket #2195
: comp_mat_erase.cpp
File comp_mat_erase.cpp,
239 bytes
(added by
Gunter
,
13 years ago
)
example to provoke segfault
Line
1
#include
"boost/numeric/ublas/matrix_sparse.hpp"
2
3
int
main
(
int
argc
,
char
**
argv
)
4
{
5
boost
::
numeric
::
ublas
::
compressed_matrix
<
int
,
boost
::
numeric
::
ublas
::
row_major
>
A
(
2
,
2
);
6
7
A
(
0
,
0
)
=
1
;
8
9
A
.
erase_element
(
1
,
0
);
10
11
return
0
;
12
}
Download in other formats:
Original Format