Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101897754
sparse_ref_2.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 21:35
Size
238 B
Mime Type
text/x-c
Expires
Sun, Feb 16, 21:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24240427
Attached To
rDLMA Diffusion limited mixed aggregation
sparse_ref_2.cpp
View Options
#include "../Eigen/Sparse"
using
namespace
Eigen
;
void
call_ref
(
Ref
<
SparseMatrix
<
float
>
>
a
)
{
}
int
main
()
{
SparseMatrix
<
float
>
A
(
10
,
10
);
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
call_ref
(
A
.
row
(
3
));
#else
call_ref
(
A
.
col
(
3
));
#endif
}
Event Timeline
Log In to Comment