sparse_ref_2.cpp
Go to the documentation of this file.
1 #include "../Eigen/Sparse"
2 
3 using namespace Eigen;
4 
6 
7 int main()
8 {
9  SparseMatrix<float> A(10,10);
10 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
11  call_ref(A.row(3));
12 #else
13  call_ref(A.col(3));
14 #endif
15 }
int main()
Definition: sparse_ref_2.cpp:7
A versatible sparse matrix representation.
Definition: SparseMatrix.h:96
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE RowXpr row(Index i)
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:48
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i)
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:281
void call_ref(Ref< SparseMatrix< float > > a)
Definition: sparse_ref_2.cpp:5


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:35:54