sparse_ref_2.cpp File Reference
#include "../Eigen/Sparse"

Functions

void call_ref (Ref< SparseMatrix< float > > a)
 
int main ()
 

Function Documentation

◆ call_ref()

void call_ref ( Ref< SparseMatrix< float > >  a)
5 {}

Referenced by main().

◆ main()

int main ( )
7  {
8  SparseMatrix<float> A(10, 10);
9 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
10  call_ref(A.row(3));
11 #else
12  call_ref(A.col(3));
13 #endif
14 }
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
A versatible sparse matrix representation.
Definition: SparseMatrix.h:121
void call_ref(Ref< SparseMatrix< float > > a)
Definition: sparse_ref_2.cpp:5

References call_ref().