sparse_ref_3.cpp
Go to the documentation of this file.
1 #include "../Eigen/Sparse"
2 
3 using namespace Eigen;
4 
5 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
7 #else
8 void call_ref(const Ref<const SparseMatrix<float> > &a) { }
9 #endif
10 
11 int main()
12 {
13  SparseMatrix<float> a(10,10);
14  call_ref(a+a);
15 }
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::SparseMatrix
A versatible sparse matrix representation.
Definition: SparseMatrix.h:96
call_ref
void call_ref(const Ref< const SparseMatrix< float > > &a)
Definition: sparse_ref_3.cpp:8
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
Eigen::Ref
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:281
main
int main()
Definition: sparse_ref_3.cpp:11


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:35:33