Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101551147
sparse_ref_5.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
Tue, Feb 11, 12:36
Size
285 B
Mime Type
text/x-c
Expires
Thu, Feb 13, 12:36 (2 d)
Engine
blob
Format
Raw Data
Handle
24182945
Attached To
rDLMA Diffusion limited mixed aggregation
sparse_ref_5.cpp
View Options
#include "../Eigen/Sparse"
using
namespace
Eigen
;
void
call_ref
(
Ref
<
SparseMatrix
<
float
>
>
a
)
{
}
int
main
()
{
SparseMatrix
<
float
>
a
(
10
,
10
);
SparseMatrixBase
<
SparseMatrix
<
float
>
>
&
ac
(
a
);
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
call_ref
(
ac
);
#else
call_ref
(
ac
.
derived
());
#endif
}
Event Timeline
Log In to Comment