├── 3rdParty ├── glog │ ├── glog │ │ ├── NEWS │ │ ├── packages │ │ │ └── deb │ │ │ │ ├── compat │ │ │ │ ├── libgoogle-glog0.dirs │ │ │ │ ├── libgoogle-glog0.install │ │ │ │ ├── libgoogle-glog-dev.dirs │ │ │ │ ├── docs │ │ │ │ ├── libgoogle-glog-dev.install │ │ │ │ └── README │ │ ├── .gitignore │ │ ├── glog-config.cmake.in │ │ ├── README │ │ ├── libglog.pc.in │ │ └── m4 │ │ │ ├── ac_have_builtin_expect.m4 │ │ │ └── ac_have_attribute.m4 │ └── .gitignore ├── eigen │ ├── eigen │ │ ├── test │ │ │ ├── evaluator_common.h │ │ │ ├── bug1213.h │ │ │ ├── bug1213.cpp │ │ │ └── bug1213_main.cpp │ │ ├── debug │ │ │ └── gdb │ │ │ │ └── __init__.py │ │ ├── Eigen │ │ │ ├── Eigen │ │ │ ├── src │ │ │ │ ├── Core │ │ │ │ │ └── util │ │ │ │ │ │ └── NonMPL2.h │ │ │ │ └── misc │ │ │ │ │ └── lapacke_mangling.h │ │ │ └── Dense │ │ ├── doc │ │ │ ├── examples │ │ │ │ ├── .krazy │ │ │ │ ├── make_circulant.cpp.preamble │ │ │ │ ├── make_circulant.cpp.entry │ │ │ │ ├── make_circulant.cpp.main │ │ │ │ ├── Cwise_lgamma.cpp │ │ │ │ ├── Cwise_erf.cpp │ │ │ │ ├── Cwise_erfc.cpp │ │ │ │ ├── QuickStart_example.cpp │ │ │ │ ├── tut_matrix_resize_fixed_size.cpp │ │ │ │ ├── Tutorial_ArrayClass_mult.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_rowwise.cpp │ │ │ │ ├── DenseBase_middleCols_int.cpp │ │ │ │ ├── DenseBase_middleRows_int.cpp │ │ │ │ ├── QuickStart_example2_fixed.cpp │ │ │ │ ├── DenseBase_template_int_middleCols.cpp │ │ │ │ ├── DenseBase_template_int_middleRows.cpp │ │ │ │ ├── Tutorial_simple_example_fixed_size.cpp │ │ │ │ ├── QuickStart_example2_dynamic.cpp │ │ │ │ ├── make_circulant.cpp │ │ │ │ ├── Tutorial_BlockOperations_vector.cpp │ │ │ │ ├── TutorialLinAlgExSolveLDLT.cpp │ │ │ │ ├── TutorialLinAlgInverseDeterminant.cpp │ │ │ │ ├── tut_arithmetic_scalar_mul_div.cpp │ │ │ │ ├── tut_matrix_coefficient_accessors.cpp │ │ │ │ ├── TutorialLinAlgExComputeSolveError.cpp │ │ │ │ ├── TutorialLinAlgSetThreshold.cpp │ │ │ │ ├── tut_arithmetic_dot_cross.cpp │ │ │ │ ├── class_CwiseUnaryOp_ptrfun.cpp │ │ │ │ ├── TutorialLinAlgExSolveColPivHouseholderQR.cpp │ │ │ │ ├── TutorialLinAlgSVDSolve.cpp │ │ │ │ ├── Tutorial_BlockOperations_colrow.cpp │ │ │ │ ├── Tutorial_PartialLU_solve.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple_rowwise.cpp │ │ │ │ ├── function_taking_eigenbase.cpp │ │ │ │ ├── Tutorial_ArrayClass_cwise_other.cpp │ │ │ │ ├── Tutorial_ArrayClass_addition.cpp │ │ │ │ ├── Tutorial_BlockOperations_print_block.cpp │ │ │ │ ├── Tutorial_BlockOperations_corner.cpp │ │ │ │ ├── Tutorial_ArrayClass_interop.cpp │ │ │ │ ├── tut_matrix_resize.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_reductions_operatornorm.cpp │ │ │ │ ├── tut_arithmetic_add_sub.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_broadcast_1nn.cpp │ │ │ │ ├── Tutorial_ArrayClass_accessors.cpp │ │ │ │ ├── TemplateKeyword_simple.cpp │ │ │ │ ├── class_CwiseBinaryOp.cpp │ │ │ │ ├── tut_arithmetic_redux_basic.cpp │ │ │ │ ├── Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp │ │ │ │ └── Tutorial_BlockOperations_block_assignment.cpp │ │ │ ├── snippets │ │ │ │ ├── .krazy │ │ │ │ ├── Cwise_exp.cpp │ │ │ │ ├── Cwise_log.cpp │ │ │ │ ├── Cwise_minus.cpp │ │ │ │ ├── Cwise_plus.cpp │ │ │ │ ├── Cwise_abs.cpp │ │ │ │ ├── Cwise_abs2.cpp │ │ │ │ ├── Cwise_cube.cpp │ │ │ │ ├── Cwise_sign.cpp │ │ │ │ ├── Cwise_sqrt.cpp │ │ │ │ ├── MatrixBase_ones_int_int.cpp │ │ │ │ ├── MatrixBase_random.cpp │ │ │ │ ├── MatrixBase_random_int.cpp │ │ │ │ ├── MatrixBase_zero_int_int.cpp │ │ │ │ ├── Cwise_inverse.cpp │ │ │ │ ├── Cwise_less.cpp │ │ │ │ ├── Cwise_log10.cpp │ │ │ │ ├── Cwise_pow.cpp │ │ │ │ ├── Cwise_square.cpp │ │ │ │ ├── MatrixBase_random_int_int.cpp │ │ │ │ ├── Cwise_acos.cpp │ │ │ │ ├── Cwise_asin.cpp │ │ │ │ ├── Cwise_cos.cpp │ │ │ │ ├── Cwise_greater.cpp │ │ │ │ ├── Cwise_max.cpp │ │ │ │ ├── Cwise_min.cpp │ │ │ │ ├── Cwise_minus_equal.cpp │ │ │ │ ├── Cwise_not_equal.cpp │ │ │ │ ├── Cwise_plus_equal.cpp │ │ │ │ ├── Cwise_quotient.cpp │ │ │ │ ├── Cwise_sin.cpp │ │ │ │ ├── Cwise_tan.cpp │ │ │ │ ├── MatrixBase_identity.cpp │ │ │ │ ├── MatrixBase_identity_int_int.cpp │ │ │ │ ├── Matrix_setOnes_int.cpp │ │ │ │ ├── Matrix_setZero_int.cpp │ │ │ │ ├── Cwise_equal_equal.cpp │ │ │ │ ├── Cwise_greater_equal.cpp │ │ │ │ ├── Cwise_less_equal.cpp │ │ │ │ ├── MatrixBase_cwiseSqrt.cpp │ │ │ │ ├── Matrix_setRandom_int.cpp │ │ │ │ ├── Cwise_atan.cpp │ │ │ │ ├── Cwise_cosh.cpp │ │ │ │ ├── Cwise_sinh.cpp │ │ │ │ ├── Cwise_slash_equal.cpp │ │ │ │ ├── Cwise_tanh.cpp │ │ │ │ ├── Cwise_times_equal.cpp │ │ │ │ ├── MatrixBase_asDiagonal.cpp │ │ │ │ ├── Matrix_setOnes_int_int.cpp │ │ │ │ ├── Matrix_setZero_int_int.cpp │ │ │ │ ├── Cwise_boolean_and.cpp │ │ │ │ ├── Cwise_boolean_or.cpp │ │ │ │ ├── Cwise_boolean_xor.cpp │ │ │ │ ├── MatrixBase_cwiseMax.cpp │ │ │ │ ├── MatrixBase_cwiseMin.cpp │ │ │ │ ├── Matrix_setConstant_int.cpp │ │ │ │ ├── Matrix_setIdentity_int_int.cpp │ │ │ │ ├── Matrix_setRandom_int_int.cpp │ │ │ │ ├── DenseBase_setLinSpaced.cpp │ │ │ │ ├── MatrixBase_zero.cpp │ │ │ │ ├── Matrix_setConstant_int_int.cpp │ │ │ │ ├── MatrixBase_cwiseQuotient.cpp │ │ │ │ ├── MatrixBase_ones.cpp │ │ │ │ ├── MatrixBase_zero_int.cpp │ │ │ │ ├── MatrixBase_array.cpp │ │ │ │ ├── MatrixBase_ones_int.cpp │ │ │ │ ├── MatrixBase_setOnes.cpp │ │ │ │ ├── MatrixBase_setRandom.cpp │ │ │ │ ├── MatrixBase_setZero.cpp │ │ │ │ ├── Cwise_arg.cpp │ │ │ │ ├── MatrixBase_col.cpp │ │ │ │ ├── MatrixBase_row.cpp │ │ │ │ ├── Cwise_ceil.cpp │ │ │ │ ├── Map_simple.cpp │ │ │ │ ├── MatrixBase_cwiseAbs.cpp │ │ │ │ ├── TopicAliasing_mult1.cpp │ │ │ │ ├── Tutorial_commainit_01.cpp │ │ │ │ ├── Cwise_floor.cpp │ │ │ │ ├── Cwise_round.cpp │ │ │ │ ├── Cwise_scalar_power_array.cpp │ │ │ │ ├── MatrixBase_cwiseAbs2.cpp │ │ │ │ ├── MatrixBase_cwiseSign.cpp │ │ │ │ ├── MatrixBase_setIdentity.cpp │ │ │ │ ├── TopicAliasing_mult3.cpp │ │ │ │ ├── MatrixBase_cwiseInverse.cpp │ │ │ │ ├── Cwise_isInf.cpp │ │ │ │ ├── Cwise_isNaN.cpp │ │ │ │ ├── Cwise_isFinite.cpp │ │ │ │ ├── TopicAliasing_mult4.cpp │ │ │ │ ├── Cwise_boolean_not.cpp │ │ │ │ ├── DenseBase_LinSpaced.cpp │ │ │ │ ├── MatrixBase_cast.cpp │ │ │ │ ├── Matrix_resize_NoChange_int.cpp │ │ │ │ ├── Matrix_resize_int_NoChange.cpp │ │ │ │ ├── TopicAliasing_mult5.cpp │ │ │ │ ├── Tutorial_commainit_01b.cpp │ │ │ │ ├── MatrixBase_noalias.cpp │ │ │ │ ├── MatrixBase_select.cpp │ │ │ │ ├── Cwise_product.cpp │ │ │ │ ├── DenseBase_LinSpaced_seq.cpp │ │ │ │ ├── Map_outer_stride.cpp │ │ │ │ ├── MatrixBase_operatorNorm.cpp │ │ │ │ ├── MatrixBase_inverse.cpp │ │ │ │ ├── Tutorial_AdvancedInitialization_Block.cpp │ │ │ │ ├── MatrixBase_cwiseProduct.cpp │ │ │ │ ├── MatrixBase_eigenvalues.cpp │ │ │ │ ├── PartialRedux_sum.cpp │ │ │ │ ├── MatrixBase_adjoint.cpp │ │ │ │ ├── MatrixBase_prod.cpp │ │ │ │ ├── PartialRedux_norm.cpp │ │ │ │ ├── PartialRedux_prod.cpp │ │ │ │ ├── SelfAdjointView_operatorNorm.cpp │ │ │ │ ├── Tutorial_solve_matrix_inverse.cpp │ │ │ │ ├── Map_general_stride.cpp │ │ │ │ ├── LeastSquaresQR.cpp │ │ │ │ ├── MatrixBase_replicate.cpp │ │ │ │ ├── MatrixBase_replicate_int_int.cpp │ │ │ │ ├── PartialRedux_maxCoeff.cpp │ │ │ │ ├── PartialRedux_minCoeff.cpp │ │ │ │ ├── Tutorial_SlicingVec.cpp │ │ │ │ ├── EigenSolver_eigenvalues.cpp │ │ │ │ ├── Map_placement_new.cpp │ │ │ │ ├── Tutorial_ReshapeMat2Mat.cpp │ │ │ │ ├── PartialRedux_squaredNorm.cpp │ │ │ │ ├── Tutorial_solve_triangular_inplace.cpp │ │ │ │ ├── DirectionWise_replicate.cpp │ │ │ │ ├── DirectionWise_replicate_int.cpp │ │ │ │ ├── EigenSolver_eigenvectors.cpp │ │ │ │ ├── MatrixBase_diagonal.cpp │ │ │ │ ├── SelfAdjointView_eigenvalues.cpp │ │ │ │ ├── tut_arithmetic_transpose_inplace.cpp │ │ │ │ ├── SelfAdjointEigenSolver_eigenvalues.cpp │ │ │ │ ├── Tutorial_AdvancedInitialization_CommaTemporary.cpp │ │ │ │ ├── LeastSquaresNormalEquations.cpp │ │ │ │ ├── Map_inner_stride.cpp │ │ │ │ ├── tut_arithmetic_transpose_aliasing.cpp │ │ │ │ ├── ComplexEigenSolver_eigenvectors.cpp │ │ │ │ ├── SelfAdjointEigenSolver_eigenvectors.cpp │ │ │ │ ├── tut_matrix_assignment_resizing.cpp │ │ │ │ ├── AngleAxis_mimic_euler.cpp │ │ │ │ ├── MatrixBase_isOnes.cpp │ │ │ │ ├── MatrixBase_isZero.cpp │ │ │ │ ├── ComplexSchur_matrixU.cpp │ │ │ │ ├── MatrixBase_applyOnTheLeft.cpp │ │ │ │ ├── ComplexEigenSolver_eigenvalues.cpp │ │ │ │ ├── MatrixBase_end_int.cpp │ │ │ │ ├── Tutorial_commainit_02.cpp │ │ │ │ ├── MatrixBase_start_int.cpp │ │ │ │ ├── Cwise_array_power_array.cpp │ │ │ │ ├── Jacobi_makeGivens.cpp │ │ │ │ ├── MatrixBase_array_const.cpp │ │ │ │ ├── MatrixBase_isUnitary.cpp │ │ │ │ ├── MatrixBase_isIdentity.cpp │ │ │ │ ├── MatrixBase_template_int_end.cpp │ │ │ │ ├── MatrixBase_template_int_start.cpp │ │ │ │ ├── MatrixBase_topRows_int.cpp │ │ │ │ ├── Matrix_resize_int.cpp │ │ │ │ ├── MatrixBase_leftCols_int.cpp │ │ │ │ ├── MatrixBase_block_int_int.cpp │ │ │ │ ├── MatrixBase_isDiagonal.cpp │ │ │ │ ├── MatrixBase_rightCols_int.cpp │ │ │ │ ├── MatrixBase_segment_int_int.cpp │ │ │ │ ├── MatrixBase_bottomRows_int.cpp │ │ │ │ ├── MatrixBase_template_int_segment.cpp │ │ │ │ ├── MatrixBase_template_int_topRows.cpp │ │ │ │ ├── ComplexSchur_matrixT.cpp │ │ │ │ ├── MatrixBase_template_int_leftCols.cpp │ │ │ │ ├── TopicAliasing_mult2.cpp │ │ │ │ ├── MatrixBase_block_int_int_int_int.cpp │ │ │ │ ├── MatrixBase_template_int_rightCols.cpp │ │ │ │ ├── PartialRedux_count.cpp │ │ │ │ ├── MatrixBase_template_int_bottomRows.cpp │ │ │ │ ├── MatrixBase_diagonal_int.cpp │ │ │ │ ├── TopicAliasing_block.cpp │ │ │ │ ├── MatrixBase_rowwise.cpp │ │ │ │ ├── MatrixBase_topLeftCorner_int_int.cpp │ │ │ │ ├── MatrixBase_colwise.cpp │ │ │ │ ├── MatrixBase_cwiseEqual.cpp │ │ │ │ ├── MatrixBase_fixedBlock_int_int.cpp │ │ │ │ ├── MatrixBase_topRightCorner_int_int.cpp │ │ │ │ ├── TopicAliasing_block_correct.cpp │ │ │ │ ├── Tutorial_solve_singular.cpp │ │ │ │ ├── MatrixBase_bottomLeftCorner_int_int.cpp │ │ │ │ ├── MatrixBase_diagonal_template_int.cpp │ │ │ │ ├── MatrixBase_template_int_int_topLeftCorner.cpp │ │ │ │ ├── Tutorial_solve_triangular.cpp │ │ │ │ ├── MatrixBase_bottomRightCorner_int_int.cpp │ │ │ │ ├── MatrixBase_template_int_int_block_int_int_int_int.cpp │ │ │ │ ├── MatrixBase_template_int_int_topRightCorner.cpp │ │ │ │ ├── Jacobi_makeJacobi.cpp │ │ │ │ ├── MatrixBase_cwiseNotEqual.cpp │ │ │ │ ├── MatrixBase_isOrthogonal.cpp │ │ │ │ ├── ComplexSchur_compute.cpp │ │ │ │ ├── MatrixBase_template_int_int_bottomLeftCorner.cpp │ │ │ │ ├── Tutorial_AdvancedInitialization_LinSpaced.cpp │ │ │ │ ├── MatrixBase_template_int_int_bottomRightCorner.cpp │ │ │ │ ├── Tutorial_Map_rowmajor.cpp │ │ │ │ ├── HouseholderQR_householderQ.cpp │ │ │ │ ├── Tutorial_AdvancedInitialization_Join.cpp │ │ │ │ ├── FullPivLU_kernel.cpp │ │ │ │ ├── MatrixBase_applyOnTheRight.cpp │ │ │ │ ├── MatrixBase_template_int_int_topLeftCorner_int_int.cpp │ │ │ │ ├── MatrixBase_set.cpp │ │ │ │ ├── MatrixBase_template_int_int_topRightCorner_int_int.cpp │ │ │ │ ├── Tridiagonalization_householderCoefficients.cpp │ │ │ │ ├── Tutorial_ReshapeMat2Vec.cpp │ │ │ │ ├── tut_arithmetic_transpose_conjugate.cpp │ │ │ │ ├── MatrixBase_template_int_int_bottomLeftCorner_int_int.cpp │ │ │ │ ├── ColPivHouseholderQR_solve.cpp │ │ │ │ ├── FullPivHouseholderQR_solve.cpp │ │ │ │ ├── MatrixBase_template_int_int_bottomRightCorner_int_int.cpp │ │ │ │ ├── RealSchur_compute.cpp │ │ │ │ ├── HessenbergDecomposition_compute.cpp │ │ │ │ ├── Tutorial_solve_multiple_rhs.cpp │ │ │ │ ├── EigenSolver_compute.cpp │ │ │ │ ├── MatrixBase_computeInverseWithCheck.cpp │ │ │ │ ├── MatrixBase_selfadjointView.cpp │ │ │ │ ├── MatrixBase_hnormalized.cpp │ │ │ │ ├── PartialPivLU_solve.cpp │ │ │ │ ├── HouseholderQR_solve.cpp │ │ │ │ ├── FullPivLU_image.cpp │ │ │ │ ├── SelfAdjointEigenSolver_operatorSqrt.cpp │ │ │ │ ├── SelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp │ │ │ │ ├── SelfAdjointEigenSolver_compute_MatrixType.cpp │ │ │ │ ├── Tutorial_AdvancedInitialization_Zero.cpp │ │ │ │ ├── HessenbergDecomposition_matrixH.cpp │ │ │ │ ├── BiCGSTAB_simple.cpp │ │ │ │ ├── DirectionWise_hnormalized.cpp │ │ │ │ ├── MatrixBase_reverse.cpp │ │ │ │ ├── Tridiagonalization_packedMatrix.cpp │ │ │ │ ├── Tridiagonalization_compute.cpp │ │ │ │ ├── MatrixBase_transpose.cpp │ │ │ │ ├── Tutorial_solve_reuse_decomposition.cpp │ │ │ │ ├── DenseBase_LinSpacedInt.cpp │ │ │ │ ├── Matrix_resize_int_int.cpp │ │ │ │ ├── SparseMatrix_coeffs.cpp │ │ │ │ ├── FullPivLU_solve.cpp │ │ │ │ ├── SelfAdjointEigenSolver_compute_MatrixType2.cpp │ │ │ │ ├── BiCGSTAB_step_by_step.cpp │ │ │ │ ├── LLT_solve.cpp │ │ │ │ ├── EigenSolver_pseudoEigenvectors.cpp │ │ │ │ ├── GeneralizedEigenSolver.cpp │ │ │ │ ├── RealSchur_RealSchur_MatrixType.cpp │ │ │ │ ├── SelfAdjointEigenSolver_operatorInverseSqrt.cpp │ │ │ │ ├── MatrixBase_computeInverseAndDetWithCheck.cpp │ │ │ │ ├── MatrixBase_homogeneous.cpp │ │ │ │ ├── Tridiagonalization_Tridiagonalization_MatrixType.cpp │ │ │ │ ├── MatrixBase_eval.cpp │ │ │ │ ├── VectorwiseOp_homogeneous.cpp │ │ │ │ ├── tut_arithmetic_redux_minmax.cpp │ │ │ │ ├── HessenbergDecomposition_packedMatrix.cpp │ │ │ │ ├── MatrixBase_all.cpp │ │ │ │ ├── Tridiagonalization_decomposeInPlace.cpp │ │ │ │ ├── LLT_example.cpp │ │ │ │ ├── Triangular_solve.cpp │ │ │ │ ├── Vectorwise_reverse.cpp │ │ │ │ ├── compile_snippet.cpp.in │ │ │ │ ├── MatrixBase_triangularView.cpp │ │ │ │ ├── TopicStorageOrders_example.cpp │ │ │ │ └── Tridiagonalization_diagonal.cpp │ │ │ ├── ftv2node.png │ │ │ ├── ftv2pnode.png │ │ │ ├── TutorialSparse_example_details.dox │ │ │ ├── Eigen_Silly_Professor_64x64.png │ │ │ ├── TopicVectorization.dox │ │ │ ├── TopicResizing.dox │ │ │ ├── TopicScalarTypes.dox │ │ │ ├── TopicEigenExpressionTemplates.dox │ │ │ └── special_examples │ │ │ │ └── random_cpp11.cpp │ │ ├── scripts │ │ │ ├── debug.in │ │ │ ├── release.in │ │ │ └── CMakeLists.txt │ │ ├── bench │ │ │ ├── btl │ │ │ │ ├── libs │ │ │ │ │ ├── STL │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ ├── gmm │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ ├── mtl4 │ │ │ │ │ │ ├── CMakeLists.txt │ │ │ │ │ │ └── .kdbgrc.main │ │ │ │ │ ├── tvmet │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ ├── ublas │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ ├── blitz │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ │ └── blaze │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ ├── generic_bench │ │ │ │ │ ├── timers │ │ │ │ │ │ ├── STL_timer.hh │ │ │ │ │ │ ├── STL_perf_analyzer.hh │ │ │ │ │ │ └── mixed_perf_analyzer.hh │ │ │ │ │ ├── utils │ │ │ │ │ │ └── size_lin_log.hh │ │ │ │ │ └── static │ │ │ │ │ │ ├── static_size_generator.hh │ │ │ │ │ │ └── intel_bench_fixed_size.hh │ │ │ │ ├── cmake │ │ │ │ │ └── FindGMM.cmake │ │ │ │ └── actions │ │ │ │ │ └── basic_actions.hh │ │ │ ├── perf_monitoring │ │ │ │ └── gemm │ │ │ │ │ ├── lazy_gemm_settings.txt │ │ │ │ │ └── gemm_settings.txt │ │ │ └── bench_sum.cpp │ │ ├── unsupported │ │ │ ├── test │ │ │ │ └── FFT.cpp │ │ │ ├── doc │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── examples │ │ │ │ │ ├── MatrixExponential.cpp │ │ │ │ │ ├── MatrixPower.cpp │ │ │ │ │ ├── MatrixLogarithm.cpp │ │ │ │ │ ├── MatrixPower_optimal.cpp │ │ │ │ │ ├── MatrixSquareRoot.cpp │ │ │ │ │ ├── MatrixFunction.cpp │ │ │ │ │ ├── MatrixSine.cpp │ │ │ │ │ └── MatrixSinh.cpp │ │ │ ├── Eigen │ │ │ │ ├── src │ │ │ │ │ └── EulerAngles │ │ │ │ │ │ └── CMakeLists.txt │ │ │ │ └── CXX11 │ │ │ │ │ └── CMakeLists.txt │ │ │ └── CMakeLists.txt │ │ ├── CTestCustom.cmake.in │ │ ├── blas │ │ │ ├── f2c │ │ │ │ ├── r_cnjg.c │ │ │ │ └── d_cnjg.c │ │ │ ├── README.txt │ │ │ └── xerbla.cpp │ │ ├── README.md │ │ ├── failtest │ │ │ ├── failtest_sanity_check.cpp │ │ │ ├── swap_2.cpp │ │ │ ├── ternary_1.cpp │ │ │ ├── ref_2.cpp │ │ │ ├── swap_1.cpp │ │ │ ├── ternary_2.cpp │ │ │ ├── ref_4.cpp │ │ │ ├── ref_3.cpp │ │ │ ├── ref_5.cpp │ │ │ ├── sparse_ref_4.cpp │ │ │ ├── bdcsvd_int.cpp │ │ │ ├── ldlt_int.cpp │ │ │ ├── llt_int.cpp │ │ │ ├── qr_int.cpp │ │ │ ├── sparse_ref_2.cpp │ │ │ ├── fullpivlu_int.cpp │ │ │ ├── jacobisvd_int.cpp │ │ │ ├── map_nonconst_ctor_on_const_ptr_0.cpp │ │ │ ├── diagonal_nonconst_ctor_on_const_xpr.cpp │ │ │ ├── partialpivlu_int.cpp │ │ │ ├── block_nonconst_ctor_on_const_xpr_0.cpp │ │ │ ├── block_nonconst_ctor_on_const_xpr_1.cpp │ │ │ ├── colpivqr_int.cpp │ │ │ ├── fullpivqr_int.cpp │ │ │ ├── transpose_nonconst_ctor_on_const_xpr.cpp │ │ │ ├── eigensolver_int.cpp │ │ │ ├── const_qualified_block_method_retval_1.cpp │ │ │ ├── const_qualified_diagonal_method_retval.cpp │ │ │ ├── map_nonconst_ctor_on_const_ptr_1.cpp │ │ │ ├── map_on_const_type_actually_const_1.cpp │ │ │ ├── const_qualified_block_method_retval_0.cpp │ │ │ ├── const_qualified_transpose_method_retval.cpp │ │ │ ├── map_on_const_type_actually_const_0.cpp │ │ │ ├── ref_1.cpp │ │ │ ├── selfadjointview_nonconst_ctor_on_const_xpr.cpp │ │ │ ├── sparse_ref_3.cpp │ │ │ ├── triangularview_nonconst_ctor_on_const_xpr.cpp │ │ │ ├── eigensolver_cplx.cpp │ │ │ ├── diagonal_on_const_type_actually_const.cpp │ │ │ ├── transpose_on_const_type_actually_const.cpp │ │ │ ├── block_nonconst_ctor_on_const_xpr_2.cpp │ │ │ ├── block_on_const_type_actually_const_0.cpp │ │ │ ├── block_on_const_type_actually_const_1.cpp │ │ │ ├── map_nonconst_ctor_on_const_ptr_2.cpp │ │ │ ├── sparse_ref_5.cpp │ │ │ ├── cwiseunaryview_nonconst_ctor_on_const_xpr.cpp │ │ │ ├── triangularview_on_const_type_actually_const.cpp │ │ │ ├── selfadjointview_on_const_type_actually_const.cpp │ │ │ ├── sparse_storage_mismatch.cpp │ │ │ ├── sparse_ref_1.cpp │ │ │ ├── cwiseunaryview_on_const_type_actually_const.cpp │ │ │ ├── map_nonconst_ctor_on_const_ptr_3.cpp │ │ │ └── map_nonconst_ctor_on_const_ptr_4.cpp │ │ ├── cmake │ │ │ ├── UseEigen3.cmake │ │ │ └── FindAdolc.cmake │ │ ├── .hgeol │ │ ├── signature_of_eigen3_matrix_library │ │ ├── eigen3.pc.in │ │ ├── demos │ │ │ ├── mix_eigen_and_c │ │ │ │ └── README │ │ │ ├── CMakeLists.txt │ │ │ ├── mandelbrot │ │ │ │ ├── README │ │ │ │ └── CMakeLists.txt │ │ │ └── opengl │ │ │ │ └── README │ │ ├── .hgignore │ │ ├── CTestConfig.cmake │ │ └── lapack │ │ │ └── double.cpp │ └── .gitignore ├── gflags │ ├── gflags │ │ ├── test │ │ │ ├── flagfile.1 │ │ │ ├── flagfile.3 │ │ │ ├── flagfile.2 │ │ │ ├── gflags_unittest_flagfile │ │ │ ├── config │ │ │ │ └── CMakeLists.txt │ │ │ ├── gflags_declare_flags.cc │ │ │ ├── gflags_strip_flags_test.cmake │ │ │ ├── gflags_declare_test.cc │ │ │ └── nc │ │ │ │ └── CMakeLists.txt │ │ ├── AUTHORS.txt │ │ ├── .gitmodules │ │ ├── .gitattributes │ │ ├── cmake │ │ │ ├── README_runtime.txt │ │ │ └── package.pc.in │ │ ├── WORKSPACE │ │ ├── BUILD │ │ ├── .travis.yml │ │ └── .gitignore │ └── .gitignore ├── ceres-solver │ ├── .gitignore │ └── ceres-solver │ │ ├── docs │ │ └── source │ │ │ ├── loss.png │ │ │ ├── slam2d.png │ │ │ ├── least_squares_fit.png │ │ │ ├── pose_graph_3d_ex.png │ │ │ ├── forward_central_error.png │ │ │ ├── robust_least_squares_fit.png │ │ │ ├── manhattan_olson_3500_result.png │ │ │ ├── forward_central_ridders_error.png │ │ │ ├── non_robust_least_squares_fit.png │ │ │ ├── tutorial.rst │ │ │ └── _templates │ │ │ └── layout.html │ │ ├── data │ │ ├── libmv-ba-problems │ │ │ ├── problem_01.bin │ │ │ ├── problem_02.bin │ │ │ ├── problem_03.bin │ │ │ └── Readme.txt │ │ ├── 2x2.foe │ │ └── README.foe │ │ └── .gitignore └── README.md ├── .gitignore ├── docs └── images │ ├── origins.txt │ └── ProjectLogo.png ├── testsuite ├── .gitignore ├── resources │ ├── HelloWorld.fmu │ ├── Lin2DimODE.fmu │ ├── HelloWorldWithInput.fmu │ ├── Makefile │ ├── HelloWorld.mos │ └── HelloWorldWithInput.mos ├── Makefile └── difftool │ └── Makefile └── src └── OMSimulatorPython └── OMSimulatorPython3.bat /3rdParty/glog/glog/NEWS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/test/evaluator_common.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/flagfile.1: -------------------------------------------------------------------------------- 1 | --version -------------------------------------------------------------------------------- /3rdParty/glog/glog/packages/deb/compat: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /install/ 3 | -------------------------------------------------------------------------------- /3rdParty/gflags/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /install/ 3 | -------------------------------------------------------------------------------- /3rdParty/glog/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /install/ 3 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /install/ 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.vs/ 2 | /.vscode/ 3 | /build/ 4 | /install/ 5 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/flagfile.3: -------------------------------------------------------------------------------- 1 | --flagfile=flagfile.2 -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/debug/gdb/__init__.py: -------------------------------------------------------------------------------- 1 | # Intentionally empty 2 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/flagfile.2: -------------------------------------------------------------------------------- 1 | --foo=bar 2 | --nounused_bool -------------------------------------------------------------------------------- /3rdParty/glog/glog/packages/deb/libgoogle-glog0.dirs: -------------------------------------------------------------------------------- 1 | usr/lib 2 | -------------------------------------------------------------------------------- /docs/images/origins.txt: -------------------------------------------------------------------------------- 1 | https://openclipart.org/detail/131899/balanza 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/Eigen/Eigen: -------------------------------------------------------------------------------- 1 | #include "Dense" 2 | #include "Sparse" 3 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/AUTHORS.txt: -------------------------------------------------------------------------------- 1 | google-gflags@googlegroups.com 2 | 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/.krazy: -------------------------------------------------------------------------------- 1 | EXCLUDE copyright 2 | EXCLUDE license 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/.krazy: -------------------------------------------------------------------------------- 1 | EXCLUDE copyright 2 | EXCLUDE license 3 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/gflags_unittest_flagfile: -------------------------------------------------------------------------------- 1 | --test_flag=1 2 | --test_flag=2 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/scripts/debug.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cmake -DCMAKE_BUILD_TYPE=Debug . 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_exp.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | cout << v.exp() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_log.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | cout << v.log() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_minus.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | cout << v-5 << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_plus.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | cout << v+5 << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/scripts/release.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cmake -DCMAKE_BUILD_TYPE=Release . 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/STL/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | btl_add_bench(btl_STL main.cpp OFF) 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_abs.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,-2,-3); 2 | cout << v.abs() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_abs2.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,-2,-3); 2 | cout << v.abs2() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_cube.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(2,3,4); 2 | cout << v.cube() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_sign.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(-3,5,0); 2 | cout << v.sign() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_sqrt.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,4); 2 | cout << v.sqrt() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_ones_int_int.cpp: -------------------------------------------------------------------------------- 1 | cout << MatrixXi::Ones(2,3) << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_random.cpp: -------------------------------------------------------------------------------- 1 | cout << 100 * Matrix2i::Random() << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_random_int.cpp: -------------------------------------------------------------------------------- 1 | cout << VectorXi::Random(2) << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_zero_int_int.cpp: -------------------------------------------------------------------------------- 1 | cout << MatrixXi::Zero(2,3) << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/test/FFT.cpp: -------------------------------------------------------------------------------- 1 | #define test_FFTW test_FFT 2 | #include "FFTW.cpp" 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_inverse.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(2,3,4); 2 | cout << v.inverse() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_less.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(3,2,1); 2 | cout << (vw) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_max.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(2,3,4), w(4,2,3); 2 | cout << v.max(w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_min.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(2,3,4), w(4,2,3); 2 | cout << v.min(w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_minus_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v -= 5; 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_not_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(3,2,1); 2 | cout << (v!=w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_plus_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v += 5; 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_quotient.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(2,3,4), w(4,2,3); 2 | cout << v/w << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_sin.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(M_PI, M_PI/2, M_PI/3); 2 | cout << v.sin() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_tan.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(M_PI, M_PI/2, M_PI/3); 2 | cout << v.tan() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_identity.cpp: -------------------------------------------------------------------------------- 1 | cout << Matrix::Identity() << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_identity_int_int.cpp: -------------------------------------------------------------------------------- 1 | cout << MatrixXd::Identity(4, 3) << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_setOnes_int.cpp: -------------------------------------------------------------------------------- 1 | VectorXf v; 2 | v.setOnes(3); 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_setZero_int.cpp: -------------------------------------------------------------------------------- 1 | VectorXf v; 2 | v.setZero(3); 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/.gitignore: -------------------------------------------------------------------------------- 1 | autom4te.cache 2 | glog-*.tar.gz 3 | packages/rpm-unknown 4 | packages/debian-* 5 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/packages/deb/libgoogle-glog0.install: -------------------------------------------------------------------------------- 1 | usr/lib/lib*.so.* 2 | debian/tmp/usr/lib/lib*.so.* 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_equal_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(3,2,1); 2 | cout << (v==w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_greater_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(3,2,1); 2 | cout << (v>=w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_less_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(3,2,1); 2 | cout << (v<=w) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp: -------------------------------------------------------------------------------- 1 | Vector3d v(1,2,4); 2 | cout << v.cwiseSqrt() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_setRandom_int.cpp: -------------------------------------------------------------------------------- 1 | VectorXf v; 2 | v.setRandom(3); 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /docs/images/ProjectLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/docs/images/ProjectLogo.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_atan.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(5,0,1); 2 | cout << v.atan() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_cosh.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(5,0,1); 2 | cout << cosh(v) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_sinh.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(5,0,1); 2 | cout << sinh(v) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_slash_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(3,2,4), w(5,4,2); 2 | v /= w; 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_tanh.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(5,0,1); 2 | cout << tanh(v) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_times_equal.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3), w(2,3,0); 2 | v *= w; 3 | cout << v << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_asDiagonal.cpp: -------------------------------------------------------------------------------- 1 | cout << Matrix3i(Vector3i(2,5,6).asDiagonal()) << endl; 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_setOnes_int_int.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf m; 2 | m.setOnes(3, 3); 3 | cout << m << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_setZero_int_int.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf m; 2 | m.setZero(3, 3); 3 | cout << m << endl; 4 | -------------------------------------------------------------------------------- /testsuite/.gitignore: -------------------------------------------------------------------------------- 1 | # generated files 2 | /*.log 3 | /difftool/lex.yy.c 4 | /difftool/lex.yy.o 5 | /resources/*.fmu 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_boolean_and.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(-1,2,1), w(-3,2,3); 2 | cout << ((v(array) << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseAbs.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(2,3); 2 | m << 2, -4, 6, 3 | -5, 1, 0; 4 | cout << m.cwiseAbs() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_mult1.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf matA(2,2); 2 | matA << 2, 0, 0, 2; 3 | matA = matA * matA; 4 | cout << matA; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_commainit_01.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m; 2 | m << 1, 2, 3, 3 | 4, 5, 6, 4 | 7, 8, 9; 5 | std::cout << m; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/CTestCustom.cmake.in: -------------------------------------------------------------------------------- 1 | 2 | set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "2000") 3 | set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS "2000") 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_floor.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(7,-2,2); 2 | cout << v << endl << endl; 3 | cout << floor(v) << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_round.cpp: -------------------------------------------------------------------------------- 1 | ArrayXd v = ArrayXd::LinSpaced(7,-2,2); 2 | cout << v << endl << endl; 3 | cout << round(v) << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_scalar_power_array.cpp: -------------------------------------------------------------------------------- 1 | Array e(2,-3,1./3.); 2 | cout << "10^[" << e << "] = " << pow(10,e) << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseAbs2.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(2,3); 2 | m << 2, -4, 6, 3 | -5, 1, 0; 4 | cout << m.cwiseAbs2() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseSign.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(2,3); 2 | m << 2, -4, 6, 3 | -5, 1, 0; 4 | cout << m.cwiseSign() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_setIdentity.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Zero(); 2 | m.block<3,3>(1,0).setIdentity(); 3 | cout << m << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/make_circulant.cpp.preamble: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | template class Circulant; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_mult3.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf matA(2,2); 2 | matA << 2, 0, 0, 2; 3 | matA.noalias() = matA * matA; 4 | cout << matA; 5 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/.gitattributes: -------------------------------------------------------------------------------- 1 | # treat all files in this repository as text files 2 | # and normalize them to LF line endings when committed 3 | * text 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/blas/f2c/r_cnjg.c: -------------------------------------------------------------------------------- 1 | #include "datatypes.h" 2 | 3 | void r_cnjg(complex *r, complex *z) { 4 | r->r = z->r; 5 | r->i = -(z->i); 6 | } 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/TutorialSparse_example_details.dox: -------------------------------------------------------------------------------- 1 | /** 2 | \page TutorialSparse_example_details 3 | \include Tutorial_sparse_example_details.cpp 4 | */ 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseInverse.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(2,3); 2 | m << 2, 0.5, 1, 3 | 3, 0.25, 1; 4 | cout << m.cwiseInverse() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/loss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/loss.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/Eigen_Silly_Professor_64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/doc/Eigen_Silly_Professor_64x64.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_isInf.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v(1) *= 0.0/0.0; 3 | v(2) /= 0.0; 4 | cout << v << endl << endl; 5 | cout << isinf(v) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_isNaN.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v(1) *= 0.0/0.0; 3 | v(2) /= 0.0; 4 | cout << v << endl << endl; 5 | cout << isnan(v) << endl; 6 | -------------------------------------------------------------------------------- /src/OMSimulatorPython/OMSimulatorPython3.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set PYTHONPATH=%~dp0;%~dp0\..\lib;%PYTHONPATH% 4 | set PATH=%~dp0;%~dp0\..\lib;%PATH% 5 | 6 | python3 %* 7 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/slam2d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/slam2d.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_isFinite.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v(1) *= 0.0/0.0; 3 | v(2) /= 0.0; 4 | cout << v << endl << endl; 5 | cout << isfinite(v) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_mult4.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A(2,2), B(3,2); 2 | B << 2, 0, 0, 3, 1, 1; 3 | A << 2, 0, 0, -2; 4 | A = (B * A).cwiseAbs(); 5 | cout << A; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/Eigen/Dense: -------------------------------------------------------------------------------- 1 | #include "Core" 2 | #include "LU" 3 | #include "Cholesky" 4 | #include "QR" 5 | #include "SVD" 6 | #include "Geometry" 7 | #include "Eigenvalues" 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/blas/f2c/d_cnjg.c: -------------------------------------------------------------------------------- 1 | #include "datatypes.h" 2 | 3 | void d_cnjg(doublecomplex *r, doublecomplex *z) { 4 | r->r = z->r; 5 | r->i = -(z->i); 6 | } 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_boolean_not.cpp: -------------------------------------------------------------------------------- 1 | Array3d v(1,2,3); 2 | v(1) *= 0.0/0.0; 3 | v(2) /= 0.0; 4 | cout << v << endl << endl; 5 | cout << !isfinite(v) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DenseBase_LinSpaced.cpp: -------------------------------------------------------------------------------- 1 | cout << VectorXi::LinSpaced(4,7,10).transpose() << endl; 2 | cout << VectorXd::LinSpaced(5,0.0,1.0).transpose() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set_directory_properties(PROPERTIES EXCLUDE_FROM_ALL TRUE) 2 | 3 | add_subdirectory(examples) 4 | add_subdirectory(snippets) 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cast.cpp: -------------------------------------------------------------------------------- 1 | Matrix2d md = Matrix2d::Identity() * 0.45; 2 | Matrix2f mf = Matrix2f::Identity(); 3 | cout << md + mf.cast() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_resize_NoChange_int.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(3,4); 2 | m.resize(NoChange, 5); 3 | cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_resize_int_NoChange.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(3,4); 2 | m.resize(5, NoChange); 3 | cout << "m: " << m.rows() << " rows, " << m.cols() << " cols" << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_mult5.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A(2,2), B(3,2); 2 | B << 2, 0, 0, 3, 1, 1; 3 | A << 2, 0, 0, -2; 4 | A = (B * A).eval().cwiseAbs(); 5 | cout << A; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/timers/STL_timer.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/timers/STL_timer.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/utils/size_lin_log.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/utils/size_lin_log.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/TopicVectorization.dox: -------------------------------------------------------------------------------- 1 | namespace Eigen { 2 | 3 | /** \page TopicVectorization Vectorization 4 | 5 | 6 | TODO: write this dox page! 7 | 8 | */ 9 | } 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_commainit_01b.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m; 2 | m.row(0) << 1, 2, 3; 3 | m.block(1,0,2,2) << 4, 5, 7, 8; 4 | m.col(2).tail(2) << 6, 9; 5 | std::cout << m; 6 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/least_squares_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/least_squares_fit.png -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/pose_graph_3d_ex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/pose_graph_3d_ex.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_noalias.cpp: -------------------------------------------------------------------------------- 1 | Matrix2d a, b, c; a << 1,2,3,4; b << 5,6,7,8; 2 | c.noalias() = a * b; // this computes the product directly to c 3 | cout << c << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_select.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m(3, 3); 2 | m << 1, 2, 3, 3 | 4, 5, 6, 4 | 7, 8, 9; 5 | m = (m.array() >= 5).select(-m, m); 6 | cout << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/glog-config.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include (CMakeFindDependencyMacro) 4 | 5 | @gflags_DEPENDENCY@ 6 | 7 | include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake") 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/gmm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(GMM) 3 | if (GMM_FOUND) 4 | include_directories(${GMM_INCLUDES}) 5 | btl_add_bench(btl_gmm main.cpp) 6 | endif (GMM_FOUND) 7 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_01.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_01.bin -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_02.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_02.bin -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_03.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/problem_03.bin -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/forward_central_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/forward_central_error.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/timers/STL_perf_analyzer.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/timers/STL_perf_analyzer.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_product.cpp: -------------------------------------------------------------------------------- 1 | Array33i a = Array33i::Random(), b = Array33i::Random(); 2 | Array33i c = a * b; 3 | cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl; 4 | 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DenseBase_LinSpaced_seq.cpp: -------------------------------------------------------------------------------- 1 | cout << VectorXi::LinSpaced(Sequential,4,7,10).transpose() << endl; 2 | cout << VectorXd::LinSpaced(Sequential,5,0.0,1.0).transpose() << endl; 3 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Map_outer_stride.cpp: -------------------------------------------------------------------------------- 1 | int array[12]; 2 | for(int i = 0; i < 12; ++i) array[i] = i; 3 | cout << Map >(array, 3, 3, OuterStride<>(4)) << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_operatorNorm.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | cout << "The operator norm of the 3x3 matrix of ones is " 3 | << ones.operatorNorm() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/robust_least_squares_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/robust_least_squares_fit.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/static/static_size_generator.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/static/static_size_generator.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/timers/mixed_perf_analyzer.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/timers/mixed_perf_analyzer.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/mtl4/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(MTL4) 3 | if (MTL4_FOUND) 4 | include_directories(${MTL4_INCLUDE_DIR}) 5 | btl_add_bench(btl_mtl4 main.cpp) 6 | endif (MTL4_FOUND) 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_inverse.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Its inverse is:" << endl << m.inverse() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/manhattan_olson_3500_result.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/manhattan_olson_3500_result.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/README.md: -------------------------------------------------------------------------------- 1 | **Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.** 2 | 3 | For more information go to http://eigen.tuxfamily.org/. 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/generic_bench/static/intel_bench_fixed_size.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/eigen/eigen/bench/btl/generic_bench/static/intel_bench_fixed_size.hh -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/test/bug1213.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | template 5 | bool bug1213_2(const Eigen::Matrix& x); 6 | 7 | bool bug1213_1(const Eigen::Vector3f& x); 8 | 9 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/forward_central_ridders_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/forward_central_ridders_error.png -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/non_robust_least_squares_fit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenModelica/OMSysIdent/master/3rdParty/ceres-solver/ceres-solver/docs/source/non_robust_least_squares_fit.png -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/tvmet/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(Tvmet) 3 | if (TVMET_FOUND) 4 | include_directories(${TVMET_INCLUDE_DIR}) 5 | btl_add_bench(btl_tvmet main.cpp OFF) 6 | endif (TVMET_FOUND) 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/make_circulant.cpp.entry: -------------------------------------------------------------------------------- 1 | template 2 | Circulant makeCirculant(const Eigen::MatrixBase& arg) 3 | { 4 | return Circulant(arg.derived()); 5 | } 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_AdvancedInitialization_Block.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf matA(2, 2); 2 | matA << 1, 2, 3, 4; 3 | MatrixXf matB(4, 4); 4 | matB << matA, matA/10, matA/10, matA; 5 | std::cout << matB << std::endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseProduct.cpp: -------------------------------------------------------------------------------- 1 | Matrix3i a = Matrix3i::Random(), b = Matrix3i::Random(); 2 | Matrix3i c = a.cwiseProduct(b); 3 | cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl; 4 | 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_eigenvalues.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | VectorXcd eivals = ones.eigenvalues(); 3 | cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << eivals << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_sum.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/failtest_sanity_check.cpp: -------------------------------------------------------------------------------- 1 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 2 | This is just some text that won't compile as a C++ file, as a basic sanity check for failtest. 3 | #else 4 | int main() {} 5 | #endif 6 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/tutorial.rst: -------------------------------------------------------------------------------- 1 | .. _chapter-tutorial: 2 | 3 | ======== 4 | Tutorial 5 | ======== 6 | 7 | .. toctree:: 8 | :maxdepth: 3 9 | 10 | nnls_tutorial 11 | gradient_tutorial 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/TopicResizing.dox: -------------------------------------------------------------------------------- 1 | namespace Eigen { 2 | 3 | /** \page TopicResizing Resizing 4 | 5 | 6 | TODO: write this dox page! 7 | 8 | Is linked from the tutorial on the Matrix class. 9 | 10 | */ 11 | } 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/make_circulant.cpp.main: -------------------------------------------------------------------------------- 1 | int main() 2 | { 3 | Eigen::VectorXd vec(4); 4 | vec << 1, 2, 4, 8; 5 | Eigen::MatrixXd mat; 6 | mat = makeCirculant(vec); 7 | std::cout << mat << std::endl; 8 | } 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_adjoint.cpp: -------------------------------------------------------------------------------- 1 | Matrix2cf m = Matrix2cf::Random(); 2 | cout << "Here is the 2x2 complex matrix m:" << endl << m << endl; 3 | cout << "Here is the adjoint of m:" << endl << m.adjoint() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_prod.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the product of all the coefficients:" << endl << m.prod() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_norm.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_prod.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the product of each row:" << endl << m.rowwise().prod() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointView_operatorNorm.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | cout << "The operator norm of the 3x3 matrix of ones is " 3 | << ones.selfadjointView().operatorNorm() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_matrix_inverse.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A; 2 | Vector3f b; 3 | A << 1,2,3, 4,5,6, 7,8,10; 4 | b << 3, 3, 4; 5 | Vector3f x = A.inverse() * b; 6 | cout << "The solution is:" << endl << x << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/blas/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This directory contains a BLAS library built on top of Eigen. 3 | 4 | This module is not built by default. In order to compile it, you need to 5 | type 'make blas' from within your build dir. 6 | 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/cmake/UseEigen3.cmake: -------------------------------------------------------------------------------- 1 | # -*- cmake -*- 2 | # 3 | # UseEigen3.cmake 4 | 5 | add_definitions ( ${EIGEN3_DEFINITIONS} ) 6 | include_directories ( ${EIGEN3_INCLUDE_DIRS} ) 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Map_general_stride.cpp: -------------------------------------------------------------------------------- 1 | int array[24]; 2 | for(int i = 0; i < 24; ++i) array[i] = i; 3 | cout << Map > 4 | (array, 3, 3, Stride(8, 2)) 5 | << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/LeastSquaresQR.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A = MatrixXf::Random(3, 2); 2 | VectorXf b = VectorXf::Random(3); 3 | cout << "The solution using the QR decomposition is:\n" 4 | << A.colPivHouseholderQr().solve(b) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_replicate.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m = MatrixXi::Random(2,3); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "m.replicate<3,2>() = ..." << endl; 4 | cout << m.replicate<3,2>() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_replicate_int_int.cpp: -------------------------------------------------------------------------------- 1 | Vector3i v = Vector3i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "v.replicate(2,5) = ..." << endl; 4 | cout << v.replicate(2,5) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_maxCoeff.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_minCoeff.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the minimum of each column:" << endl << m.colwise().minCoeff() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_SlicingVec.cpp: -------------------------------------------------------------------------------- 1 | RowVectorXf v = RowVectorXf::LinSpaced(20,0,19); 2 | cout << "Input:" << endl << v << endl; 3 | Map > v2(v.data(), v.size()/2); 4 | cout << "Even:" << v2 << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/TopicScalarTypes.dox: -------------------------------------------------------------------------------- 1 | namespace Eigen { 2 | 3 | /** \page TopicScalarTypes Scalar types 4 | 5 | 6 | TODO: write this dox page! 7 | 8 | Is linked from the tutorial on the Matrix class. 9 | 10 | */ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/EigenSolver_eigenvalues.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | EigenSolver es(ones, false); 3 | cout << "The eigenvalues of the 3x3 matrix of ones are:" 4 | << endl << es.eigenvalues() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Map_placement_new.cpp: -------------------------------------------------------------------------------- 1 | int data[] = {1,2,3,4,5,6,7,8,9}; 2 | Map v(data,4); 3 | cout << "The mapped vector v is: " << v << "\n"; 4 | new (&v) Map(data+4,5); 5 | cout << "Now v is: " << v << "\n"; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_ReshapeMat2Mat.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf M1(2,6); // Column-major storage 2 | M1 << 1, 2, 3, 4, 5, 6, 3 | 7, 8, 9, 10, 11, 12; 4 | 5 | Map M2(M1.data(), 6,2); 6 | cout << "M2:" << endl << M2 << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_squaredNorm.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_triangular_inplace.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A; 2 | Vector3f b; 3 | A << 1,2,3, 0,5,6, 0,0,10; 4 | b << 3, 3, 4; 5 | A.triangularView().solveInPlace(b); 6 | cout << "The solution is:" << endl << b << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/.hgeol: -------------------------------------------------------------------------------- 1 | [patterns] 2 | *.sh = LF 3 | *.MINPACK = CRLF 4 | scripts/*.in = LF 5 | debug/msvc/*.dat = CRLF 6 | debug/msvc/*.natvis = CRLF 7 | unsupported/test/mpreal/*.* = CRLF 8 | ** = native 9 | 10 | [repository] 11 | native = LF 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DirectionWise_replicate.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m = MatrixXi::Random(2,3); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "m.colwise().replicate<3>() = ..." << endl; 4 | cout << m.colwise().replicate<3>() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DirectionWise_replicate_int.cpp: -------------------------------------------------------------------------------- 1 | Vector3i v = Vector3i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "v.rowwise().replicate(5) = ..." << endl; 4 | cout << v.rowwise().replicate(5) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/EigenSolver_eigenvectors.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | EigenSolver es(ones); 3 | cout << "The first eigenvector of the 3x3 matrix of ones is:" 4 | << endl << es.eigenvectors().col(0) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_diagonal.cpp: -------------------------------------------------------------------------------- 1 | Matrix3i m = Matrix3i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here are the coefficients on the main diagonal of m:" << endl 4 | << m.diagonal() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointView_eigenvalues.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | VectorXd eivals = ones.selfadjointView().eigenvalues(); 3 | cout << "The eigenvalues of the 3x3 matrix of ones are:" << endl << eivals << endl; 4 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/tut_arithmetic_transpose_inplace.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf a(2,3); a << 1, 2, 3, 4, 5, 6; 2 | cout << "Here is the initial matrix a:\n" << a << endl; 3 | 4 | 5 | a.transposeInPlace(); 6 | cout << "and after being transposed:\n" << a << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/mtl4/.kdbgrc.main: -------------------------------------------------------------------------------- 1 | [General] 2 | DebuggerCmdStr= 3 | DriverName=GDB 4 | FileVersion=1 5 | OptionsSelected= 6 | ProgramArgs= 7 | TTYLevel=7 8 | WorkingDirectory= 9 | 10 | [Memory] 11 | ColumnWidths=80,0 12 | NumExprs=0 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/ublas/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(Boost) 3 | if (Boost_FOUND) 4 | include_directories(${Boost_INCLUDE_DIRS}) 5 | include_directories(${Boost_INCLUDES}) 6 | btl_add_bench(btl_ublas main.cpp) 7 | endif (Boost_FOUND) 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_eigenvalues.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | SelfAdjointEigenSolver es(ones); 3 | cout << "The eigenvalues of the 3x3 matrix of ones are:" 4 | << endl << es.eigenvalues() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_AdvancedInitialization_CommaTemporary.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf mat = MatrixXf::Random(2, 3); 2 | std::cout << mat << std::endl << std::endl; 3 | mat = (MatrixXf(2,2) << 0, 1, 1, 0).finished() * mat; 4 | std::cout << mat << std::endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/Eigen/src/EulerAngles/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB Eigen_EulerAngles_SRCS "*.h") 2 | 3 | INSTALL(FILES 4 | ${Eigen_EulerAngles_SRCS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/unsupported/Eigen/src/EulerAngles COMPONENT Devel 6 | ) 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Cwise_lgamma.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace Eigen; 5 | int main() 6 | { 7 | Array4d v(0.5,10,0,-1); 8 | std::cout << v.lgamma() << std::endl; 9 | } -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/LeastSquaresNormalEquations.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A = MatrixXf::Random(3, 2); 2 | VectorXf b = VectorXf::Random(3); 3 | cout << "The solution using normal equations is:\n" 4 | << (A.transpose() * A).ldlt().solve(A.transpose() * b) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Map_inner_stride.cpp: -------------------------------------------------------------------------------- 1 | int array[12]; 2 | for(int i = 0; i < 12; ++i) array[i] = i; 3 | cout << Map > 4 | (array, 6) // the inner stride has already been passed as template parameter 5 | << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/perf_monitoring/gemm/lazy_gemm_settings.txt: -------------------------------------------------------------------------------- 1 | 1 1 1 0 2 | 2 2 2 0 3 | 3 3 3 0 4 | 4 4 4 0 5 | 4 4 4 1 6 | 5 5 5 0 7 | 6 6 6 0 8 | 7 7 7 0 9 | 7 7 7 1 10 | 8 8 8 0 11 | 9 9 9 0 12 | 10 10 10 0 13 | 11 11 11 0 14 | 12 12 12 0 15 | 12 12 12 1 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/tut_arithmetic_transpose_aliasing.cpp: -------------------------------------------------------------------------------- 1 | Matrix2i a; a << 1, 2, 3, 4; 2 | cout << "Here is the matrix a:\n" << a << endl; 3 | 4 | a = a.transpose(); // !!! do NOT do this !!! 5 | cout << "and the result of the aliasing effect:\n" << a << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/signature_of_eigen3_matrix_library: -------------------------------------------------------------------------------- 1 | This file is just there as a signature to help identify directories containing Eigen3. When writing a script looking for Eigen3, just look for this file. This is especially useful to help disambiguate with Eigen2... 2 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/test/bug1213.cpp: -------------------------------------------------------------------------------- 1 | 2 | // This anonymous enum is essential to trigger the linking issue 3 | enum { 4 | Foo 5 | }; 6 | 7 | #include "bug1213.h" 8 | 9 | bool bug1213_1(const Eigen::Vector3f& x) 10 | { 11 | return bug1213_2(x); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Cwise_erf.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace Eigen; 5 | int main() 6 | { 7 | Array4d v(-0.5,2,0,-7); 8 | std::cout << v.erf() << std::endl; 9 | } 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ComplexEigenSolver_eigenvectors.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf ones = MatrixXcf::Ones(3,3); 2 | ComplexEigenSolver ces(ones); 3 | cout << "The first eigenvector of the 3x3 matrix of ones is:" 4 | << endl << ces.eigenvectors().col(1) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_eigenvectors.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd ones = MatrixXd::Ones(3,3); 2 | SelfAdjointEigenSolver es(ones); 3 | cout << "The first eigenvector of the 3x3 matrix of ones is:" 4 | << endl << es.eigenvectors().col(1) << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/tut_matrix_assignment_resizing.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf a(2,2); 2 | std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl; 3 | MatrixXf b(3,3); 4 | a = b; 5 | std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl; 6 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/README: -------------------------------------------------------------------------------- 1 | This repository contains a C++ implementation of the Google logging 2 | module. Documentation for the implementation is in doc/. 3 | 4 | See INSTALL for (generic) installation instructions for C++: basically 5 | ./configure && make && make install 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Cwise_erfc.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | using namespace Eigen; 5 | int main() 6 | { 7 | Array4d v(-0.5,2,0,-7); 8 | std::cout << v.erfc() << std::endl; 9 | } 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/TopicEigenExpressionTemplates.dox: -------------------------------------------------------------------------------- 1 | namespace Eigen { 2 | 3 | /** \page TopicEigenExpressionTemplates Expression templates in Eigen 4 | 5 | 6 | TODO: write this dox page! 7 | 8 | Is linked from the tutorial on arithmetic ops. 9 | 10 | */ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/AngleAxis_mimic_euler.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m; 2 | m = AngleAxisf(0.25*M_PI, Vector3f::UnitX()) 3 | * AngleAxisf(0.5*M_PI, Vector3f::UnitY()) 4 | * AngleAxisf(0.33*M_PI, Vector3f::UnitZ()); 5 | cout << m << endl << "is unitary: " << m.isUnitary() << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isOnes.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Ones(); 2 | m(0,2) += 1e-4; 3 | cout << "Here's the matrix m:" << endl << m << endl; 4 | cout << "m.isOnes() returns: " << m.isOnes() << endl; 5 | cout << "m.isOnes(1e-3) returns: " << m.isOnes(1e-3) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isZero.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Zero(); 2 | m(0,2) = 1e-4; 3 | cout << "Here's the matrix m:" << endl << m << endl; 4 | cout << "m.isZero() returns: " << m.isZero() << endl; 5 | cout << "m.isZero(1e-3) returns: " << m.isZero(1e-3) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ComplexSchur_matrixU.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf A = MatrixXcf::Random(4,4); 2 | cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; 3 | ComplexSchur schurOfA(A); 4 | cout << "The unitary matrix U is:" << endl << schurOfA.matrixU() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_applyOnTheLeft.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A = Matrix3f::Random(3,3), B; 2 | B << 0,1,0, 3 | 0,0,1, 4 | 1,0,0; 5 | cout << "At start, A = " << endl << A << endl; 6 | A.applyOnTheLeft(B); 7 | cout << "After applyOnTheLeft, A = " << endl << A << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ComplexEigenSolver_eigenvalues.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf ones = MatrixXcf::Ones(3,3); 2 | ComplexEigenSolver ces(ones, /* computeEigenvectors = */ false); 3 | cout << "The eigenvalues of the 3x3 matrix of ones are:" 4 | << endl << ces.eigenvalues() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_end_int.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.tail(2):" << endl << v.tail(2) << endl; 4 | v.tail(2).setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_commainit_02.cpp: -------------------------------------------------------------------------------- 1 | int rows=5, cols=5; 2 | MatrixXf m(rows,cols); 3 | m << (Matrix3f() << 1, 2, 3, 4, 5, 6, 7, 8, 9).finished(), 4 | MatrixXf::Zero(3,cols-3), 5 | MatrixXf::Zero(rows-3,3), 6 | MatrixXf::Identity(rows-3,cols-3); 7 | cout << m; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(Eigen) 2 | add_subdirectory(doc EXCLUDE_FROM_ALL) 3 | if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) 4 | add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest 5 | else() 6 | add_subdirectory(test EXCLUDE_FROM_ALL) 7 | endif() 8 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/cmake/README_runtime.txt: -------------------------------------------------------------------------------- 1 | This package contains runtime libraries only which are required 2 | by applications that use these libraries for the commandline flags 3 | processing. If you want to develop such application, download 4 | and install the development package instead. 5 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/libglog.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libglog 7 | Description: Google Log (glog) C++ logging framework 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lglog 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_start_int.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.head(2):" << endl << v.head(2) << endl; 4 | v.head(2).setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/perf_monitoring/gemm/gemm_settings.txt: -------------------------------------------------------------------------------- 1 | 8 8 8 2 | 9 9 9 3 | 24 24 24 4 | 239 239 239 5 | 240 240 240 6 | 2400 24 24 7 | 24 2400 24 8 | 24 24 2400 9 | 24 2400 2400 10 | 2400 24 2400 11 | 2400 2400 24 12 | 2400 2400 64 13 | 4800 23 160 14 | 23 4800 160 15 | 2400 2400 2400 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Cwise_array_power_array.cpp: -------------------------------------------------------------------------------- 1 | Array x(8,25,3), 2 | e(1./3.,0.5,2.); 3 | cout << "[" << x << "]^[" << e << "] = " << x.pow(e) << endl; // using ArrayBase::pow 4 | cout << "[" << x << "]^[" << e << "] = " << pow(x,e) << endl; // using Eigen::pow 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Jacobi_makeGivens.cpp: -------------------------------------------------------------------------------- 1 | Vector2f v = Vector2f::Random(); 2 | JacobiRotation G; 3 | G.makeGivens(v.x(), v.y()); 4 | cout << "Here is the vector v:" << endl << v << endl; 5 | v.applyOnTheLeft(0, 1, G.adjoint()); 6 | cout << "Here is the vector J' * v:" << endl << v << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_array_const.cpp: -------------------------------------------------------------------------------- 1 | Vector3d v(-1,2,-3); 2 | cout << "the absolute values:" << endl << v.array().abs() << endl; 3 | cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl; 4 | cout << "sum of the squares: " << v.array().square().sum() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isUnitary.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Identity(); 2 | m(0,2) = 1e-4; 3 | cout << "Here's the matrix m:" << endl << m << endl; 4 | cout << "m.isUnitary() returns: " << m.isUnitary() << endl; 5 | cout << "m.isUnitary(1e-3) returns: " << m.isUnitary(1e-3) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/WORKSPACE: -------------------------------------------------------------------------------- 1 | # Copyright 2006 Google Inc. All Rights Reserved. 2 | # Use of this source code is governed by a BSD-style 3 | # license that can be found in the COPYING.txt file. 4 | 5 | # Bazel (http://bazel.io/) WORKSPACE file for gflags. 6 | workspace(name="com_github_gflags_gflags") 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isIdentity.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Identity(); 2 | m(0,2) = 1e-4; 3 | cout << "Here's the matrix m:" << endl << m << endl; 4 | cout << "m.isIdentity() returns: " << m.isIdentity() << endl; 5 | cout << "m.isIdentity(1e-3) returns: " << m.isIdentity(1e-3) << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_end.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.tail(2):" << endl << v.tail<2>() << endl; 4 | v.tail<2>().setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_start.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.head(2):" << endl << v.head<2>() << endl; 4 | v.head<2>().setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_topRows_int.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.topRows(2):" << endl; 4 | cout << a.topRows(2) << endl; 5 | a.topRows(2).setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_resize_int.cpp: -------------------------------------------------------------------------------- 1 | VectorXd v(10); 2 | v.resize(3); 3 | RowVector3d w; 4 | w.resize(3); // this is legal, but has no effect 5 | cout << "v: " << v.rows() << " rows, " << v.cols() << " cols" << endl; 6 | cout << "w: " << w.rows() << " rows, " << w.cols() << " cols" << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/swap_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | int main() 6 | { 7 | VectorXf a(10), b(10); 8 | VectorXf const &ac(a); 9 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 10 | b.swap(ac); 11 | #else 12 | b.swap(ac.const_cast_derived()); 13 | #endif 14 | } -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_leftCols_int.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.leftCols(2):" << endl; 4 | cout << a.leftCols(2) << endl; 5 | a.leftCols(2).setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ternary_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | int main(int argc,char **) 6 | { 7 | VectorXf a(10), b(10); 8 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 9 | b = argc>1 ? 2*a : -a; 10 | #else 11 | b = argc>1 ? 2*a : VectorXf(-a); 12 | #endif 13 | } 14 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/config/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ## gflags package configuration tests 2 | 3 | cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) 4 | 5 | project (gflags_${TEST_NAME}) 6 | 7 | find_package (gflags REQUIRED) 8 | 9 | add_executable (foo main.cc) 10 | target_link_libraries (foo gflags) 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_block_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl; 4 | m.block<2,2>(1,1).setZero(); 5 | cout << "Now the matrix m is:" << endl << m << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isDiagonal.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = 10000 * Matrix3d::Identity(); 2 | m(0,2) = 1; 3 | cout << "Here's the matrix m:" << endl << m << endl; 4 | cout << "m.isDiagonal() returns: " << m.isDiagonal() << endl; 5 | cout << "m.isDiagonal(1e-3) returns: " << m.isDiagonal(1e-3) << endl; 6 | 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_rightCols_int.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.rightCols(2):" << endl; 4 | cout << a.rightCols(2) << endl; 5 | a.rightCols(2).setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_segment_int_int.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.segment(1, 2):" << endl << v.segment(1, 2) << endl; 4 | v.segment(1, 2).setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ref_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref a) { } 6 | 7 | int main() 8 | { 9 | MatrixXf 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 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/swap_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | int main() 6 | { 7 | VectorXf a(10), b(10); 8 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 9 | const DenseBase &ac(a); 10 | #else 11 | DenseBase &ac(a); 12 | #endif 13 | b.swap(ac); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/QuickStart_example.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using Eigen::MatrixXd; 5 | 6 | int main() 7 | { 8 | MatrixXd m(2,2); 9 | m(0,0) = 3; 10 | m(1,0) = 2.5; 11 | m(0,1) = -1; 12 | m(1,1) = m(1,0) + m(0,1); 13 | std::cout << m << std::endl; 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_bottomRows_int.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.bottomRows(2):" << endl; 4 | cout << a.bottomRows(2) << endl; 5 | a.bottomRows(2).setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_segment.cpp: -------------------------------------------------------------------------------- 1 | RowVector4i v = RowVector4i::Random(); 2 | cout << "Here is the vector v:" << endl << v << endl; 3 | cout << "Here is v.segment<2>(1):" << endl << v.segment<2>(1) << endl; 4 | v.segment<2>(2).setZero(); 5 | cout << "Now the vector v is:" << endl << v << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_topRows.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.topRows<2>():" << endl; 4 | cout << a.topRows<2>() << endl; 5 | a.topRows<2>().setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/eigen3.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=${prefix} 3 | 4 | Name: Eigen3 5 | Description: A C++ template library for linear algebra: vectors, matrices, and related algorithms 6 | Requires: 7 | Version: @EIGEN_VERSION_NUMBER@ 8 | Libs: 9 | Cflags: -I${prefix}/@INCLUDE_INSTALL_DIR@ 10 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/packages/deb/libgoogle-glog-dev.install: -------------------------------------------------------------------------------- 1 | usr/include/glog/* 2 | usr/lib/lib*.so 3 | usr/lib/lib*.a 4 | usr/lib/*.la 5 | usr/lib/pkgconfig/* 6 | debian/tmp/usr/include/glog/* 7 | debian/tmp/usr/lib/lib*.so 8 | debian/tmp/usr/lib/lib*.a 9 | debian/tmp/usr/lib/*.la 10 | debian/tmp/usr/lib/pkgconfig/* 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ComplexSchur_matrixT.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf A = MatrixXcf::Random(4,4); 2 | cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl; 3 | ComplexSchur schurOfA(A, false); // false means do not compute U 4 | cout << "The triangular matrix T is:" << endl << schurOfA.matrixT() << endl; 5 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_leftCols.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.leftCols<2>():" << endl; 4 | cout << a.leftCols<2>() << endl; 5 | a.leftCols<2>().setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_mult2.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf matA(2,2), matB(2,2); 2 | matA << 2, 0, 0, 2; 3 | 4 | // Simple but not quite as efficient 5 | matB = matA * matA; 6 | cout << matB << endl << endl; 7 | 8 | // More complicated but also more efficient 9 | matB.noalias() = matA * matA; 10 | cout << matB; 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ternary_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | int main(int argc,char **) 6 | { 7 | VectorXf a(10), b(10); 8 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 9 | b = argc>1 ? 2*a : a+a; 10 | #else 11 | b = argc>1 ? VectorXf(2*a) : VectorXf(a+a); 12 | #endif 13 | } 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/demos/mix_eigen_and_c/README: -------------------------------------------------------------------------------- 1 | This is an example of how one can wrap some of Eigen into a C library. 2 | 3 | To try this with GCC, do: 4 | 5 | g++ -c binary_library.cpp -O2 -msse2 -I ../.. 6 | gcc example.c binary_library.o -o example -lstdc++ 7 | ./example 8 | 9 | TODO: add CMakeLists, add more explanations here -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_block_int_int_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.block(1, 1, 2, 2):" << endl << m.block(1, 1, 2, 2) << endl; 4 | m.block(1, 1, 2, 2).setZero(); 5 | cout << "Now the matrix m is:" << endl << m << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_rightCols.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.rightCols<2>():" << endl; 4 | cout << a.rightCols<2>() << endl; 5 | a.rightCols<2>().setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialRedux_count.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | Matrix res = (m.array() >= 0.5).rowwise().count(); 4 | cout << "Here is the count of elements larger or equal than 0.5 of each row:" << endl; 5 | cout << res << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ref_4.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref > a) {} 6 | 7 | int main() 8 | { 9 | MatrixXf A(10,10); 10 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 11 | call_ref(A.transpose()); 12 | #else 13 | call_ref(A); 14 | #endif 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_bottomRows.cpp: -------------------------------------------------------------------------------- 1 | Array44i a = Array44i::Random(); 2 | cout << "Here is the array a:" << endl << a << endl; 3 | cout << "Here is a.bottomRows<2>():" << endl; 4 | cout << a.bottomRows<2>() << endl; 5 | a.bottomRows<2>().setZero(); 6 | cout << "Now the array a is:" << endl << a << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ref_3.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 6 | void call_ref(Ref a) { } 7 | #else 8 | void call_ref(const Ref &a) { } 9 | #endif 10 | 11 | int main() 12 | { 13 | VectorXf a(10); 14 | call_ref(a+a); 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/gflags_declare_flags.cc: -------------------------------------------------------------------------------- 1 | #define GFLAGS_DLL_DECLARE_FLAG 2 | 3 | #include 4 | #include 5 | 6 | DECLARE_string(message); // in gflags_delcare_test.cc 7 | 8 | void print_message(); 9 | void print_message() 10 | { 11 | std::cout << FLAGS_message << std::endl; 12 | } 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_diagonal_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 | << m.diagonal(1).transpose() << endl 5 | << m.diagonal(-2).transpose() << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_block.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi mat(3,3); 2 | mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; 3 | cout << "Here is the matrix mat:\n" << mat << endl; 4 | 5 | // This assignment shows the aliasing problem 6 | mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2); 7 | cout << "After the assignment, mat = \n" << mat << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_matrix_resize_fixed_size.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | Matrix4d m; 9 | m.resize(4,4); // no operation 10 | std::cout << "The matrix m is of size " 11 | << m.rows() << "x" << m.cols() << std::endl; 12 | } 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_rowwise.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl; 4 | cout << "Here is the maximum absolute value of each row:" 5 | << endl << m.cwiseAbs().rowwise().maxCoeff() << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_topLeftCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topLeftCorner(2, 2):" << endl; 4 | cout << m.topLeftCorner(2, 2) << endl; 5 | m.topLeftCorner(2, 2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ref_5.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref a) { } 6 | 7 | int main() 8 | { 9 | VectorXf a(10); 10 | DenseBase &ac(a); 11 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 12 | call_ref(ac); 13 | #else 14 | call_ref(ac.derived()); 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_ref_4.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref > a) {} 6 | 7 | int main() 8 | { 9 | SparseMatrix A(10,10); 10 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 11 | call_ref(A.transpose()); 12 | #else 13 | call_ref(A); 14 | #endif 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/gflags_strip_flags_test.cmake: -------------------------------------------------------------------------------- 1 | if (NOT BINARY) 2 | message (FATAL_ERROR "BINARY file to check not specified!") 3 | endif () 4 | file (STRINGS "${BINARY}" strings REGEX "This text should be stripped out") 5 | if (strings) 6 | message (FATAL_ERROR "Text not stripped from binary like it should be: ${BINARY}") 7 | endif () 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_colwise.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl; 4 | cout << "Here is the maximum absolute value of each column:" 5 | << endl << m.cwiseAbs().colwise().maxCoeff() << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseEqual.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m(2,2); 2 | m << 1, 0, 3 | 1, 1; 4 | cout << "Comparing m with identity matrix:" << endl; 5 | cout << m.cwiseEqual(MatrixXi::Identity(2,2)) << endl; 6 | int count = m.cwiseEqual(MatrixXi::Identity(2,2)).count(); 7 | cout << "Number of coefficients that are equal: " << count << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_fixedBlock_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4d m = Vector4d(1,2,3,4).asDiagonal(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.fixed<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl; 4 | m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2); 5 | cout << "Now the matrix m is:" << endl << m << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_topRightCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topRightCorner(2, 2):" << endl; 4 | cout << m.topRightCorner(2, 2) << endl; 5 | m.topRightCorner(2, 2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicAliasing_block_correct.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi mat(3,3); 2 | mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; 3 | cout << "Here is the matrix mat:\n" << mat << endl; 4 | 5 | // The eval() solves the aliasing problem 6 | mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2).eval(); 7 | cout << "After the assignment, mat = \n" << mat << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_singular.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A; 2 | Vector3f b; 3 | A << 1,2,3, 4,5,6, 7,8,9; 4 | b << 3, 3, 4; 5 | cout << "Here is the matrix A:" << endl << A << endl; 6 | cout << "Here is the vector b:" << endl << b << endl; 7 | Vector3f x; 8 | x = A.lu().solve(b); 9 | cout << "The solution is:" << endl << x << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/bdcsvd_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/SVD" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | BDCSVD > qr(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ldlt_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Cholesky" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | LDLT > ldlt(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/llt_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Cholesky" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | LLT > llt(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/qr_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/QR" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | HouseholderQR > qr(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_ref_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref > a) { } 6 | 7 | int main() 8 | { 9 | SparseMatrix 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 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_bottomLeftCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomLeftCorner(2, 2):" << endl; 4 | cout << m.bottomLeftCorner(2, 2) << endl; 5 | m.bottomLeftCorner(2, 2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_diagonal_template_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here are the coefficients on the 1st super-diagonal and 2nd sub-diagonal of m:" << endl 4 | << m.diagonal<1>().transpose() << endl 5 | << m.diagonal<-2>().transpose() << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_topLeftCorner.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topLeftCorner<2,2>():" << endl; 4 | cout << m.topLeftCorner<2,2>() << endl; 5 | m.topLeftCorner<2,2>().setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_triangular.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A; 2 | Vector3f b; 3 | A << 1,2,3, 0,5,6, 0,0,10; 4 | b << 3, 3, 4; 5 | cout << "Here is the matrix A:" << endl << A << endl; 6 | cout << "Here is the vector b:" << endl << b << endl; 7 | Vector3f x = A.triangularView().solve(b); 8 | cout << "The solution is:" << endl << x << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/fullpivlu_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/LU" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | FullPivLU > lu(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/jacobisvd_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/SVD" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | JacobiSVD > qr(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_nonconst_ctor_on_const_ptr_0.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER float *ptr){ 12 | Map m(ptr); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_bottomRightCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomRightCorner(2, 2):" << endl; 4 | cout << m.bottomRightCorner(2, 2) << endl; 5 | m.bottomRightCorner(2, 2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_block_int_int_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the block:" << endl << m.block<2, Dynamic>(1, 1, 2, 3) << endl; 4 | m.block<2, Dynamic>(1, 1, 2, 3).setZero(); 5 | cout << "Now the matrix m is:" << endl << m << endl; 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_topRightCorner.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topRightCorner<2,2>():" << endl; 4 | cout << m.topRightCorner<2,2>() << endl; 5 | m.topRightCorner<2,2>().setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/diagonal_nonconst_ctor_on_const_xpr.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Diagonal d(m); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/partialpivlu_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/LU" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | PartialPivLU > lu(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/packages/deb/README: -------------------------------------------------------------------------------- 1 | The list of files here isn't complete. For a step-by-step guide on 2 | how to set this package up correctly, check out 3 | http://www.debian.org/doc/maint-guide/ 4 | 5 | Most of the files that are in this directory are boilerplate. 6 | However, you may need to change the list of binary-arch dependencies 7 | in 'rules'. 8 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/libmv-ba-problems/Readme.txt: -------------------------------------------------------------------------------- 1 | Problem files are created from Tears of Steel production files. 2 | 3 | - problem_01.bin is a final camera motion refinement step of 07_1a scene. 4 | - problem_02.bin is a final camera motion refinement step of 03_2a scene. 5 | - problem_03.bin is a final camera motion refinement step of 09_1a scene. 6 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Jacobi_makeJacobi.cpp: -------------------------------------------------------------------------------- 1 | Matrix2f m = Matrix2f::Random(); 2 | m = (m + m.adjoint()).eval(); 3 | JacobiRotation J; 4 | J.makeJacobi(m, 0, 1); 5 | cout << "Here is the matrix m:" << endl << m << endl; 6 | m.applyOnTheLeft(0, 1, J.adjoint()); 7 | m.applyOnTheRight(0, 1, J); 8 | cout << "Here is the matrix J' * m * J:" << endl << m << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m(2,2); 2 | m << 1, 0, 3 | 1, 1; 4 | cout << "Comparing m with identity matrix:" << endl; 5 | cout << m.cwiseNotEqual(MatrixXi::Identity(2,2)) << endl; 6 | int count = m.cwiseNotEqual(MatrixXi::Identity(2,2)).count(); 7 | cout << "Number of coefficients that are not equal: " << count << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_isOrthogonal.cpp: -------------------------------------------------------------------------------- 1 | Vector3d v(1,0,0); 2 | Vector3d w(1e-4,0,1); 3 | cout << "Here's the vector v:" << endl << v << endl; 4 | cout << "Here's the vector w:" << endl << w << endl; 5 | cout << "v.isOrthogonal(w) returns: " << v.isOrthogonal(w) << endl; 6 | cout << "v.isOrthogonal(w,1e-3) returns: " << v.isOrthogonal(w,1e-3) << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/block_nonconst_ctor_on_const_xpr_0.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Block b(m,0,0); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/block_nonconst_ctor_on_const_xpr_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Block b(m,0,0,3,3); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/colpivqr_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/QR" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | ColPivHouseholderQR > qr(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/fullpivqr_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/QR" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | FullPivHouseholderQR > qr(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/transpose_nonconst_ctor_on_const_xpr.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Transpose t(m); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ArrayClass_mult.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | ArrayXXf a(2,2); 10 | ArrayXXf b(2,2); 11 | a << 1,2, 12 | 3,4; 13 | b << 5,6, 14 | 7,8; 15 | cout << "a * b = " << endl << a * b << endl; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ComplexSchur_compute.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf A = MatrixXcf::Random(4,4); 2 | ComplexSchur schur(4); 3 | schur.compute(A); 4 | cout << "The matrix T in the decomposition of A is:" << endl << schur.matrixT() << endl; 5 | schur.compute(A.inverse()); 6 | cout << "The matrix T in the decomposition of A^(-1) is:" << endl << schur.matrixT() << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_bottomLeftCorner.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomLeftCorner<2,2>():" << endl; 4 | cout << m.bottomLeftCorner<2,2>() << endl; 5 | m.bottomLeftCorner<2,2>().setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_AdvancedInitialization_LinSpaced.cpp: -------------------------------------------------------------------------------- 1 | ArrayXXf table(10, 4); 2 | table.col(0) = ArrayXf::LinSpaced(10, 0, 90); 3 | table.col(1) = M_PI / 180 * table.col(0); 4 | table.col(2) = table.col(1).sin(); 5 | table.col(3) = table.col(1).cos(); 6 | std::cout << " Degrees Radians Sine Cosine\n"; 7 | std::cout << table << std::endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/eigensolver_int.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Eigenvalues" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR int 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | EigenSolver > eig(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/2x2.foe: -------------------------------------------------------------------------------- 1 | 2 3 2 | 0 1 0 1 3 | 0 0 1 1 4 | 0.586612685392731 1.157638405566669 0.846059486257292 5 | -0.0582774013402734 0.0339010363051084 -0.0501593018104054 0.0745568557931712 6 | 0.0492112815304123 -0.0307820846538285 -0.123247230948424 0.104812330861557 7 | 0.0562633568728865 0.0152832583489560 -0.0576215592718086 -0.0139673758425540 8 | 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_bottomRightCorner.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomRightCorner<2,2>():" << endl; 4 | cout << m.bottomRightCorner<2,2>() << endl; 5 | m.bottomRightCorner<2,2>().setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_Map_rowmajor.cpp: -------------------------------------------------------------------------------- 1 | int array[8]; 2 | for(int i = 0; i < 8; ++i) array[i] = i; 3 | cout << "Column-major:\n" << Map >(array) << endl; 4 | cout << "Row-major:\n" << Map >(array) << endl; 5 | cout << "Row-major using stride:\n" << 6 | Map, Unaligned, Stride<1,4> >(array) << endl; 7 | 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/const_qualified_block_method_retval_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Block b(m.block(0,0,3,3)); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/const_qualified_diagonal_method_retval.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Diagonal b(m.diagonal()); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_nonconst_ctor_on_const_ptr_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER float *ptr, DenseIndex size){ 12 | Map m(ptr, size); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_on_const_type_actually_const_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(float *ptr){ 12 | Map(ptr).coeffRef(0) = 1.0f; 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/HouseholderQR_householderQ.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A(MatrixXf::Random(5,3)), thinQ(MatrixXf::Identity(5,3)), Q; 2 | A.setRandom(); 3 | HouseholderQR qr(A); 4 | Q = qr.householderQ(); 5 | thinQ = qr.householderQ() * thinQ; 6 | std::cout << "The complete unitary matrix Q is:\n" << Q << "\n\n"; 7 | std::cout << "The thin matrix Q is:\n" << thinQ << "\n\n"; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/const_qualified_block_method_retval_0.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Block b(m.block<3,3>(0,0)); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/const_qualified_transpose_method_retval.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | Transpose b(m.transpose()); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_on_const_type_actually_const_0.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(float *ptr){ 12 | Map(ptr, 1, 1).coeffRef(0,0) = 1.0f; 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/ref_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void call_ref(Ref a) { } 12 | 13 | int main() 14 | { 15 | VectorXf a(10); 16 | CV_QUALIFIER VectorXf& ac(a); 17 | call_ref(ac); 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/selfadjointview_nonconst_ctor_on_const_xpr.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | SelfAdjointView t(m); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_ref_3.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | 3 | using namespace Eigen; 4 | 5 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 6 | void call_ref(Ref > a) { } 7 | #else 8 | void call_ref(const Ref > &a) { } 9 | #endif 10 | 11 | int main() 12 | { 13 | SparseMatrix a(10,10); 14 | call_ref(a+a); 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/triangularview_nonconst_ctor_on_const_xpr.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | TriangularView t(m); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .*.swp 3 | CMakeLists.txt.user* 4 | *.kdev* 5 | *.bak 6 | *.orig 7 | build/ 8 | build-release/ 9 | build-debug/ 10 | docs/html 11 | *.aux 12 | *.blg 13 | *.toc 14 | *.fdb_latexmk 15 | *.bbl 16 | *.log 17 | *.synctex.gz 18 | ceres.pdf 19 | ceres-solver.pdf 20 | docs/minted.sty 21 | obj/ 22 | jni/libs/ 23 | .buildinfo 24 | bazel-* 25 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | int main() 6 | { 7 | Eigen::MatrixXf mat(2,4); 8 | mat << 1, 2, 6, 9, 9 | 3, 1, 7, 2; 10 | 11 | std::cout << "Column's maximum: " << std::endl 12 | << mat.colwise().maxCoeff() << std::endl; 13 | } 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_rowwise.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | int main() 6 | { 7 | Eigen::MatrixXf mat(2,4); 8 | mat << 1, 2, 6, 9, 9 | 3, 1, 7, 2; 10 | 11 | std::cout << "Row's maximum: " << std::endl 12 | << mat.rowwise().maxCoeff() << std::endl; 13 | } 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_AdvancedInitialization_Join.cpp: -------------------------------------------------------------------------------- 1 | RowVectorXd vec1(3); 2 | vec1 << 1, 2, 3; 3 | std::cout << "vec1 = " << vec1 << std::endl; 4 | 5 | RowVectorXd vec2(4); 6 | vec2 << 1, 4, 9, 16; 7 | std::cout << "vec2 = " << vec2 << std::endl; 8 | 9 | RowVectorXd joined(7); 10 | joined << vec1, vec2; 11 | std::cout << "joined = " << joined << std::endl; 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/eigensolver_cplx.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Eigenvalues" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define SCALAR std::complex 5 | #else 6 | #define SCALAR float 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | int main() 12 | { 13 | EigenSolver > eig(Matrix::Random(10,10)); 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/scripts/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | get_property(EIGEN_TESTS_LIST GLOBAL PROPERTY EIGEN_TESTS_LIST) 2 | configure_file(buildtests.in ${CMAKE_BINARY_DIR}/buildtests.sh @ONLY) 3 | 4 | configure_file(check.in ${CMAKE_BINARY_DIR}/check.sh COPYONLY) 5 | configure_file(debug.in ${CMAKE_BINARY_DIR}/debug.sh COPYONLY) 6 | configure_file(release.in ${CMAKE_BINARY_DIR}/release.sh COPYONLY) 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/Eigen/CXX11/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(Eigen_CXX11_HEADERS Tensor TensorSymmetry ThreadPool) 2 | 3 | install(FILES 4 | ${Eigen_CXX11_HEADERS} 5 | DESTINATION ${INCLUDE_INSTALL_DIR}/unsupported/Eigen/CXX11 COMPONENT Devel 6 | ) 7 | 8 | install(DIRECTORY src DESTINATION ${INCLUDE_INSTALL_DIR}/unsupported/Eigen/CXX11 COMPONENT Devel FILES_MATCHING PATTERN "*.h") 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/demos/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(EigenDemos) 2 | 3 | add_custom_target(demos) 4 | 5 | if(NOT EIGEN_TEST_NOQT) 6 | find_package(Qt4) 7 | if(QT4_FOUND) 8 | add_subdirectory(mandelbrot) 9 | add_subdirectory(opengl) 10 | else(QT4_FOUND) 11 | message(STATUS "Qt4 not found, so disabling the mandelbrot and opengl demos") 12 | endif(QT4_FOUND) 13 | endif() 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/FullPivLU_kernel.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf m = MatrixXf::Random(3,5); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | MatrixXf ker = m.fullPivLu().kernel(); 4 | cout << "Here is a matrix whose columns form a basis of the kernel of m:" 5 | << endl << ker << endl; 6 | cout << "By definition of the kernel, m*ker is zero:" 7 | << endl << m*ker << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_applyOnTheRight.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A = Matrix3f::Random(3,3), B; 2 | B << 0,1,0, 3 | 0,0,1, 4 | 1,0,0; 5 | cout << "At start, A = " << endl << A << endl; 6 | A *= B; 7 | cout << "After A *= B, A = " << endl << A << endl; 8 | A.applyOnTheRight(B); // equivalent to A *= B 9 | cout << "After applyOnTheRight, A = " << endl << A << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_topLeftCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topLeftCorner<2,Dynamic>(2,2):" << endl; 4 | cout << m.topLeftCorner<2,Dynamic>(2,2) << endl; 5 | m.topLeftCorner<2,Dynamic>(2,2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/diagonal_on_const_type_actually_const.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | Diagonal(m).coeffRef(0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_set.cpp: -------------------------------------------------------------------------------- 1 | Matrix3i m1; 2 | m1 << 1, 2, 3, 3 | 4, 5, 6, 4 | 7, 8, 9; 5 | cout << m1 << endl << endl; 6 | Matrix3i m2 = Matrix3i::Identity(); 7 | m2.block(0,0, 2,2) << 10, 11, 12, 13; 8 | cout << m2 << endl << endl; 9 | Vector2i v1; 10 | v1 << 14, 15; 11 | m2 << v1.transpose(), 16, 12 | v1, m1.block(1,1,2,2); 13 | cout << m2 << endl; 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_topRightCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.topRightCorner<2,Dynamic>(2,2):" << endl; 4 | cout << m.topRightCorner<2,Dynamic>(2,2) << endl; 5 | m.topRightCorner<2,Dynamic>(2,2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_householderCoefficients.cpp: -------------------------------------------------------------------------------- 1 | Matrix4d X = Matrix4d::Random(4,4); 2 | Matrix4d A = X + X.transpose(); 3 | cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; 4 | Tridiagonalization triOfA(A); 5 | Vector3d hc = triOfA.householderCoefficients(); 6 | cout << "The vector of Householder coefficients is:" << endl << hc << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/transpose_on_const_type_actually_const.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | Transpose(m).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /testsuite/resources/Makefile: -------------------------------------------------------------------------------- 1 | FMUs = \ 2 | HelloWorld \ 3 | HelloWorldWithInput \ 4 | Lin2DimODE \ 5 | 6 | .PHONY: all fmutranslate 7 | 8 | all: 9 | @echo 10 | @echo preparing FMUs... 11 | @for fmu in $(FMUs) ; do cd $$fmu && zip -r ../$$fmu.fmu * && cd .. ; done 12 | 13 | 14 | fmutranslate: 15 | @echo 16 | @echo preparing FMUs... 17 | @for fmu in $(FMUs) ; do omc $$fmu.mos ; done 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_ReshapeMat2Vec.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf M1(3,3); // Column-major storage 2 | M1 << 1, 2, 3, 3 | 4, 5, 6, 4 | 7, 8, 9; 5 | 6 | Map v1(M1.data(), M1.size()); 7 | cout << "v1:" << endl << v1 << endl; 8 | 9 | Matrix M2(M1); 10 | Map v2(M2.data(), M2.size()); 11 | cout << "v2:" << endl << v2 << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/tut_arithmetic_transpose_conjugate.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf a = MatrixXcf::Random(2,2); 2 | cout << "Here is the matrix a\n" << a << endl; 3 | 4 | cout << "Here is the matrix a^T\n" << a.transpose() << endl; 5 | 6 | 7 | cout << "Here is the conjugate of a\n" << a.conjugate() << endl; 8 | 9 | 10 | cout << "Here is the matrix a^*\n" << a.adjoint() << endl; 11 | 12 | 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/block_nonconst_ctor_on_const_xpr_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | // row/column constructor 13 | Block b(m,0); 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/block_on_const_type_actually_const_0.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | Matrix3f m; 13 | Block(m, 0, 0, 3, 3).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/block_on_const_type_actually_const_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | Block(m, 0, 0).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_nonconst_ctor_on_const_ptr_2.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER float *ptr, DenseIndex rows, DenseIndex cols){ 12 | Map m(ptr, rows, cols); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_ref_5.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | 3 | using namespace Eigen; 4 | 5 | void call_ref(Ref > a) { } 6 | 7 | int main() 8 | { 9 | SparseMatrix a(10,10); 10 | SparseMatrixBase > &ac(a); 11 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 12 | call_ref(ac); 13 | #else 14 | call_ref(ac.derived()); 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/test/bug1213_main.cpp: -------------------------------------------------------------------------------- 1 | 2 | // This is a regression unit regarding a weird linking issue with gcc. 3 | 4 | #include "bug1213.h" 5 | 6 | int main() 7 | { 8 | return 0; 9 | } 10 | 11 | 12 | template 13 | bool bug1213_2(const Eigen::Matrix& ) 14 | { 15 | return true; 16 | } 17 | 18 | template bool bug1213_2(const Eigen::Vector3f&); 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_bottomLeftCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomLeftCorner<2,Dynamic>(2,2):" << endl; 4 | cout << m.bottomLeftCorner<2,Dynamic>(2,2) << endl; 5 | m.bottomLeftCorner<2,Dynamic>(2,2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/DenseBase_middleCols_int.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main(void) 8 | { 9 | int const N = 5; 10 | MatrixXi A(N,N); 11 | A.setRandom(); 12 | cout << "A =\n" << A << '\n' << endl; 13 | cout << "A(1..3,:) =\n" << A.middleCols(1,3) << endl; 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/DenseBase_middleRows_int.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main(void) 8 | { 9 | int const N = 5; 10 | MatrixXi A(N,N); 11 | A.setRandom(); 12 | cout << "A =\n" << A << '\n' << endl; 13 | cout << "A(2..3,:) =\n" << A.middleRows(2,2) << endl; 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/ColPivHouseholderQR_solve.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m = Matrix3f::Random(); 2 | Matrix3f y = Matrix3f::Random(); 3 | cout << "Here is the matrix m:" << endl << m << endl; 4 | cout << "Here is the matrix y:" << endl << y << endl; 5 | Matrix3f x; 6 | x = m.colPivHouseholderQr().solve(y); 7 | assert(y.isApprox(m*x)); 8 | cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/FullPivHouseholderQR_solve.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m = Matrix3f::Random(); 2 | Matrix3f y = Matrix3f::Random(); 3 | cout << "Here is the matrix m:" << endl << m << endl; 4 | cout << "Here is the matrix y:" << endl << y << endl; 5 | Matrix3f x; 6 | x = m.fullPivHouseholderQr().solve(y); 7 | assert(y.isApprox(m*x)); 8 | cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_template_int_int_bottomRightCorner_int_int.cpp: -------------------------------------------------------------------------------- 1 | Matrix4i m = Matrix4i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is m.bottomRightCorner<2,Dynamic>(2,2):" << endl; 4 | cout << m.bottomRightCorner<2,Dynamic>(2,2) << endl; 5 | m.bottomRightCorner<2,Dynamic>(2,2).setZero(); 6 | cout << "Now the matrix m is:" << endl << m << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/RealSchur_compute.cpp: -------------------------------------------------------------------------------- 1 | MatrixXf A = MatrixXf::Random(4,4); 2 | RealSchur schur(4); 3 | schur.compute(A, /* computeU = */ false); 4 | cout << "The matrix T in the decomposition of A is:" << endl << schur.matrixT() << endl; 5 | schur.compute(A.inverse(), /* computeU = */ false); 6 | cout << "The matrix T in the decomposition of A^(-1) is:" << endl << schur.matrixT() << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/cwiseunaryview_nonconst_ctor_on_const_xpr.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER Matrix3d &m){ 12 | CwiseUnaryView,Matrix3d> t(m); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/triangularview_on_const_type_actually_const.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | TriangularView(m).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/QuickStart_example2_fixed.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | Matrix3d m = Matrix3d::Random(); 10 | m = (m + Matrix3d::Constant(1.2)) * 50; 11 | cout << "m =" << endl << m << endl; 12 | Vector3d v(1,2,3); 13 | 14 | cout << "m * v =" << endl << m * v << endl; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/selfadjointview_on_const_type_actually_const.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | SelfAdjointView(m).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_storage_mismatch.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | using namespace Eigen; 3 | 4 | typedef SparseMatrix Mat1; 5 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 6 | typedef SparseMatrix Mat2; 7 | #else 8 | typedef SparseMatrix Mat2; 9 | #endif 10 | 11 | int main() 12 | { 13 | Mat1 a(10,10); 14 | Mat2 b(10,10); 15 | a += b; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/demos/mandelbrot/README: -------------------------------------------------------------------------------- 1 | *** Mandelbrot demo *** 2 | 3 | Controls: 4 | * Left mouse button to center view at a point. 5 | * Drag vertically with left mouse button to zoom in and out. 6 | 7 | Be sure to enable SSE2 or AltiVec to improve performance. 8 | 9 | The number of iterations, and the choice between single and double precision, are 10 | determined at runtime depending on the zoom level. 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/DenseBase_template_int_middleCols.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main(void) 8 | { 9 | int const N = 5; 10 | MatrixXi A(N,N); 11 | A.setRandom(); 12 | cout << "A =\n" << A << '\n' << endl; 13 | cout << "A(:,1..3) =\n" << A.middleCols<3>(1) << endl; 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/DenseBase_template_int_middleRows.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main(void) 8 | { 9 | int const N = 5; 10 | MatrixXi A(N,N); 11 | A.setRandom(); 12 | cout << "A =\n" << A << '\n' << endl; 13 | cout << "A(1..3,:) =\n" << A.middleRows<3>(1) << endl; 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_simple_example_fixed_size.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | Matrix3f m3; 9 | m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9; 10 | Matrix4f m4 = Matrix4f::Identity(); 11 | Vector4i v4(1, 2, 3, 4); 12 | 13 | std::cout << "m3\n" << m3 << "\nm4:\n" 14 | << m4 << "\nv4:\n" << v4 << std::endl; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/HessenbergDecomposition_compute.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcf A = MatrixXcf::Random(4,4); 2 | HessenbergDecomposition hd(4); 3 | hd.compute(A); 4 | cout << "The matrix H in the decomposition of A is:" << endl << hd.matrixH() << endl; 5 | hd.compute(2*A); // re-use hd to compute and store decomposition of 2A 6 | cout << "The matrix H in the decomposition of 2A is:" << endl << hd.matrixH() << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_multiple_rhs.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A(3,3); 2 | A << 1,2,3, 4,5,6, 7,8,10; 3 | Matrix B; 4 | B << 3,1, 3,1, 4,1; 5 | Matrix X; 6 | X = A.fullPivLu().solve(B); 7 | cout << "The solution with right-hand side (3,3,4) is:" << endl; 8 | cout << X.col(0) << endl; 9 | cout << "The solution with right-hand side (1,1,1) is:" << endl; 10 | cout << X.col(1) << endl; 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/EigenSolver_compute.cpp: -------------------------------------------------------------------------------- 1 | EigenSolver es; 2 | MatrixXf A = MatrixXf::Random(4,4); 3 | es.compute(A, /* computeEigenvectors = */ false); 4 | cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl; 5 | es.compute(A + MatrixXf::Identity(4,4), false); // re-use es to compute eigenvalues of A+I 6 | cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/sparse_ref_1.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Sparse" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void call_ref(Ref > a) { } 12 | 13 | int main() 14 | { 15 | SparseMatrix a(10,10); 16 | CV_QUALIFIER SparseMatrix& ac(a); 17 | call_ref(ac); 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/gflags_declare_test.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | DEFINE_string(message, "", "The message to print"); 4 | void print_message(); // in gflags_declare_flags.cc 5 | 6 | int main(int argc, char **argv) 7 | { 8 | gflags::SetUsageMessage("Test compilation and use of gflags_declare.h"); 9 | gflags::ParseCommandLineFlags(&argc, &argv, true); 10 | print_message(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | qrc_*cxx 3 | *.orig 4 | *.pyc 5 | *.diff 6 | diff 7 | *.save 8 | save 9 | *.old 10 | *.gmo 11 | *.qm 12 | core 13 | core.* 14 | *.bak 15 | *~ 16 | build* 17 | *.moc.* 18 | *.moc 19 | ui_* 20 | CMakeCache.txt 21 | tags 22 | .*.swp 23 | activity.png 24 | *.out 25 | *.php* 26 | *.log 27 | *.orig 28 | *.rej 29 | log 30 | patch 31 | a 32 | a.* 33 | lapack/testing 34 | lapack/reference 35 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/QuickStart_example2_dynamic.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | MatrixXd m = MatrixXd::Random(3,3); 10 | m = (m + MatrixXd::Constant(3,3,1.2)) * 50; 11 | cout << "m =" << endl << m << endl; 12 | VectorXd v(3); 13 | v << 1, 2, 3; 14 | cout << "m * v =" << endl << m * v << endl; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_computeInverseWithCheck.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | Matrix3d inverse; 4 | bool invertible; 5 | m.computeInverseWithCheck(inverse,invertible); 6 | if(invertible) { 7 | cout << "It is invertible, and its inverse is:" << endl << inverse << endl; 8 | } 9 | else { 10 | cout << "It is not invertible." << endl; 11 | } 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/bench_sum.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace Eigen; 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | typedef Matrix Vec; 9 | Vec v(SIZE); 10 | v.setZero(); 11 | v[0] = 1; 12 | v[1] = 2; 13 | for(int i = 0; i < 1000000; i++) 14 | { 15 | v.coeffRef(0) += v.sum() * SCALAR(1e-20); 16 | } 17 | cout << v.sum() << endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_selfadjointView.cpp: -------------------------------------------------------------------------------- 1 | Matrix3i m = Matrix3i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the symmetric matrix extracted from the upper part of m:" << endl 4 | << Matrix3i(m.selfadjointView()) << endl; 5 | cout << "Here is the symmetric matrix extracted from the lower part of m:" << endl 6 | << Matrix3i(m.selfadjointView()) << endl; 7 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_hnormalized.cpp: -------------------------------------------------------------------------------- 1 | Vector4d v = Vector4d::Random(); 2 | Projective3d P(Matrix4d::Random()); 3 | cout << "v = " << v.transpose() << "]^T" << endl; 4 | cout << "v.hnormalized() = " << v.hnormalized().transpose() << "]^T" << endl; 5 | cout << "P*v = " << (P*v).transpose() << "]^T" << endl; 6 | cout << "(P*v).hnormalized() = " << (P*v).hnormalized().transpose() << "]^T" << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/PartialPivLU_solve.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd A = MatrixXd::Random(3,3); 2 | MatrixXd B = MatrixXd::Random(3,2); 3 | cout << "Here is the invertible matrix A:" << endl << A << endl; 4 | cout << "Here is the matrix B:" << endl << B << endl; 5 | MatrixXd X = A.lu().solve(B); 6 | cout << "Here is the (unique) solution X to the equation AX=B:" << endl << X << endl; 7 | cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/cwiseunaryview_on_const_type_actually_const.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(){ 12 | MatrixXf m; 13 | CwiseUnaryView,CV_QUALIFIER MatrixXf>(m).coeffRef(0, 0) = 1.0f; 14 | } 15 | 16 | int main() {} 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_nonconst_ctor_on_const_ptr_3.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER const 5 | #else 6 | #define CV_QUALIFIER 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(CV_QUALIFIER float *ptr, DenseIndex rows, DenseIndex cols){ 12 | Map > m(ptr, rows, cols, InnerStride<2>()); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/HouseholderQR_solve.cpp: -------------------------------------------------------------------------------- 1 | typedef Matrix Matrix3x3; 2 | Matrix3x3 m = Matrix3x3::Random(); 3 | Matrix3f y = Matrix3f::Random(); 4 | cout << "Here is the matrix m:" << endl << m << endl; 5 | cout << "Here is the matrix y:" << endl << y << endl; 6 | Matrix3f x; 7 | x = m.householderQr().solve(y); 8 | assert(y.isApprox(m*x)); 9 | cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/failtest/map_nonconst_ctor_on_const_ptr_4.cpp: -------------------------------------------------------------------------------- 1 | #include "../Eigen/Core" 2 | 3 | #ifdef EIGEN_SHOULD_FAIL_TO_BUILD 4 | #define CV_QUALIFIER 5 | #else 6 | #define CV_QUALIFIER const 7 | #endif 8 | 9 | using namespace Eigen; 10 | 11 | void foo(const float *ptr, DenseIndex rows, DenseIndex cols){ 12 | Map > m(ptr, rows, cols, OuterStride<>(2)); 13 | } 14 | 15 | int main() {} 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/FullPivLU_image.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m; 2 | m << 1,1,0, 3 | 1,3,2, 4 | 0,1,1; 5 | cout << "Here is the matrix m:" << endl << m << endl; 6 | cout << "Notice that the middle column is the sum of the two others, so the " 7 | << "columns are linearly dependent." << endl; 8 | cout << "Here is a matrix whose columns have the same span but are linearly independent:" 9 | << endl << m.fullPivLu().image(m) << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_operatorSqrt.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd X = MatrixXd::Random(4,4); 2 | MatrixXd A = X * X.transpose(); 3 | cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl; 4 | 5 | SelfAdjointEigenSolver es(A); 6 | MatrixXd sqrtA = es.operatorSqrt(); 7 | cout << "The square root of A is: " << endl << sqrtA << endl; 8 | cout << "If we square this, we get: " << endl << sqrtA*sqrtA << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/special_examples/random_cpp11.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace Eigen; 6 | 7 | int main() { 8 | std::default_random_engine generator; 9 | std::poisson_distribution distribution(4.1); 10 | auto poisson = [&] () {return distribution(generator);}; 11 | 12 | RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson ); 13 | std::cout << v << "\n"; 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp: -------------------------------------------------------------------------------- 1 | SelfAdjointEigenSolver es; 2 | Matrix4f X = Matrix4f::Random(4,4); 3 | Matrix4f A = X + X.transpose(); 4 | es.compute(A); 5 | cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl; 6 | es.compute(A + Matrix4f::Identity(4,4)); // re-use es to compute eigenvalues of A+I 7 | cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_compute_MatrixType.cpp: -------------------------------------------------------------------------------- 1 | SelfAdjointEigenSolver es(4); 2 | MatrixXf X = MatrixXf::Random(4,4); 3 | MatrixXf A = X + X.transpose(); 4 | es.compute(A); 5 | cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl; 6 | es.compute(A + MatrixXf::Identity(4,4)); // re-use es to compute eigenvalues of A+I 7 | cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_AdvancedInitialization_Zero.cpp: -------------------------------------------------------------------------------- 1 | std::cout << "A fixed-size array:\n"; 2 | Array33f a1 = Array33f::Zero(); 3 | std::cout << a1 << "\n\n"; 4 | 5 | 6 | std::cout << "A one-dimensional dynamic-size array:\n"; 7 | ArrayXf a2 = ArrayXf::Zero(3); 8 | std::cout << a2 << "\n\n"; 9 | 10 | 11 | std::cout << "A two-dimensional dynamic-size array:\n"; 12 | ArrayXXf a3 = ArrayXXf::Zero(3, 4); 13 | std::cout << a3 << "\n"; 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/make_circulant.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | This program is presented in several fragments in the doc page. 3 | Every fragment is in its own file; this file simply combines them. 4 | */ 5 | 6 | #include "make_circulant.cpp.preamble" 7 | #include "make_circulant.cpp.traits" 8 | #include "make_circulant.cpp.expression" 9 | #include "make_circulant.cpp.evaluator" 10 | #include "make_circulant.cpp.entry" 11 | #include "make_circulant.cpp.main" 12 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/cmake/package.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=${prefix} 3 | bindir=${prefix}/@RUNTIME_INSTALL_DIR@ 4 | libdir=${prefix}/@LIBRARY_INSTALL_DIR@ 5 | includedir=${prefix}/@INCLUDE_INSTALL_DIR@ 6 | 7 | Name: @PACKAGE_NAME@ 8 | Version: @PACKAGE_VERSION@ 9 | Description: @PACKAGE_DESCRIPTION@ 10 | URL: @PACKAGE_URL@ 11 | Requires: 12 | Libs: -L${libdir} -lgflags 13 | Libs.private: -lpthread 14 | Cflags: -I${includedir} 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_BlockOperations_vector.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | Eigen::ArrayXf v(6); 9 | v << 1, 2, 3, 4, 5, 6; 10 | cout << "v.head(3) =" << endl << v.head(3) << endl << endl; 11 | cout << "v.tail<3>() = " << endl << v.tail<3>() << endl << endl; 12 | v.segment(1,4) *= 2; 13 | cout << "after 'v.segment(1,4) *= 2', v =" << endl << v << endl; 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/HessenbergDecomposition_matrixH.cpp: -------------------------------------------------------------------------------- 1 | Matrix4f A = MatrixXf::Random(4,4); 2 | cout << "Here is a random 4x4 matrix:" << endl << A << endl; 3 | HessenbergDecomposition hessOfA(A); 4 | MatrixXf H = hessOfA.matrixH(); 5 | cout << "The Hessenberg matrix H is:" << endl << H << endl; 6 | MatrixXf Q = hessOfA.matrixQ(); 7 | cout << "The orthogonal matrix Q is:" << endl << Q << endl; 8 | cout << "Q H Q^T is:" << endl << Q * H * Q.transpose() << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/BiCGSTAB_simple.cpp: -------------------------------------------------------------------------------- 1 | int n = 10000; 2 | VectorXd x(n), b(n); 3 | SparseMatrix A(n,n); 4 | /* ... fill A and b ... */ 5 | BiCGSTAB > solver; 6 | solver.compute(A); 7 | x = solver.solve(b); 8 | std::cout << "#iterations: " << solver.iterations() << std::endl; 9 | std::cout << "estimated error: " << solver.error() << std::endl; 10 | /* ... update b ... */ 11 | x = solver.solve(b); // solve again -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DirectionWise_hnormalized.cpp: -------------------------------------------------------------------------------- 1 | typedef Matrix Matrix4Xd; 2 | Matrix4Xd M = Matrix4Xd::Random(4,5); 3 | Projective3d P(Matrix4d::Random()); 4 | cout << "The matrix M is:" << endl << M << endl << endl; 5 | cout << "M.colwise().hnormalized():" << endl << M.colwise().hnormalized() << endl << endl; 6 | cout << "P*M:" << endl << P*M << endl << endl; 7 | cout << "(P*M).colwise().hnormalized():" << endl << (P*M).colwise().hnormalized() << endl << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_reverse.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m = MatrixXi::Random(3,4); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the reverse of m:" << endl << m.reverse() << endl; 4 | cout << "Here is the coefficient (1,0) in the reverse of m:" << endl 5 | << m.reverse()(1,0) << endl; 6 | cout << "Let us overwrite this coefficient with the value 4." << endl; 7 | m.reverse()(1,0) = 4; 8 | cout << "Now the matrix m is:" << endl << m << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_packedMatrix.cpp: -------------------------------------------------------------------------------- 1 | Matrix4d X = Matrix4d::Random(4,4); 2 | Matrix4d A = X + X.transpose(); 3 | cout << "Here is a random symmetric 4x4 matrix:" << endl << A << endl; 4 | Tridiagonalization triOfA(A); 5 | Matrix4d pm = triOfA.packedMatrix(); 6 | cout << "The packed matrix M is:" << endl << pm << endl; 7 | cout << "The diagonal and subdiagonal corresponds to the matrix T, which is:" 8 | << endl << triOfA.matrixT() << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/cmake/FindGMM.cmake: -------------------------------------------------------------------------------- 1 | if (GMM_INCLUDE_DIR) 2 | # in cache already 3 | set(GMM_FOUND TRUE) 4 | else (GMM_INCLUDE_DIR) 5 | 6 | find_path(GMM_INCLUDE_DIR NAMES gmm/gmm.h 7 | PATHS 8 | ${INCLUDE_INSTALL_DIR} 9 | ${GMM_INCLUDE_PATH} 10 | ) 11 | 12 | include(FindPackageHandleStandardArgs) 13 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMM DEFAULT_MSG GMM_INCLUDE_DIR ) 14 | 15 | mark_as_advanced(GMM_INCLUDE_DIR) 16 | 17 | endif(GMM_INCLUDE_DIR) 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgExSolveLDLT.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Matrix2f A, b; 10 | A << 2, -1, -1, 3; 11 | b << 1, 2, 3, 1; 12 | cout << "Here is the matrix A:\n" << A << endl; 13 | cout << "Here is the right hand side b:\n" << b << endl; 14 | Matrix2f x = A.ldlt().solve(b); 15 | cout << "The solution is:\n" << x << endl; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgInverseDeterminant.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Matrix3f A; 10 | A << 1, 2, 1, 11 | 2, 1, 0, 12 | -1, 1, 2; 13 | cout << "Here is the matrix A:\n" << A << endl; 14 | cout << "The determinant of A is " << A.determinant() << endl; 15 | cout << "The inverse of A is:\n" << A.inverse() << endl; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_compute.cpp: -------------------------------------------------------------------------------- 1 | Tridiagonalization tri; 2 | MatrixXf X = MatrixXf::Random(4,4); 3 | MatrixXf A = X + X.transpose(); 4 | tri.compute(A); 5 | cout << "The matrix T in the tridiagonal decomposition of A is: " << endl; 6 | cout << tri.matrixT() << endl; 7 | tri.compute(2*A); // re-use tri to compute eigenvalues of 2A 8 | cout << "The matrix T in the tridiagonal decomposition of 2A is: " << endl; 9 | cout << tri.matrixT() << endl; 10 | -------------------------------------------------------------------------------- /testsuite/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all test difftool resources partest 2 | 3 | # Exclude `resources` for the moment 4 | all: difftool test 5 | 6 | test: python.log 7 | 8 | # Exclude `resources` for the moment 9 | partest: difftool 10 | cd partest && time ./runtests.pl -nocolour -with-xml 11 | 12 | difftool: 13 | @$(MAKE) -C difftool 14 | 15 | resources: 16 | @$(MAKE) -C resources 17 | 18 | python.log: difftool 19 | @$(MAKE) -C python -f Makefile test > $@ 20 | @grep == python.log 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_arithmetic_scalar_mul_div.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | Matrix2d a; 9 | a << 1, 2, 10 | 3, 4; 11 | Vector3d v(1,2,3); 12 | std::cout << "a * 2.5 =\n" << a * 2.5 << std::endl; 13 | std::cout << "0.1 * v =\n" << 0.1 * v << std::endl; 14 | std::cout << "Doing v *= 2;" << std::endl; 15 | v *= 2; 16 | std::cout << "Now v =\n" << v << std::endl; 17 | } 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_matrix_coefficient_accessors.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | MatrixXd m(2,2); 9 | m(0,0) = 3; 10 | m(1,0) = 2.5; 11 | m(0,1) = -1; 12 | m(1,1) = m(1,0) + m(0,1); 13 | std::cout << "Here is the matrix m:\n" << m << std::endl; 14 | VectorXd v(2); 15 | v(0) = 4; 16 | v(1) = v(0) - 1; 17 | std::cout << "Here is the vector v:\n" << v << std::endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_transpose.cpp: -------------------------------------------------------------------------------- 1 | Matrix2i m = Matrix2i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the transpose of m:" << endl << m.transpose() << endl; 4 | cout << "Here is the coefficient (1,0) in the transpose of m:" << endl 5 | << m.transpose()(1,0) << endl; 6 | cout << "Let us overwrite this coefficient with the value 0." << endl; 7 | m.transpose()(1,0) = 0; 8 | cout << "Now the matrix m is:" << endl << m << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tutorial_solve_reuse_decomposition.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f A(3,3); 2 | A << 1,2,3, 4,5,6, 7,8,10; 3 | PartialPivLU luOfA(A); // compute LU decomposition of A 4 | Vector3f b; 5 | b << 3,3,4; 6 | Vector3f x; 7 | x = luOfA.solve(b); 8 | cout << "The solution with right-hand side (3,3,4) is:" << endl; 9 | cout << x << endl; 10 | b << 1,1,1; 11 | x = luOfA.solve(b); 12 | cout << "The solution with right-hand side (1,1,1) is:" << endl; 13 | cout << x << endl; 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixExponential.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | const double pi = std::acos(-1.0); 9 | 10 | MatrixXd A(3,3); 11 | A << 0, -pi/4, 0, 12 | pi/4, 0, 0, 13 | 0, 0, 0; 14 | std::cout << "The matrix A is:\n" << A << "\n\n"; 15 | std::cout << "The matrix exponential of A is:\n" << A.exp() << "\n\n"; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixPower.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | const double pi = std::acos(-1.0); 9 | Matrix3d A; 10 | A << cos(1), -sin(1), 0, 11 | sin(1), cos(1), 0, 12 | 0 , 0 , 1; 13 | std::cout << "The matrix A is:\n" << A << "\n\n" 14 | "The matrix power A^(pi/4) is:\n" << A.pow(pi/4) << std::endl; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /testsuite/resources/HelloWorld.mos: -------------------------------------------------------------------------------- 1 | loadString(" 2 | model HelloWorld 3 | parameter Real a = -1; 4 | parameter Real x_start = 1; 5 | Real x(start=x_start, fixed=true); 6 | equation 7 | der(x) = a*x; 8 | end HelloWorld; 9 | "); getErrorString(); 10 | 11 | buildModelFMU(HelloWorld, version="2.0", fmuType="me_cs", fileNamePrefix="HelloWorld", platforms={"x86_64-linux-gnu"}); getErrorString(); 12 | 13 | system("zip -qd HelloWorld.fmu sources/* && unzip HelloWorld.fmu -d HelloWorld/"); 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/demos/opengl/README: -------------------------------------------------------------------------------- 1 | 2 | Navigation: 3 | left button: rotate around the target 4 | middle button: zoom 5 | left button + ctrl quake rotate (rotate around camera position) 6 | middle button + ctrl walk (progress along camera's z direction) 7 | left button: pan (translate in the XY camera's plane) 8 | 9 | R : move the camera to initial position 10 | A : start/stop animation 11 | C : clear the animation 12 | G : add a key frame 13 | 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | MatrixXd A = MatrixXd::Random(100,100); 10 | MatrixXd b = MatrixXd::Random(100,50); 11 | MatrixXd x = A.fullPivLu().solve(b); 12 | double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm 13 | cout << "The relative error is:\n" << relative_error << endl; 14 | } 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/DenseBase_LinSpacedInt.cpp: -------------------------------------------------------------------------------- 1 | cout << "Even spacing inputs:" << endl; 2 | cout << VectorXi::LinSpaced(8,1,4).transpose() << endl; 3 | cout << VectorXi::LinSpaced(8,1,8).transpose() << endl; 4 | cout << VectorXi::LinSpaced(8,1,15).transpose() << endl; 5 | cout << "Uneven spacing inputs:" << endl; 6 | cout << VectorXi::LinSpaced(8,1,7).transpose() << endl; 7 | cout << VectorXi::LinSpaced(8,1,9).transpose() << endl; 8 | cout << VectorXi::LinSpaced(8,1,16).transpose() << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Matrix_resize_int_int.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd m(2,3); 2 | m << 1,2,3,4,5,6; 3 | cout << "here's the 2x3 matrix m:" << endl << m << endl; 4 | cout << "let's resize m to 3x2. This is a conservative resizing because 2*3==3*2." << endl; 5 | m.resize(3,2); 6 | cout << "here's the 3x2 matrix m:" << endl << m << endl; 7 | cout << "now let's resize m to size 2x2. This is NOT a conservative resizing, so it becomes uninitialized:" << endl; 8 | m.resize(2,2); 9 | cout << m << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SparseMatrix_coeffs.cpp: -------------------------------------------------------------------------------- 1 | SparseMatrix A(3,3); 2 | A.insert(1,2) = 0; 3 | A.insert(0,1) = 1; 4 | A.insert(2,0) = 2; 5 | A.makeCompressed(); 6 | cout << "The matrix A is:" << endl << MatrixXd(A) << endl; 7 | cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().transpose() << endl; 8 | A.coeffs() += 10; 9 | cout << "After adding 10 to every stored non zero coefficient, the matrix A is:" << endl << MatrixXd(A) << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixLogarithm.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | using std::sqrt; 9 | MatrixXd A(3,3); 10 | A << 0.5*sqrt(2), -0.5*sqrt(2), 0, 11 | 0.5*sqrt(2), 0.5*sqrt(2), 0, 12 | 0, 0, 1; 13 | std::cout << "The matrix A is:\n" << A << "\n\n"; 14 | std::cout << "The matrix logarithm of A is:\n" << A.log() << "\n"; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgSetThreshold.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Matrix2d A; 10 | A << 2, 1, 11 | 2, 0.9999999999; 12 | FullPivLU lu(A); 13 | cout << "By default, the rank of A is found to be " << lu.rank() << endl; 14 | lu.setThreshold(1e-5); 15 | cout << "With threshold 1e-5, the rank of A is found to be " << lu.rank() << endl; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/FullPivLU_solve.cpp: -------------------------------------------------------------------------------- 1 | Matrix m = Matrix::Random(); 2 | Matrix2f y = Matrix2f::Random(); 3 | cout << "Here is the matrix m:" << endl << m << endl; 4 | cout << "Here is the matrix y:" << endl << y << endl; 5 | Matrix x = m.fullPivLu().solve(y); 6 | if((m*x).isApprox(y)) 7 | { 8 | cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; 9 | } 10 | else 11 | cout << "The equation mx=y does not have any solution." << endl; 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_compute_MatrixType2.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd X = MatrixXd::Random(5,5); 2 | MatrixXd A = X * X.transpose(); 3 | X = MatrixXd::Random(5,5); 4 | MatrixXd B = X * X.transpose(); 5 | 6 | GeneralizedSelfAdjointEigenSolver es(A,B,EigenvaluesOnly); 7 | cout << "The eigenvalues of the pencil (A,B) are:" << endl << es.eigenvalues() << endl; 8 | es.compute(B,A,false); 9 | cout << "The eigenvalues of the pencil (B,A) are:" << endl << es.eigenvalues() << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/BUILD: -------------------------------------------------------------------------------- 1 | # Bazel (http://bazel.io/) BUILD file for gflags. 2 | # 3 | # See INSTALL.md for instructions for adding gflags to a Bazel workspace. 4 | 5 | licenses(["notice"]) 6 | 7 | exports_files(["src/gflags_complections.sh", "COPYING.txt"]) 8 | 9 | load(":bazel/gflags.bzl", "gflags_sources", "gflags_library") 10 | (hdrs, srcs) = gflags_sources(namespace=["gflags", "google"]) 11 | gflags_library(hdrs=hdrs, srcs=srcs, threads=0) 12 | gflags_library(hdrs=hdrs, srcs=srcs, threads=1) 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_arithmetic_dot_cross.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | int main() 7 | { 8 | Vector3d v(1,2,3); 9 | Vector3d w(0,1,2); 10 | 11 | cout << "Dot product: " << v.dot(w) << endl; 12 | double dp = v.adjoint()*w; // automatic conversion of the inner product to a scalar 13 | cout << "Dot product via a matrix product: " << dp << endl; 14 | cout << "Cross product:\n" << v.cross(w) << endl; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/BiCGSTAB_step_by_step.cpp: -------------------------------------------------------------------------------- 1 | int n = 10000; 2 | VectorXd x(n), b(n); 3 | SparseMatrix A(n,n); 4 | /* ... fill A and b ... */ 5 | BiCGSTAB > solver(A); 6 | // start from a random solution 7 | x = VectorXd::Random(n); 8 | solver.setMaxIterations(1); 9 | int i = 0; 10 | do { 11 | x = solver.solveWithGuess(b,x); 12 | std::cout << i << " : " << solver.error() << std::endl; 13 | ++i; 14 | } while (solver.info()!=Success && i<100); -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/class_CwiseUnaryOp_ptrfun.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace Eigen; 4 | using namespace std; 5 | 6 | // define function to be applied coefficient-wise 7 | double ramp(double x) 8 | { 9 | if (x > 0) 10 | return x; 11 | else 12 | return 0; 13 | } 14 | 15 | int main(int, char**) 16 | { 17 | Matrix4d m1 = Matrix4d::Random(); 18 | cout << m1 << endl << "becomes: " << endl << m1.unaryExpr(ptr_fun(ramp)) << endl; 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/LLT_solve.cpp: -------------------------------------------------------------------------------- 1 | typedef Matrix DataMatrix; 2 | // let's generate some samples on the 3D plane of equation z = 2x+3y (with some noise) 3 | DataMatrix samples = DataMatrix::Random(12,2); 4 | VectorXf elevations = 2*samples.col(0) + 3*samples.col(1) + VectorXf::Random(12)*0.1; 5 | // and let's solve samples * [x y]^T = elevations in least square sense: 6 | Matrix xy 7 | = (samples.adjoint() * samples).llt().solve((samples.adjoint()*elevations)); 8 | cout << xy << endl; 9 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/blas/xerbla.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #if (defined __GNUC__) && (!defined __MINGW32__) && (!defined __CYGWIN__) 5 | #define EIGEN_WEAK_LINKING __attribute__ ((weak)) 6 | #else 7 | #define EIGEN_WEAK_LINKING 8 | #endif 9 | 10 | #ifdef __cplusplus 11 | extern "C" 12 | { 13 | #endif 14 | 15 | EIGEN_WEAK_LINKING int xerbla_(const char * msg, int *info, int) 16 | { 17 | printf("Eigen BLAS ERROR #%i: %s\n", *info, msg ); 18 | return 0; 19 | } 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgExSolveColPivHouseholderQR.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Matrix3f A; 10 | Vector3f b; 11 | A << 1,2,3, 4,5,6, 7,8,10; 12 | b << 3, 3, 4; 13 | cout << "Here is the matrix A:\n" << A << endl; 14 | cout << "Here is the vector b:\n" << b << endl; 15 | Vector3f x = A.colPivHouseholderQr().solve(b); 16 | cout << "The solution is:\n" << x << endl; 17 | } 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TutorialLinAlgSVDSolve.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | MatrixXf A = MatrixXf::Random(3, 2); 10 | cout << "Here is the matrix A:\n" << A << endl; 11 | VectorXf b = VectorXf::Random(3); 12 | cout << "Here is the right hand side b:\n" << b << endl; 13 | cout << "The least-squares solution is:\n" 14 | << A.jacobiSvd(ComputeThinU | ComputeThinV).solve(b) << endl; 15 | } 16 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | Eigen::MatrixXf m(3,3); 9 | m << 1,2,3, 10 | 4,5,6, 11 | 7,8,9; 12 | cout << "Here is the matrix m:" << endl << m << endl; 13 | cout << "2nd Row: " << m.row(1) << endl; 14 | m.col(2) += 3 * m.col(0); 15 | cout << "After adding 3 times the first column into the third column, the matrix m is:\n"; 16 | cout << m << endl; 17 | } 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/EigenSolver_pseudoEigenvectors.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd A = MatrixXd::Random(6,6); 2 | cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; 3 | 4 | EigenSolver es(A); 5 | MatrixXd D = es.pseudoEigenvalueMatrix(); 6 | MatrixXd V = es.pseudoEigenvectors(); 7 | cout << "The pseudo-eigenvalue matrix D is:" << endl << D << endl; 8 | cout << "The pseudo-eigenvector matrix V is:" << endl << V << endl; 9 | cout << "Finally, V * D * V^(-1) = " << endl << V * D * V.inverse() << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/GeneralizedEigenSolver.cpp: -------------------------------------------------------------------------------- 1 | GeneralizedEigenSolver ges; 2 | MatrixXf A = MatrixXf::Random(4,4); 3 | MatrixXf B = MatrixXf::Random(4,4); 4 | ges.compute(A, B); 5 | cout << "The (complex) numerators of the generalzied eigenvalues are: " << ges.alphas().transpose() << endl; 6 | cout << "The (real) denominatore of the generalzied eigenvalues are: " << ges.betas().transpose() << endl; 7 | cout << "The (complex) generalzied eigenvalues are (alphas./beta): " << ges.eigenvalues().transpose() << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/RealSchur_RealSchur_MatrixType.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd A = MatrixXd::Random(6,6); 2 | cout << "Here is a random 6x6 matrix, A:" << endl << A << endl << endl; 3 | 4 | RealSchur schur(A); 5 | cout << "The orthogonal matrix U is:" << endl << schur.matrixU() << endl; 6 | cout << "The quasi-triangular matrix T is:" << endl << schur.matrixT() << endl << endl; 7 | 8 | MatrixXd U = schur.matrixU(); 9 | MatrixXd T = schur.matrixT(); 10 | cout << "U * T * U^T = " << endl << U * T * U.transpose() << endl; 11 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/.travis.yml: -------------------------------------------------------------------------------- 1 | # Ubuntu 14.04 Trusty support, to get newer cmake and compilers. 2 | sudo: required 3 | dist: trusty 4 | 5 | language: cpp 6 | 7 | os: 8 | - linux 9 | - osx 10 | 11 | compiler: 12 | - clang 13 | - gcc 14 | 15 | env: 16 | - CONFIG=Release 17 | - CONFIG=Debug 18 | 19 | script: 20 | - mkdir out && cd out && cmake -D CMAKE_BUILD_TYPE=$CONFIG -D GFLAGS_BUILD_SHARED_LIBS=ON -D GFLAGS_BUILD_STATIC_LIBS=ON -D GFLAGS_BUILD_TESTING=ON .. && cmake --build . --config $CONFIG && ctest 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/SelfAdjointEigenSolver_operatorInverseSqrt.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd X = MatrixXd::Random(4,4); 2 | MatrixXd A = X * X.transpose(); 3 | cout << "Here is a random positive-definite matrix, A:" << endl << A << endl << endl; 4 | 5 | SelfAdjointEigenSolver es(A); 6 | cout << "The inverse square root of A is: " << endl; 7 | cout << es.operatorInverseSqrt() << endl; 8 | cout << "We can also compute it with operatorSqrt() and inverse(). That yields: " << endl; 9 | cout << es.operatorSqrt().inverse() << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/.gitignore: -------------------------------------------------------------------------------- 1 | /xcode/ 2 | /build/ 3 | /builds/ 4 | /build-*/ 5 | .DS_Store 6 | CMakeCache.txt 7 | DartConfiguration.tcl 8 | Makefile 9 | CMakeFiles/ 10 | /Testing/ 11 | /include/gflags/config.h 12 | /include/gflags/gflags_completions.h 13 | /include/gflags/gflags_declare.h 14 | /include/gflags/gflags.h 15 | /lib/ 16 | /test/gflags_unittest_main.cc 17 | /test/gflags_unittest-main.cc 18 | /packages/ 19 | CMakeLists.txt.user 20 | /bazel-bin 21 | /bazel-genfiles 22 | /bazel-gflags 23 | /bazel-out 24 | /bazel-testlogs 25 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_PartialLU_solve.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace std; 6 | using namespace Eigen; 7 | 8 | int main() 9 | { 10 | Matrix3f A; 11 | Vector3f b; 12 | A << 1,2,3, 4,5,6, 7,8,10; 13 | b << 3, 3, 4; 14 | cout << "Here is the matrix A:" << endl << A << endl; 15 | cout << "Here is the vector b:" << endl << b << endl; 16 | Vector3f x = A.lu().solve(b); 17 | cout << "The solution is:" << endl << x << endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | int main() 6 | { 7 | Eigen::MatrixXf mat(2,4); 8 | Eigen::VectorXf v(2); 9 | 10 | mat << 1, 2, 6, 9, 11 | 3, 1, 7, 2; 12 | 13 | v << 0, 14 | 1; 15 | 16 | //add v to each column of m 17 | mat.colwise() += v; 18 | 19 | std::cout << "Broadcasting result: " << std::endl; 20 | std::cout << mat << std::endl; 21 | } 22 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_computeInverseAndDetWithCheck.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | Matrix3d inverse; 4 | bool invertible; 5 | double determinant; 6 | m.computeInverseAndDetWithCheck(inverse,determinant,invertible); 7 | cout << "Its determinant is " << determinant << endl; 8 | if(invertible) { 9 | cout << "It is invertible, and its inverse is:" << endl << inverse << endl; 10 | } 11 | else { 12 | cout << "It is not invertible." << endl; 13 | } 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/blitz/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(Blitz) 3 | 4 | if (BLITZ_FOUND) 5 | include_directories(${BLITZ_INCLUDES}) 6 | 7 | btl_add_bench(btl_blitz btl_blitz.cpp) 8 | if (BUILD_btl_blitz) 9 | target_link_libraries(btl_blitz ${BLITZ_LIBRARIES}) 10 | endif (BUILD_btl_blitz) 11 | 12 | btl_add_bench(btl_tiny_blitz btl_tiny_blitz.cpp OFF) 13 | if (BUILD_btl_tiny_blitz) 14 | target_link_libraries(btl_tiny_blitz ${BLITZ_LIBRARIES}) 15 | endif (BUILD_btl_tiny_blitz) 16 | 17 | endif (BLITZ_FOUND) 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple_rowwise.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | int main() 6 | { 7 | Eigen::MatrixXf mat(2,4); 8 | Eigen::VectorXf v(4); 9 | 10 | mat << 1, 2, 6, 9, 11 | 3, 1, 7, 2; 12 | 13 | v << 0,1,2,3; 14 | 15 | //add v to each row of m 16 | mat.rowwise() += v.transpose(); 17 | 18 | std::cout << "Broadcasting result: " << std::endl; 19 | std::cout << mat << std::endl; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_homogeneous.cpp: -------------------------------------------------------------------------------- 1 | Vector3d v = Vector3d::Random(), w; 2 | Projective3d P(Matrix4d::Random()); 3 | cout << "v = [" << v.transpose() << "]^T" << endl; 4 | cout << "h.homogeneous() = [" << v.homogeneous().transpose() << "]^T" << endl; 5 | cout << "(P * v.homogeneous()) = [" << (P * v.homogeneous()).transpose() << "]^T" << endl; 6 | cout << "(P * v.homogeneous()).hnormalized() = [" << (P * v.homogeneous()).eval().hnormalized().transpose() << "]^T" << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/function_taking_eigenbase.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace Eigen; 4 | 5 | template 6 | void print_size(const EigenBase& b) 7 | { 8 | std::cout << "size (rows, cols): " << b.size() << " (" << b.rows() 9 | << ", " << b.cols() << ")" << std::endl; 10 | } 11 | 12 | int main() 13 | { 14 | Vector3f v; 15 | print_size(v); 16 | // v.asDiagonal() returns a 3x3 diagonal matrix pseudo-expression 17 | print_size(v.asDiagonal()); 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | ArrayXf a = ArrayXf::Random(5); 10 | a *= 2; 11 | cout << "a =" << endl 12 | << a << endl; 13 | cout << "a.abs() =" << endl 14 | << a.abs() << endl; 15 | cout << "a.abs().sqrt() =" << endl 16 | << a.abs().sqrt() << endl; 17 | cout << "a.min(a.abs().sqrt()) =" << endl 18 | << a.min(a.abs().sqrt()) << endl; 19 | } 20 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_Tridiagonalization_MatrixType.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd X = MatrixXd::Random(5,5); 2 | MatrixXd A = X + X.transpose(); 3 | cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl; 4 | Tridiagonalization triOfA(A); 5 | MatrixXd Q = triOfA.matrixQ(); 6 | cout << "The orthogonal matrix Q is:" << endl << Q << endl; 7 | MatrixXd T = triOfA.matrixT(); 8 | cout << "The tridiagonal matrix T is:" << endl << T << endl << endl; 9 | cout << "Q * T * Q^T = " << endl << Q * T * Q.transpose() << endl; 10 | -------------------------------------------------------------------------------- /testsuite/difftool/Makefile: -------------------------------------------------------------------------------- 1 | ifdef OMDEV 2 | CC = gcc 3 | EXT=".exe" 4 | endif 5 | 6 | # ugly fix for macosx 7 | detected_OS := $(shell uname -s) 8 | ifeq ($(detected_OS),Darwin) 9 | OMBUILDDIR =../../install/mac 10 | else ifeq (MINGW,$(findstring MINGW,$(detected_OS))) 11 | OMBUILDDIR =../../install/mingw 12 | else 13 | OMBUILDDIR =../../install/linux 14 | endif 15 | 16 | $(OMBUILDDIR)/bin/omc-diff$(EXT): lex.yy.o $(OMBUILDDIR)/bin 17 | $(CC) -o $@ lex.yy.o 18 | lex.yy.c: omc-diff.l 19 | flex omc-diff.l 20 | $(OMBUILDDIR)/bin: 21 | mkdir -p "$@" 22 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ArrayClass_addition.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | ArrayXXf a(3,3); 10 | ArrayXXf b(3,3); 11 | a << 1,2,3, 12 | 4,5,6, 13 | 7,8,9; 14 | b << 1,2,3, 15 | 1,2,3, 16 | 1,2,3; 17 | 18 | // Adding two arrays 19 | cout << "a + b = " << endl << a + b << endl << endl; 20 | 21 | // Subtracting a scalar from an array 22 | cout << "a - 2 = " << endl << a - 2 << endl; 23 | } 24 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_eval.cpp: -------------------------------------------------------------------------------- 1 | Matrix2f M = Matrix2f::Random(); 2 | Matrix2f m; 3 | m = M; 4 | cout << "Here is the matrix m:" << endl << m << endl; 5 | cout << "Now we want to copy a column into a row." << endl; 6 | cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl; 7 | m.col(1) = m.row(0); 8 | cout << m << endl << "which is wrong!" << endl; 9 | cout << "Now let us instead do m.col(1) = m.row(0).eval(). Then m becomes" << endl; 10 | m = M; 11 | m.col(1) = m.row(0).eval(); 12 | cout << m << endl << "which is right." << endl; 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixPower_optimal.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | Matrix4cd A = Matrix4cd::Random(); 9 | MatrixPower Apow(A); 10 | 11 | std::cout << "The matrix A is:\n" << A << "\n\n" 12 | "A^3.1 is:\n" << Apow(3.1) << "\n\n" 13 | "A^3.3 is:\n" << Apow(3.3) << "\n\n" 14 | "A^3.7 is:\n" << Apow(3.7) << "\n\n" 15 | "A^3.9 is:\n" << Apow(3.9) << std::endl; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixSquareRoot.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | const double pi = std::acos(-1.0); 9 | 10 | MatrixXd A(2,2); 11 | A << cos(pi/3), -sin(pi/3), 12 | sin(pi/3), cos(pi/3); 13 | std::cout << "The matrix A is:\n" << A << "\n\n"; 14 | std::cout << "The matrix square root of A is:\n" << A.sqrt() << "\n\n"; 15 | std::cout << "The square of the last matrix is:\n" << A.sqrt() * A.sqrt() << "\n"; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_BlockOperations_print_block.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | Eigen::MatrixXf m(4,4); 9 | m << 1, 2, 3, 4, 10 | 5, 6, 7, 8, 11 | 9,10,11,12, 12 | 13,14,15,16; 13 | cout << "Block in the middle" << endl; 14 | cout << m.block<2,2>(1,1) << endl << endl; 15 | for (int i = 1; i <= 3; ++i) 16 | { 17 | cout << "Block of size " << i << "x" << i << endl; 18 | cout << m.block(0,0,i,i) << endl << endl; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/VectorwiseOp_homogeneous.cpp: -------------------------------------------------------------------------------- 1 | typedef Matrix Matrix3Xd; 2 | Matrix3Xd M = Matrix3Xd::Random(3,5); 3 | Projective3d P(Matrix4d::Random()); 4 | cout << "The matrix M is:" << endl << M << endl << endl; 5 | cout << "M.colwise().homogeneous():" << endl << M.colwise().homogeneous() << endl << endl; 6 | cout << "P * M.colwise().homogeneous():" << endl << P * M.colwise().homogeneous() << endl << endl; 7 | cout << "P * M.colwise().homogeneous().hnormalized(): " << endl << (P * M.colwise().homogeneous()).colwise().hnormalized() << endl << endl; -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/libs/blaze/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | find_package(BLAZE) 3 | find_package(Boost COMPONENTS system) 4 | if (BLAZE_FOUND AND Boost_FOUND) 5 | include_directories(${BLAZE_INCLUDE_DIR} ${Boost_INCLUDE_DIRS}) 6 | btl_add_bench(btl_blaze main.cpp) 7 | # Note: The newest blaze version requires C++14. 8 | # Ideally, we should set this depending on the version of Blaze we found 9 | set_property(TARGET btl_blaze PROPERTY CXX_STANDARD 14) 10 | if(BUILD_btl_blaze) 11 | target_link_libraries(btl_blaze ${Boost_LIBRARIES}) 12 | endif() 13 | endif () 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/tut_arithmetic_redux_minmax.cpp: -------------------------------------------------------------------------------- 1 | Matrix3f m = Matrix3f::Random(); 2 | std::ptrdiff_t i, j; 3 | float minOfM = m.minCoeff(&i,&j); 4 | cout << "Here is the matrix m:\n" << m << endl; 5 | cout << "Its minimum coefficient (" << minOfM 6 | << ") is at position (" << i << "," << j << ")\n\n"; 7 | 8 | RowVector4i v = RowVector4i::Random(); 9 | int maxOfV = v.maxCoeff(&i); 10 | cout << "Here is the vector v: " << v << endl; 11 | cout << "Its maximum coefficient (" << maxOfV 12 | << ") is at position " << i << endl; 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_BlockOperations_corner.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | Eigen::Matrix4f m; 9 | m << 1, 2, 3, 4, 10 | 5, 6, 7, 8, 11 | 9, 10,11,12, 12 | 13,14,15,16; 13 | cout << "m.leftCols(2) =" << endl << m.leftCols(2) << endl << endl; 14 | cout << "m.bottomRows<2>() =" << endl << m.bottomRows<2>() << endl << endl; 15 | m.topLeftCorner(1,3) = m.bottomRightCorner(3,1).transpose(); 16 | cout << "After assignment, m = " << endl << m << endl; 17 | } 18 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/HessenbergDecomposition_packedMatrix.cpp: -------------------------------------------------------------------------------- 1 | Matrix4d A = Matrix4d::Random(4,4); 2 | cout << "Here is a random 4x4 matrix:" << endl << A << endl; 3 | HessenbergDecomposition hessOfA(A); 4 | Matrix4d pm = hessOfA.packedMatrix(); 5 | cout << "The packed matrix M is:" << endl << pm << endl; 6 | cout << "The upper Hessenberg part corresponds to the matrix H, which is:" 7 | << endl << hessOfA.matrixH() << endl; 8 | Vector3d hc = hessOfA.householderCoefficients(); 9 | cout << "The vector of Householder coefficients is:" << endl << hc << endl; 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_all.cpp: -------------------------------------------------------------------------------- 1 | Vector3f boxMin(Vector3f::Zero()), boxMax(Vector3f::Ones()); 2 | Vector3f p0 = Vector3f::Random(), p1 = Vector3f::Random().cwiseAbs(); 3 | // let's check if p0 and p1 are inside the axis aligned box defined by the corners boxMin,boxMax: 4 | cout << "Is (" << p0.transpose() << ") inside the box: " 5 | << ((boxMin.array()p0.array()).all()) << endl; 6 | cout << "Is (" << p1.transpose() << ") inside the box: " 7 | << ((boxMin.array()p1.array()).all()) << endl; 8 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_decomposeInPlace.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd X = MatrixXd::Random(5,5); 2 | MatrixXd A = X + X.transpose(); 3 | cout << "Here is a random symmetric 5x5 matrix:" << endl << A << endl << endl; 4 | 5 | VectorXd diag(5); 6 | VectorXd subdiag(4); 7 | internal::tridiagonalization_inplace(A, diag, subdiag, true); 8 | cout << "The orthogonal matrix Q is:" << endl << A << endl; 9 | cout << "The diagonal of the tridiagonal matrix T is:" << endl << diag << endl; 10 | cout << "The subdiagonal of the tridiagonal matrix T is:" << endl << subdiag << endl; 11 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/m4/ac_have_builtin_expect.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([AX_C___BUILTIN_EXPECT], [ 2 | AC_MSG_CHECKING(for __builtin_expect) 3 | AC_CACHE_VAL(ac_cv___builtin_expect, [ 4 | AC_TRY_COMPILE( 5 | [int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }], 6 | [], 7 | ac_cv___builtin_expect=yes, 8 | ac_cv___builtin_expect=no 9 | )]) 10 | if test "$ac_cv___builtin_expect" = "yes"; then 11 | AC_DEFINE(HAVE___BUILTIN_EXPECT, 1, [define if your compiler has __builtin_expect]) 12 | fi 13 | AC_MSG_RESULT($ac_cv___builtin_expect) 14 | ]) 15 | -------------------------------------------------------------------------------- /3rdParty/gflags/gflags/test/nc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ## gflags negative compilation tests 2 | 3 | cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR) 4 | 5 | if (NOT TEST_NAME) 6 | message (FATAL_ERROR "Missing TEST_NAME CMake flag") 7 | endif () 8 | string (TOUPPER ${TEST_NAME} TEST_NAME_UPPER) 9 | 10 | project (gflags_${TEST_NAME}) 11 | 12 | find_package (gflags REQUIRED) 13 | include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/..") 14 | add_definitions (-DTEST_${TEST_NAME_UPPER}) 15 | add_executable (gflags_${TEST_NAME} gflags_nc.cc) 16 | target_link_libraries(gflags_${TEST_NAME} gflags) 17 | -------------------------------------------------------------------------------- /testsuite/resources/HelloWorldWithInput.mos: -------------------------------------------------------------------------------- 1 | loadString(" 2 | model HelloWorldWithInput 3 | input Real u; 4 | parameter Real a = -1; 5 | parameter Real x_start = 1; 6 | Real x(start=x_start, fixed=true); 7 | equation 8 | der(x) = a*x + u; 9 | end HelloWorldWithInput; 10 | "); getErrorString(); 11 | 12 | buildModelFMU(HelloWorldWithInput, version="2.0", fmuType="me_cs", fileNamePrefix="HelloWorldWithInput", platforms={"x86_64-linux-gnu"}); getErrorString(); 13 | 14 | system("zip -qd HelloWorldWithInput.fmu sources/* && unzip HelloWorldWithInput.fmu -d HelloWorldWithInput/"); 15 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/Eigen/src/misc/lapacke_mangling.h: -------------------------------------------------------------------------------- 1 | #ifndef LAPACK_HEADER_INCLUDED 2 | #define LAPACK_HEADER_INCLUDED 3 | 4 | #ifndef LAPACK_GLOBAL 5 | #if defined(LAPACK_GLOBAL_PATTERN_LC) || defined(ADD_) 6 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname##_ 7 | #elif defined(LAPACK_GLOBAL_PATTERN_UC) || defined(UPPER) 8 | #define LAPACK_GLOBAL(lcname,UCNAME) UCNAME 9 | #elif defined(LAPACK_GLOBAL_PATTERN_MC) || defined(NOCHANGE) 10 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname 11 | #else 12 | #define LAPACK_GLOBAL(lcname,UCNAME) lcname##_ 13 | #endif 14 | #endif 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /3rdParty/README.md: -------------------------------------------------------------------------------- 1 | # OMSysIdent-3rdParty 2 | 3 | Third party sources used by OMSysIdent 4 | 5 | ## Ceres Solver 6 | 7 | - https://github.com/ceres-solver/ceres-solver [version 1.14.0, facb199f3eda902360f9e1d5271372b7e54febe1] 8 | 9 | ## Eigen 10 | 11 | - https://github.com/eigenteam/eigen-git-mirror [version 3.3.4, dde02fceedfc1ba09d4d4f71a2b5dafcfcb85491] 12 | 13 | ## gflags 14 | 15 | - https://github.com/gflags/gflags [version 2.2.1, 46f73f88b18aee341538c0dfc22b1710a6abedef] 16 | 17 | ## glog 18 | 19 | - https://github.com/google/glog [version 0.3.5, a6a166db069520dbbd653c97c2e5b12e08a8bb26] 20 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ArrayClass_interop.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | MatrixXf m(2,2); 10 | MatrixXf n(2,2); 11 | MatrixXf result(2,2); 12 | 13 | m << 1,2, 14 | 3,4; 15 | n << 5,6, 16 | 7,8; 17 | 18 | result = (m.array() + 4).matrix() * m; 19 | cout << "-- Combination 1: --" << endl << result << endl << endl; 20 | result = (m.array() * n.array()).matrix() * m; 21 | cout << "-- Combination 2: --" << endl << result << endl << endl; 22 | } 23 | -------------------------------------------------------------------------------- /3rdParty/glog/glog/m4/ac_have_attribute.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([AX_C___ATTRIBUTE__], [ 2 | AC_MSG_CHECKING(for __attribute__) 3 | AC_CACHE_VAL(ac_cv___attribute__, [ 4 | AC_TRY_COMPILE( 5 | [#include 6 | static void foo(void) __attribute__ ((unused)); 7 | void foo(void) { exit(1); }], 8 | [], 9 | ac_cv___attribute__=yes, 10 | ac_cv___attribute__=no 11 | )]) 12 | if test "$ac_cv___attribute__" = "yes"; then 13 | AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__]) 14 | fi 15 | AC_MSG_RESULT($ac_cv___attribute__) 16 | ]) 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/bench/btl/actions/basic_actions.hh: -------------------------------------------------------------------------------- 1 | 2 | #include "action_axpy.hh" 3 | #include "action_axpby.hh" 4 | 5 | #include "action_matrix_vector_product.hh" 6 | #include "action_atv_product.hh" 7 | 8 | #include "action_matrix_matrix_product.hh" 9 | // #include "action_ata_product.hh" 10 | #include "action_aat_product.hh" 11 | 12 | #include "action_trisolve.hh" 13 | #include "action_trmm.hh" 14 | #include "action_symv.hh" 15 | // #include "action_symm.hh" 16 | #include "action_syr2.hh" 17 | #include "action_ger.hh" 18 | #include "action_rot.hh" 19 | 20 | // #include "action_lu_solve.hh" 21 | 22 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/data/README.foe: -------------------------------------------------------------------------------- 1 | The *.foe files contain coefficients provided by Stefan Roth, who agreed to 2 | release them under a BSD license. See his home page: 3 | 4 | http://www.gris.informatik.tu-darmstadt.de/~sroth/research/foe/index.html 5 | 6 | The coefficients in the *.foe files have been obtained by extracting the 7 | matrices from the MATLAB files and performing matrix multiplication. 8 | 9 | The format of the files is ASCII: 10 | 11 | ... 12 | ... 13 | ... 14 | ... 15 | -------------------------------------------------------------------------------- /3rdParty/ceres-solver/ceres-solver/docs/source/_templates/layout.html: -------------------------------------------------------------------------------- 1 | {% extends "!layout.html" %} 2 | 3 | {% block footer %} 4 | {{ super() }} 5 | 13 | {% endblock %} 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/LLT_example.cpp: -------------------------------------------------------------------------------- 1 | MatrixXd A(3,3); 2 | A << 4,-1,2, -1,6,0, 2,0,5; 3 | cout << "The matrix A is" << endl << A << endl; 4 | 5 | LLT lltOfA(A); // compute the Cholesky decomposition of A 6 | MatrixXd L = lltOfA.matrixL(); // retrieve factor L in the decomposition 7 | // The previous two lines can also be written as "L = A.llt().matrixL()" 8 | 9 | cout << "The Cholesky factor L is" << endl << L << endl; 10 | cout << "To check this, let us compute L * L.transpose()" << endl; 11 | cout << L * L.transpose() << endl; 12 | cout << "This should equal the matrix A" << endl; 13 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Triangular_solve.cpp: -------------------------------------------------------------------------------- 1 | Matrix3d m = Matrix3d::Zero(); 2 | m.triangularView().setOnes(); 3 | cout << "Here is the matrix m:\n" << m << endl; 4 | Matrix3d n = Matrix3d::Ones(); 5 | n.triangularView() *= 2; 6 | cout << "Here is the matrix n:\n" << n << endl; 7 | cout << "And now here is m.inverse()*n, taking advantage of the fact that" 8 | " m is upper-triangular:\n" 9 | << m.triangularView().solve(n) << endl; 10 | cout << "And this is n*m.inverse():\n" 11 | << m.triangularView().solve(n); 12 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_matrix_resize.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | MatrixXd m(2,5); 9 | m.resize(4,3); 10 | std::cout << "The matrix m is of size " 11 | << m.rows() << "x" << m.cols() << std::endl; 12 | std::cout << "It has " << m.size() << " coefficients" << std::endl; 13 | VectorXd v(2); 14 | v.resize(5); 15 | std::cout << "The vector v is of size " << v.size() << std::endl; 16 | std::cout << "As a matrix, v is of size " 17 | << v.rows() << "x" << v.cols() << std::endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_operatornorm.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | MatrixXf m(2,2); 10 | m << 1,-2, 11 | -3,4; 12 | 13 | cout << "1-norm(m) = " << m.cwiseAbs().colwise().sum().maxCoeff() 14 | << " == " << m.colwise().lpNorm<1>().maxCoeff() << endl; 15 | 16 | cout << "infty-norm(m) = " << m.cwiseAbs().rowwise().sum().maxCoeff() 17 | << " == " << m.rowwise().lpNorm<1>().maxCoeff() << endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_arithmetic_add_sub.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | Matrix2d a; 9 | a << 1, 2, 10 | 3, 4; 11 | MatrixXd b(2,2); 12 | b << 2, 3, 13 | 1, 4; 14 | std::cout << "a + b =\n" << a + b << std::endl; 15 | std::cout << "a - b =\n" << a - b << std::endl; 16 | std::cout << "Doing a += b;" << std::endl; 17 | a += b; 18 | std::cout << "Now a =\n" << a << std::endl; 19 | Vector3d v(1,2,3); 20 | Vector3d w(1,0,0); 21 | std::cout << "-v + w - v =\n" << -v + w - v << std::endl; 22 | } 23 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Vectorwise_reverse.cpp: -------------------------------------------------------------------------------- 1 | MatrixXi m = MatrixXi::Random(3,4); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the rowwise reverse of m:" << endl << m.rowwise().reverse() << endl; 4 | cout << "Here is the colwise reverse of m:" << endl << m.colwise().reverse() << endl; 5 | 6 | cout << "Here is the coefficient (1,0) in the rowise reverse of m:" << endl 7 | << m.rowwise().reverse()(1,0) << endl; 8 | cout << "Let us overwrite this coefficient with the value 4." << endl; 9 | //m.colwise().reverse()(1,0) = 4; 10 | cout << "Now the matrix m is:" << endl << m << endl; 11 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/CTestConfig.cmake: -------------------------------------------------------------------------------- 1 | ## This file should be placed in the root directory of your project. 2 | ## Then modify the CMakeLists.txt file in the root directory of your 3 | ## project to incorporate the testing dashboard. 4 | ## # The following are required to uses Dart and the Cdash dashboard 5 | ## ENABLE_TESTING() 6 | ## INCLUDE(CTest) 7 | set(CTEST_PROJECT_NAME "Eigen3.3") 8 | set(CTEST_NIGHTLY_START_TIME "00:00:00 UTC") 9 | 10 | set(CTEST_DROP_METHOD "http") 11 | set(CTEST_DROP_SITE "manao.inria.fr") 12 | set(CTEST_DROP_LOCATION "/CDash/submit.php?project=Eigen3.3") 13 | set(CTEST_DROP_SITE_CDASH TRUE) 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/cmake/FindAdolc.cmake: -------------------------------------------------------------------------------- 1 | 2 | if (ADOLC_INCLUDES AND ADOLC_LIBRARIES) 3 | set(ADOLC_FIND_QUIETLY TRUE) 4 | endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES) 5 | 6 | find_path(ADOLC_INCLUDES 7 | NAMES 8 | adolc/adtl.h 9 | PATHS 10 | $ENV{ADOLCDIR} 11 | ${INCLUDE_INSTALL_DIR} 12 | ) 13 | 14 | find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR}) 15 | 16 | include(FindPackageHandleStandardArgs) 17 | find_package_handle_standard_args(ADOLC DEFAULT_MSG 18 | ADOLC_INCLUDES ADOLC_LIBRARIES) 19 | 20 | mark_as_advanced(ADOLC_INCLUDES ADOLC_LIBRARIES) 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/demos/mandelbrot/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | find_package(Qt4 REQUIRED) 2 | 3 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 4 | 5 | if (CMAKE_COMPILER_IS_GNUCXX) 6 | set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2") 7 | add_definitions ( "-DNDEBUG" ) 8 | endif (CMAKE_COMPILER_IS_GNUCXX) 9 | 10 | include_directories( ${QT_INCLUDE_DIR} ) 11 | 12 | set(mandelbrot_SRCS 13 | mandelbrot.cpp 14 | ) 15 | 16 | qt4_automoc(${mandelbrot_SRCS}) 17 | 18 | add_executable(mandelbrot ${mandelbrot_SRCS}) 19 | add_dependencies(demos mandelbrot) 20 | 21 | target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) 22 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_broadcast_1nn.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Eigen::MatrixXf m(2,4); 10 | Eigen::VectorXf v(2); 11 | 12 | m << 1, 23, 6, 9, 13 | 3, 11, 7, 2; 14 | 15 | v << 2, 16 | 3; 17 | 18 | MatrixXf::Index index; 19 | // find nearest neighbour 20 | (m.colwise() - v).colwise().squaredNorm().minCoeff(&index); 21 | 22 | cout << "Nearest neighbour is column " << index << ":" << endl; 23 | cout << m.col(index) << endl; 24 | } 25 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixFunction.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | std::complex expfn(std::complex x, int) 7 | { 8 | return std::exp(x); 9 | } 10 | 11 | int main() 12 | { 13 | const double pi = std::acos(-1.0); 14 | 15 | MatrixXd A(3,3); 16 | A << 0, -pi/4, 0, 17 | pi/4, 0, 0, 18 | 0, 0, 0; 19 | 20 | std::cout << "The matrix A is:\n" << A << "\n\n"; 21 | std::cout << "The matrix exponential of A is:\n" 22 | << A.matrixFunction(expfn) << "\n\n"; 23 | } 24 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ArrayClass_accessors.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | using namespace std; 6 | 7 | int main() 8 | { 9 | ArrayXXf m(2,2); 10 | 11 | // assign some values coefficient by coefficient 12 | m(0,0) = 1.0; m(0,1) = 2.0; 13 | m(1,0) = 3.0; m(1,1) = m(0,1) + m(1,0); 14 | 15 | // print values to standard output 16 | cout << m << endl << endl; 17 | 18 | // using the comma-initializer is also allowed 19 | m << 1.0,2.0, 20 | 3.0,4.0; 21 | 22 | // print values to standard output 23 | cout << m << endl; 24 | } 25 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/compile_snippet.cpp.in: -------------------------------------------------------------------------------- 1 | static bool eigen_did_assert = false; 2 | #define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;} 3 | 4 | #include 5 | #include 6 | 7 | #ifndef M_PI 8 | #define M_PI 3.1415926535897932384626433832795 9 | #endif 10 | 11 | 12 | using namespace Eigen; 13 | using namespace std; 14 | 15 | int main(int, char**) 16 | { 17 | cout.precision(3); 18 | ${snippet_source_code} 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/TemplateKeyword_simple.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | void copyUpperTriangularPart(MatrixXf& dst, const MatrixXf& src) 7 | { 8 | dst.triangularView() = src.triangularView(); 9 | } 10 | 11 | int main() 12 | { 13 | MatrixXf m1 = MatrixXf::Ones(4,4); 14 | MatrixXf m2 = MatrixXf::Random(4,4); 15 | std::cout << "m2 before copy:" << std::endl; 16 | std::cout << m2 << std::endl << std::endl; 17 | copyUpperTriangularPart(m2, m1); 18 | std::cout << "m2 after copy:" << std::endl; 19 | std::cout << m2 << std::endl << std::endl; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixSine.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | MatrixXd A = MatrixXd::Random(3,3); 9 | std::cout << "A = \n" << A << "\n\n"; 10 | 11 | MatrixXd sinA = A.sin(); 12 | std::cout << "sin(A) = \n" << sinA << "\n\n"; 13 | 14 | MatrixXd cosA = A.cos(); 15 | std::cout << "cos(A) = \n" << cosA << "\n\n"; 16 | 17 | // The matrix functions satisfy sin^2(A) + cos^2(A) = I, 18 | // like the scalar functions. 19 | std::cout << "sin^2(A) + cos^2(A) = \n" << sinA*sinA + cosA*cosA << "\n\n"; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/class_CwiseBinaryOp.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace Eigen; 4 | using namespace std; 5 | 6 | // define a custom template binary functor 7 | template struct MakeComplexOp { 8 | EIGEN_EMPTY_STRUCT_CTOR(MakeComplexOp) 9 | typedef complex result_type; 10 | complex operator()(const Scalar& a, const Scalar& b) const { return complex(a,b); } 11 | }; 12 | 13 | int main(int, char**) 14 | { 15 | Matrix4d m1 = Matrix4d::Random(), m2 = Matrix4d::Random(); 16 | cout << m1.binaryExpr(m2, MakeComplexOp()) << endl; 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/tut_arithmetic_redux_basic.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | int main() 6 | { 7 | Eigen::Matrix2d mat; 8 | mat << 1, 2, 9 | 3, 4; 10 | cout << "Here is mat.sum(): " << mat.sum() << endl; 11 | cout << "Here is mat.prod(): " << mat.prod() << endl; 12 | cout << "Here is mat.mean(): " << mat.mean() << endl; 13 | cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl; 14 | cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl; 15 | cout << "Here is mat.trace(): " << mat.trace() << endl; 16 | } 17 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/MatrixBase_triangularView.cpp: -------------------------------------------------------------------------------- 1 | Matrix3i m = Matrix3i::Random(); 2 | cout << "Here is the matrix m:" << endl << m << endl; 3 | cout << "Here is the upper-triangular matrix extracted from m:" << endl 4 | << Matrix3i(m.triangularView()) << endl; 5 | cout << "Here is the strictly-upper-triangular matrix extracted from m:" << endl 6 | << Matrix3i(m.triangularView()) << endl; 7 | cout << "Here is the unit-lower-triangular matrix extracted from m:" << endl 8 | << Matrix3i(m.triangularView()) << endl; 9 | // FIXME need to implement output for triangularViews (Bug 885) 10 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/TopicStorageOrders_example.cpp: -------------------------------------------------------------------------------- 1 | Matrix Acolmajor; 2 | Acolmajor << 8, 2, 2, 9, 3 | 9, 1, 4, 4, 4 | 3, 5, 4, 5; 5 | cout << "The matrix A:" << endl; 6 | cout << Acolmajor << endl << endl; 7 | 8 | cout << "In memory (column-major):" << endl; 9 | for (int i = 0; i < Acolmajor.size(); i++) 10 | cout << *(Acolmajor.data() + i) << " "; 11 | cout << endl << endl; 12 | 13 | Matrix Arowmajor = Acolmajor; 14 | cout << "In memory (row-major):" << endl; 15 | for (int i = 0; i < Arowmajor.size(); i++) 16 | cout << *(Arowmajor.data() + i) << " "; 17 | cout << endl; 18 | 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/snippets/Tridiagonalization_diagonal.cpp: -------------------------------------------------------------------------------- 1 | MatrixXcd X = MatrixXcd::Random(4,4); 2 | MatrixXcd A = X + X.adjoint(); 3 | cout << "Here is a random self-adjoint 4x4 matrix:" << endl << A << endl << endl; 4 | 5 | Tridiagonalization triOfA(A); 6 | MatrixXd T = triOfA.matrixT(); 7 | cout << "The tridiagonal matrix T is:" << endl << T << endl << endl; 8 | 9 | cout << "We can also extract the diagonals of T directly ..." << endl; 10 | VectorXd diag = triOfA.diagonal(); 11 | cout << "The diagonal is:" << endl << diag << endl; 12 | VectorXd subdiag = triOfA.subDiagonal(); 13 | cout << "The subdiagonal is:" << endl << subdiag << endl; 14 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | int main() 7 | { 8 | MatrixXf mat(2,4); 9 | mat << 1, 2, 6, 9, 10 | 3, 1, 7, 2; 11 | 12 | MatrixXf::Index maxIndex; 13 | float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex); 14 | 15 | std::cout << "Maximum sum at position " << maxIndex << std::endl; 16 | 17 | std::cout << "The corresponding vector is: " << std::endl; 18 | std::cout << mat.col( maxIndex ) << std::endl; 19 | std::cout << "And its sum is is: " << maxNorm << std::endl; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/unsupported/doc/examples/MatrixSinh.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace Eigen; 5 | 6 | int main() 7 | { 8 | MatrixXf A = MatrixXf::Random(3,3); 9 | std::cout << "A = \n" << A << "\n\n"; 10 | 11 | MatrixXf sinhA = A.sinh(); 12 | std::cout << "sinh(A) = \n" << sinhA << "\n\n"; 13 | 14 | MatrixXf coshA = A.cosh(); 15 | std::cout << "cosh(A) = \n" << coshA << "\n\n"; 16 | 17 | // The matrix functions satisfy cosh^2(A) - sinh^2(A) = I, 18 | // like the scalar functions. 19 | std::cout << "cosh^2(A) - sinh^2(A) = \n" << coshA*coshA - sinhA*sinhA << "\n\n"; 20 | } 21 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/doc/examples/Tutorial_BlockOperations_block_assignment.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | using namespace Eigen; 6 | 7 | int main() 8 | { 9 | Array22f m; 10 | m << 1,2, 11 | 3,4; 12 | Array44f a = Array44f::Constant(0.6); 13 | cout << "Here is the array a:" << endl << a << endl << endl; 14 | a.block<2,2>(1,1) = m; 15 | cout << "Here is now a with m copied into its central 2x2 block:" << endl << a << endl << endl; 16 | a.block(0,0,2,3) = a.block(2,1,2,3); 17 | cout << "Here is now a with bottom-right 2x3 block copied into top-left 2x2 block:" << endl << a << endl << endl; 18 | } 19 | -------------------------------------------------------------------------------- /3rdParty/eigen/eigen/lapack/double.cpp: -------------------------------------------------------------------------------- 1 | // This file is part of Eigen, a lightweight C++ template library 2 | // for linear algebra. 3 | // 4 | // Copyright (C) 2009-2014 Gael Guennebaud 5 | // 6 | // This Source Code Form is subject to the terms of the Mozilla 7 | // Public License v. 2.0. If a copy of the MPL was not distributed 8 | // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 9 | 10 | #define SCALAR double 11 | #define SCALAR_SUFFIX d 12 | #define SCALAR_SUFFIX_UP "D" 13 | #define ISCOMPLEX 0 14 | 15 | #include "cholesky.cpp" 16 | #include "lu.cpp" 17 | #include "eigenvalues.cpp" 18 | #include "svd.cpp" 19 | --------------------------------------------------------------------------------