├── LICENSE
├── README.md
├── build
├── ImplicitCrowds.sln
└── bin
│ ├── Callisto52.dll
│ ├── OgreMain.dll
│ ├── OgreOverlay.dll
│ ├── Plugin_OctreeSceneManager.dll
│ ├── RenderSystem_Direct3D9.dll
│ ├── VisualizerCallisto.dll
│ └── callistoOgreResource.zip
├── data
├── 3_agents.csv
├── 8_agents.csv
├── crossing_agents.csv
└── implicit.ini
├── external
├── Eigen
│ ├── Array
│ ├── CMakeLists.txt
│ ├── Cholesky
│ ├── CholmodSupport
│ ├── Core
│ ├── Dense
│ ├── Eigen
│ ├── Eigen2Support
│ ├── Eigenvalues
│ ├── Geometry
│ ├── Householder
│ ├── IterativeLinearSolvers
│ ├── Jacobi
│ ├── LU
│ ├── LeastSquares
│ ├── MetisSupport
│ ├── OrderingMethods
│ ├── PaStiXSupport
│ ├── PardisoSupport
│ ├── QR
│ ├── QtAlignedMalloc
│ ├── SPQRSupport
│ ├── SVD
│ ├── Sparse
│ ├── SparseCholesky
│ ├── SparseCore
│ ├── SparseLU
│ ├── SparseQR
│ ├── StdDeque
│ ├── StdList
│ ├── StdVector
│ ├── SuperLUSupport
│ ├── UmfPackSupport
│ └── src
│ │ ├── CMakeLists.txt
│ │ ├── Cholesky
│ │ ├── CMakeLists.txt
│ │ ├── LDLT.h
│ │ ├── LLT.h
│ │ └── LLT_MKL.h
│ │ ├── CholmodSupport
│ │ ├── CMakeLists.txt
│ │ └── CholmodSupport.h
│ │ ├── Core
│ │ ├── Array.h
│ │ ├── ArrayBase.h
│ │ ├── ArrayWrapper.h
│ │ ├── Assign.h
│ │ ├── Assign_MKL.h
│ │ ├── BandMatrix.h
│ │ ├── Block.h
│ │ ├── BooleanRedux.h
│ │ ├── CMakeLists.txt
│ │ ├── CommaInitializer.h
│ │ ├── CoreIterators.h
│ │ ├── CwiseBinaryOp.h
│ │ ├── CwiseNullaryOp.h
│ │ ├── CwiseUnaryOp.h
│ │ ├── CwiseUnaryView.h
│ │ ├── DenseBase.h
│ │ ├── DenseCoeffsBase.h
│ │ ├── DenseStorage.h
│ │ ├── Diagonal.h
│ │ ├── DiagonalMatrix.h
│ │ ├── DiagonalProduct.h
│ │ ├── Dot.h
│ │ ├── EigenBase.h
│ │ ├── Flagged.h
│ │ ├── ForceAlignedAccess.h
│ │ ├── Functors.h
│ │ ├── Fuzzy.h
│ │ ├── GeneralProduct.h
│ │ ├── GenericPacketMath.h
│ │ ├── GlobalFunctions.h
│ │ ├── IO.h
│ │ ├── Map.h
│ │ ├── MapBase.h
│ │ ├── MathFunctions.h
│ │ ├── Matrix.h
│ │ ├── MatrixBase.h
│ │ ├── NestByValue.h
│ │ ├── NoAlias.h
│ │ ├── NumTraits.h
│ │ ├── PermutationMatrix.h
│ │ ├── PlainObjectBase.h
│ │ ├── ProductBase.h
│ │ ├── Random.h
│ │ ├── Redux.h
│ │ ├── Ref.h
│ │ ├── Replicate.h
│ │ ├── ReturnByValue.h
│ │ ├── Reverse.h
│ │ ├── Select.h
│ │ ├── SelfAdjointView.h
│ │ ├── SelfCwiseBinaryOp.h
│ │ ├── SolveTriangular.h
│ │ ├── StableNorm.h
│ │ ├── Stride.h
│ │ ├── Swap.h
│ │ ├── Transpose.h
│ │ ├── Transpositions.h
│ │ ├── TriangularMatrix.h
│ │ ├── VectorBlock.h
│ │ ├── VectorwiseOp.h
│ │ ├── Visitor.h
│ │ ├── arch
│ │ │ ├── AltiVec
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── Complex.h
│ │ │ │ └── PacketMath.h
│ │ │ ├── CMakeLists.txt
│ │ │ ├── Default
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ └── Settings.h
│ │ │ ├── NEON
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── Complex.h
│ │ │ │ └── PacketMath.h
│ │ │ └── SSE
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ ├── Complex.h
│ │ │ │ ├── MathFunctions.h
│ │ │ │ └── PacketMath.h
│ │ ├── products
│ │ │ ├── CMakeLists.txt
│ │ │ ├── CoeffBasedProduct.h
│ │ │ ├── GeneralBlockPanelKernel.h
│ │ │ ├── GeneralMatrixMatrix.h
│ │ │ ├── GeneralMatrixMatrixTriangular.h
│ │ │ ├── GeneralMatrixMatrixTriangular_MKL.h
│ │ │ ├── GeneralMatrixMatrix_MKL.h
│ │ │ ├── GeneralMatrixVector.h
│ │ │ ├── GeneralMatrixVector_MKL.h
│ │ │ ├── Parallelizer.h
│ │ │ ├── SelfadjointMatrixMatrix.h
│ │ │ ├── SelfadjointMatrixMatrix_MKL.h
│ │ │ ├── SelfadjointMatrixVector.h
│ │ │ ├── SelfadjointMatrixVector_MKL.h
│ │ │ ├── SelfadjointProduct.h
│ │ │ ├── SelfadjointRank2Update.h
│ │ │ ├── TriangularMatrixMatrix.h
│ │ │ ├── TriangularMatrixMatrix_MKL.h
│ │ │ ├── TriangularMatrixVector.h
│ │ │ ├── TriangularMatrixVector_MKL.h
│ │ │ ├── TriangularSolverMatrix.h
│ │ │ ├── TriangularSolverMatrix_MKL.h
│ │ │ └── TriangularSolverVector.h
│ │ └── util
│ │ │ ├── BlasUtil.h
│ │ │ ├── CMakeLists.txt
│ │ │ ├── Constants.h
│ │ │ ├── DisableStupidWarnings.h
│ │ │ ├── ForwardDeclarations.h
│ │ │ ├── MKL_support.h
│ │ │ ├── Macros.h
│ │ │ ├── Memory.h
│ │ │ ├── Meta.h
│ │ │ ├── NonMPL2.h
│ │ │ ├── ReenableStupidWarnings.h
│ │ │ ├── StaticAssert.h
│ │ │ └── XprHelper.h
│ │ ├── Eigen2Support
│ │ ├── Block.h
│ │ ├── CMakeLists.txt
│ │ ├── Cwise.h
│ │ ├── CwiseOperators.h
│ │ ├── Geometry
│ │ │ ├── AlignedBox.h
│ │ │ ├── All.h
│ │ │ ├── AngleAxis.h
│ │ │ ├── CMakeLists.txt
│ │ │ ├── Hyperplane.h
│ │ │ ├── ParametrizedLine.h
│ │ │ ├── Quaternion.h
│ │ │ ├── Rotation2D.h
│ │ │ ├── RotationBase.h
│ │ │ ├── Scaling.h
│ │ │ ├── Transform.h
│ │ │ └── Translation.h
│ │ ├── LU.h
│ │ ├── Lazy.h
│ │ ├── LeastSquares.h
│ │ ├── Macros.h
│ │ ├── MathFunctions.h
│ │ ├── Memory.h
│ │ ├── Meta.h
│ │ ├── Minor.h
│ │ ├── QR.h
│ │ ├── SVD.h
│ │ ├── TriangularSolver.h
│ │ └── VectorBlock.h
│ │ ├── Eigenvalues
│ │ ├── CMakeLists.txt
│ │ ├── ComplexEigenSolver.h
│ │ ├── ComplexSchur.h
│ │ ├── ComplexSchur_MKL.h
│ │ ├── EigenSolver.h
│ │ ├── GeneralizedEigenSolver.h
│ │ ├── GeneralizedSelfAdjointEigenSolver.h
│ │ ├── HessenbergDecomposition.h
│ │ ├── MatrixBaseEigenvalues.h
│ │ ├── RealQZ.h
│ │ ├── RealSchur.h
│ │ ├── RealSchur_MKL.h
│ │ ├── SelfAdjointEigenSolver.h
│ │ ├── SelfAdjointEigenSolver_MKL.h
│ │ └── Tridiagonalization.h
│ │ ├── Geometry
│ │ ├── AlignedBox.h
│ │ ├── AngleAxis.h
│ │ ├── CMakeLists.txt
│ │ ├── EulerAngles.h
│ │ ├── Homogeneous.h
│ │ ├── Hyperplane.h
│ │ ├── OrthoMethods.h
│ │ ├── ParametrizedLine.h
│ │ ├── Quaternion.h
│ │ ├── Rotation2D.h
│ │ ├── RotationBase.h
│ │ ├── Scaling.h
│ │ ├── Transform.h
│ │ ├── Translation.h
│ │ ├── Umeyama.h
│ │ └── arch
│ │ │ ├── CMakeLists.txt
│ │ │ └── Geometry_SSE.h
│ │ ├── Householder
│ │ ├── BlockHouseholder.h
│ │ ├── CMakeLists.txt
│ │ ├── Householder.h
│ │ └── HouseholderSequence.h
│ │ ├── IterativeLinearSolvers
│ │ ├── BasicPreconditioners.h
│ │ ├── BiCGSTAB.h
│ │ ├── CMakeLists.txt
│ │ ├── ConjugateGradient.h
│ │ ├── IncompleteLUT.h
│ │ └── IterativeSolverBase.h
│ │ ├── Jacobi
│ │ ├── CMakeLists.txt
│ │ └── Jacobi.h
│ │ ├── LU
│ │ ├── CMakeLists.txt
│ │ ├── Determinant.h
│ │ ├── FullPivLU.h
│ │ ├── Inverse.h
│ │ ├── PartialPivLU.h
│ │ ├── PartialPivLU_MKL.h
│ │ └── arch
│ │ │ ├── CMakeLists.txt
│ │ │ └── Inverse_SSE.h
│ │ ├── MetisSupport
│ │ ├── CMakeLists.txt
│ │ └── MetisSupport.h
│ │ ├── OrderingMethods
│ │ ├── Amd.h
│ │ ├── CMakeLists.txt
│ │ ├── Eigen_Colamd.h
│ │ └── Ordering.h
│ │ ├── PaStiXSupport
│ │ ├── CMakeLists.txt
│ │ └── PaStiXSupport.h
│ │ ├── PardisoSupport
│ │ ├── CMakeLists.txt
│ │ └── PardisoSupport.h
│ │ ├── QR
│ │ ├── CMakeLists.txt
│ │ ├── ColPivHouseholderQR.h
│ │ ├── ColPivHouseholderQR_MKL.h
│ │ ├── FullPivHouseholderQR.h
│ │ ├── HouseholderQR.h
│ │ └── HouseholderQR_MKL.h
│ │ ├── SPQRSupport
│ │ ├── CMakeLists.txt
│ │ └── SuiteSparseQRSupport.h
│ │ ├── SVD
│ │ ├── CMakeLists.txt
│ │ ├── JacobiSVD.h
│ │ ├── JacobiSVD_MKL.h
│ │ └── UpperBidiagonalization.h
│ │ ├── SparseCholesky
│ │ ├── CMakeLists.txt
│ │ ├── SimplicialCholesky.h
│ │ └── SimplicialCholesky_impl.h
│ │ ├── SparseCore
│ │ ├── AmbiVector.h
│ │ ├── CMakeLists.txt
│ │ ├── CompressedStorage.h
│ │ ├── ConservativeSparseSparseProduct.h
│ │ ├── MappedSparseMatrix.h
│ │ ├── SparseBlock.h
│ │ ├── SparseColEtree.h
│ │ ├── SparseCwiseBinaryOp.h
│ │ ├── SparseCwiseUnaryOp.h
│ │ ├── SparseDenseProduct.h
│ │ ├── SparseDiagonalProduct.h
│ │ ├── SparseDot.h
│ │ ├── SparseFuzzy.h
│ │ ├── SparseMatrix.h
│ │ ├── SparseMatrixBase.h
│ │ ├── SparsePermutation.h
│ │ ├── SparseProduct.h
│ │ ├── SparseRedux.h
│ │ ├── SparseSelfAdjointView.h
│ │ ├── SparseSparseProductWithPruning.h
│ │ ├── SparseTranspose.h
│ │ ├── SparseTriangularView.h
│ │ ├── SparseUtil.h
│ │ ├── SparseVector.h
│ │ ├── SparseView.h
│ │ └── TriangularSolver.h
│ │ ├── SparseLU
│ │ ├── CMakeLists.txt
│ │ ├── SparseLU.h
│ │ ├── SparseLUImpl.h
│ │ ├── SparseLU_Memory.h
│ │ ├── SparseLU_Structs.h
│ │ ├── SparseLU_SupernodalMatrix.h
│ │ ├── SparseLU_Utils.h
│ │ ├── SparseLU_column_bmod.h
│ │ ├── SparseLU_column_dfs.h
│ │ ├── SparseLU_copy_to_ucol.h
│ │ ├── SparseLU_gemm_kernel.h
│ │ ├── SparseLU_heap_relax_snode.h
│ │ ├── SparseLU_kernel_bmod.h
│ │ ├── SparseLU_panel_bmod.h
│ │ ├── SparseLU_panel_dfs.h
│ │ ├── SparseLU_pivotL.h
│ │ ├── SparseLU_pruneL.h
│ │ └── SparseLU_relax_snode.h
│ │ ├── SparseQR
│ │ ├── CMakeLists.txt
│ │ └── SparseQR.h
│ │ ├── StlSupport
│ │ ├── CMakeLists.txt
│ │ ├── StdDeque.h
│ │ ├── StdList.h
│ │ ├── StdVector.h
│ │ └── details.h
│ │ ├── SuperLUSupport
│ │ ├── CMakeLists.txt
│ │ └── SuperLUSupport.h
│ │ ├── UmfPackSupport
│ │ ├── CMakeLists.txt
│ │ └── UmfPackSupport.h
│ │ ├── misc
│ │ ├── CMakeLists.txt
│ │ ├── Image.h
│ │ ├── Kernel.h
│ │ ├── Solve.h
│ │ ├── SparseSolve.h
│ │ └── blas.h
│ │ └── plugins
│ │ ├── ArrayCwiseBinaryOps.h
│ │ ├── ArrayCwiseUnaryOps.h
│ │ ├── BlockMethods.h
│ │ ├── CMakeLists.txt
│ │ ├── CommonCwiseBinaryOps.h
│ │ ├── CommonCwiseUnaryOps.h
│ │ ├── MatrixCwiseBinaryOps.h
│ │ └── MatrixCwiseUnaryOps.h
└── callisto
│ ├── VisualizerCallisto.h
│ ├── callisto52.h
│ ├── callisto52Types.h
│ └── lib
│ ├── VisualizerCallisto.dll
│ └── VisualizerCallisto.lib
└── library
├── build
├── ImplicitCrowds.vcxproj
└── ImplicitCrowds.vcxproj.filters
├── include
├── AgentInitialParameters.h
├── ImplicitAgent.h
├── Parser.h
├── Proximity2D.h
├── ProximityDatabaseItem.h
├── implicitEngine.h
├── lq2d.h
├── proximitydatabase
│ ├── Proximity2D.h
│ ├── ProximityDatabaseItem.h
│ └── lq2d.h
└── util
│ ├── Draw.h
│ └── Parser.h
└── src
├── ImplicitAgent.cpp
├── ImplicitEngine.cpp
├── Main.cpp
├── Parser.cpp
└── lq2D.cpp
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 2-Clause License
2 |
3 | Copyright (c) 2018, Ioannis Karamouzas
4 |
5 | Redistribution and use in source and binary forms, with or without modification, are
6 | permitted provided that the following conditions are met:
7 |
8 | 1. Redistributions of source code must retain the above copyright notice, this list of
9 | conditions and the following disclaimer.
10 | 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 | of conditions and the following disclaimer in the documentation and/or other materials
12 | provided with the distribution.
13 |
14 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
15 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
19 | OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
20 | IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # implicit-crowds
2 |
3 | [Implicit Crowds: Optimization Integrator for Robust Crowd Simulation](http://people.cs.clemson.edu/~ioannis/implicit-crowds/)
4 | [Ioannis Karamouzas](http://people.cs.clemson.edu/~ioannis/
5 | ), Nick Sohre, [Rahul Narain](rahul.narain.name/), and [Stephen J. Guy](www-users.cs.umn.edu/~sjguy/
6 | )
7 | Clemson University, University of Minnesota
8 |
9 | # Instructions
10 | This software has been tested on Windows 7 and 10 with Visual Studio 2015.
11 | It depends on [Eigen](eigen.tuxfamily.org/) and [callisto](www.nieuwenhuisen.nl/callisto/),
12 | which are included in the code. Callisto is used for visualization purposes and requires DirectX 9.0c.
13 | If you want to compile the code with x64 support, you should disable the visualizer.
14 |
15 | After the code is compiled, to simulate a scenario go to the bin folder and run:
16 | "ImplicitCrowds -dt 0.2 -frames 80 -scenario ../../data/3_agents.csv -parameters ../../data/implicit.ini"
17 |
18 | The *-dt* flag sets the size of the time step, the *-frames* indicates the maximum number of simulation steps,
19 | the *-scenario* takes as input the scenario file, and the *-parameters* flag reads the parameters related to the implicit crowd code.
20 | All but the *-scenario* flag are optional.
21 |
22 | # TODO
23 | * Add more scenarios
24 | * Replace callisto with OpenGL
25 | * Replace the distance energy with uncertainty in velocity based on http://www-users.cs.umn.edu/~foro0012/UTTC/
26 |
27 |
28 | # Citation
29 |
BibTex:
30 |
31 | @article{karamouzas17,
32 | author = {Karamouzas, Ioannis and Sohre, Nick and Narain, Rahul and Guy, Stephen J.},
33 | title = {Implicit Crowds: Optimization Integrator for Robust Crowd Simulation},
34 | journal = {ACM Transactions on Graphics},
35 | volume = {36},
36 | number = {4},
37 | year = {2017},
38 | doi = {10.1145/3072959.3073705},
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/build/ImplicitCrowds.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImplicitCrowds", "..\library\build\ImplicitCrowds.vcxproj", "{1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Win32 = Debug|Win32
11 | Debug|x64 = Debug|x64
12 | Release|Win32 = Release|Win32
13 | Release|x64 = Release|x64
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Debug|Win32.ActiveCfg = Debug|Win32
17 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Debug|Win32.Build.0 = Debug|Win32
18 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Debug|x64.ActiveCfg = Debug|x64
19 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Debug|x64.Build.0 = Debug|x64
20 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Release|Win32.ActiveCfg = Release|Win32
21 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Release|Win32.Build.0 = Release|Win32
22 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Release|x64.ActiveCfg = Release|Win32
23 | {1D82A6B1-8174-4E2C-A028-ED05EFC9F3FD}.Release|x64.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/build/bin/Callisto52.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/Callisto52.dll
--------------------------------------------------------------------------------
/build/bin/OgreMain.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/OgreMain.dll
--------------------------------------------------------------------------------
/build/bin/OgreOverlay.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/OgreOverlay.dll
--------------------------------------------------------------------------------
/build/bin/Plugin_OctreeSceneManager.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/Plugin_OctreeSceneManager.dll
--------------------------------------------------------------------------------
/build/bin/RenderSystem_Direct3D9.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/RenderSystem_Direct3D9.dll
--------------------------------------------------------------------------------
/build/bin/VisualizerCallisto.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/VisualizerCallisto.dll
--------------------------------------------------------------------------------
/build/bin/callistoOgreResource.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/johnoriginal/implicit-crowds/d4db415196166c5ef5fb6c4558fc58a08a299112/build/bin/callistoOgreResource.zip
--------------------------------------------------------------------------------
/data/3_agents.csv:
--------------------------------------------------------------------------------
1 | -15 15
2 | -10 10
3 | 3
4 | 0 -9 -1 9 -1 1.3 0.75
5 | 1 -9 1 9 1 1.3 0.75
6 | 2 0 0 -10 0 1.3 0.75
7 |
--------------------------------------------------------------------------------
/data/8_agents.csv:
--------------------------------------------------------------------------------
1 | -15 15
2 | -15 15
3 | 8
4 | 0 8 0 -7.99331 0.00517298 1.31269 0.5
5 | 1 5.65685 5.65685 -5.64904 -5.6492 1.16016 0.5
6 | 2 -3.50E-07 8 0.00441949 -7.99779 1.36443 0.5
7 | 3 -5.65685 5.65685 5.65785 -5.65518 1.32302 0.5
8 | 4 -8 -6.99E-07 8.00833 0.00378721 1.18123 0.5
9 | 5 -5.65685 -5.65686 5.6644 5.65688 1.34866 0.5
10 | 6 9.54E-08 -8 7.36E-07 8.00885 1.38326 0.5
11 | 7 5.65686 -5.65685 -5.65266 5.66275 1.18452 0.5
12 |
--------------------------------------------------------------------------------
/data/implicit.ini:
--------------------------------------------------------------------------------
1 | k=1.5
2 | p=3.25
3 | t0=3
4 | ksi=2
5 | eps=0.2
6 | repulsive=0.01
7 | neighborDist=7
8 | newtonIter=100
9 | eps_x=1e-5
10 | lbfgsWindow=5
11 |
--------------------------------------------------------------------------------
/external/Eigen/Array:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_ARRAY_MODULE_H
2 | #define EIGEN_ARRAY_MODULE_H
3 |
4 | // include Core first to handle Eigen2 support macros
5 | #include "Core"
6 |
7 | #ifndef EIGEN2_SUPPORT
8 | #error The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core.
9 | #endif
10 |
11 | #endif // EIGEN_ARRAY_MODULE_H
12 |
--------------------------------------------------------------------------------
/external/Eigen/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include(RegexUtils)
2 | test_escape_string_as_regex()
3 |
4 | file(GLOB Eigen_directory_files "*")
5 |
6 | escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
7 |
8 | foreach(f ${Eigen_directory_files})
9 | if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/src")
10 | list(APPEND Eigen_directory_files_to_install ${f})
11 | endif()
12 | endforeach(f ${Eigen_directory_files})
13 |
14 | install(FILES
15 | ${Eigen_directory_files_to_install}
16 | DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel
17 | )
18 |
19 | add_subdirectory(src)
20 |
--------------------------------------------------------------------------------
/external/Eigen/Cholesky:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_CHOLESKY_MODULE_H
2 | #define EIGEN_CHOLESKY_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | /** \defgroup Cholesky_Module Cholesky module
9 | *
10 | *
11 | *
12 | * This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices.
13 | * Those decompositions are accessible via the following MatrixBase methods:
14 | * - MatrixBase::llt(),
15 | * - MatrixBase::ldlt()
16 | *
17 | * \code
18 | * #include
19 | * \endcode
20 | */
21 |
22 | #include "src/misc/Solve.h"
23 | #include "src/Cholesky/LLT.h"
24 | #include "src/Cholesky/LDLT.h"
25 | #ifdef EIGEN_USE_LAPACKE
26 | #include "src/Cholesky/LLT_MKL.h"
27 | #endif
28 |
29 | #include "src/Core/util/ReenableStupidWarnings.h"
30 |
31 | #endif // EIGEN_CHOLESKY_MODULE_H
32 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
33 |
--------------------------------------------------------------------------------
/external/Eigen/CholmodSupport:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_CHOLMODSUPPORT_MODULE_H
2 | #define EIGEN_CHOLMODSUPPORT_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | extern "C" {
9 | #include
10 | }
11 |
12 | /** \ingroup Support_modules
13 | * \defgroup CholmodSupport_Module CholmodSupport module
14 | *
15 | * This module provides an interface to the Cholmod library which is part of the suitesparse package.
16 | * It provides the two following main factorization classes:
17 | * - class CholmodSupernodalLLT: a supernodal LLT Cholesky factorization.
18 | * - class CholmodDecomposiiton: a general L(D)LT Cholesky factorization with automatic or explicit runtime selection of the underlying factorization method (supernodal or simplicial).
19 | *
20 | * For the sake of completeness, this module also propose the two following classes:
21 | * - class CholmodSimplicialLLT
22 | * - class CholmodSimplicialLDLT
23 | * Note that these classes does not bring any particular advantage compared to the built-in
24 | * SimplicialLLT and SimplicialLDLT factorization classes.
25 | *
26 | * \code
27 | * #include
28 | * \endcode
29 | *
30 | * In order to use this module, the cholmod headers must be accessible from the include paths, and your binary must be linked to the cholmod library and its dependencies.
31 | * The dependencies depend on how cholmod has been compiled.
32 | * For a cmake based project, you can use our FindCholmod.cmake module to help you in this task.
33 | *
34 | */
35 |
36 | #include "src/misc/Solve.h"
37 | #include "src/misc/SparseSolve.h"
38 |
39 | #include "src/CholmodSupport/CholmodSupport.h"
40 |
41 |
42 | #include "src/Core/util/ReenableStupidWarnings.h"
43 |
44 | #endif // EIGEN_CHOLMODSUPPORT_MODULE_H
45 |
46 |
--------------------------------------------------------------------------------
/external/Eigen/Dense:
--------------------------------------------------------------------------------
1 | #include "Core"
2 | #include "LU"
3 | #include "Cholesky"
4 | #include "QR"
5 | #include "SVD"
6 | #include "Geometry"
7 | #include "Eigenvalues"
8 |
--------------------------------------------------------------------------------
/external/Eigen/Eigen:
--------------------------------------------------------------------------------
1 | #include "Dense"
2 | //#include "Sparse"
3 |
--------------------------------------------------------------------------------
/external/Eigen/Eigen2Support:
--------------------------------------------------------------------------------
1 | // This file is part of Eigen, a lightweight C++ template library
2 | // for linear algebra.
3 | //
4 | // Copyright (C) 2009 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 | #ifndef EIGEN2SUPPORT_H
11 | #define EIGEN2SUPPORT_H
12 |
13 | #if (!defined(EIGEN2_SUPPORT)) || (!defined(EIGEN_CORE_H))
14 | #error Eigen2 support must be enabled by defining EIGEN2_SUPPORT before including any Eigen header
15 | #endif
16 |
17 | #ifndef EIGEN_NO_EIGEN2_DEPRECATED_WARNING
18 |
19 | #if defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__clang__)
20 | #warning "Eigen2 support is deprecated in Eigen 3.2.x and it will be removed in Eigen 3.3. (Define EIGEN_NO_EIGEN2_DEPRECATED_WARNING to disable this warning)"
21 | #else
22 | #pragma message ("Eigen2 support is deprecated in Eigen 3.2.x and it will be removed in Eigen 3.3. (Define EIGEN_NO_EIGEN2_DEPRECATED_WARNING to disable this warning)")
23 | #endif
24 |
25 | #endif // EIGEN_NO_EIGEN2_DEPRECATED_WARNING
26 |
27 | #include "src/Core/util/DisableStupidWarnings.h"
28 |
29 | /** \ingroup Support_modules
30 | * \defgroup Eigen2Support_Module Eigen2 support module
31 | *
32 | * \warning Eigen2 support is deprecated in Eigen 3.2.x and it will be removed in Eigen 3.3.
33 | *
34 | * This module provides a couple of deprecated functions improving the compatibility with Eigen2.
35 | *
36 | * To use it, define EIGEN2_SUPPORT before including any Eigen header
37 | * \code
38 | * #define EIGEN2_SUPPORT
39 | * \endcode
40 | *
41 | */
42 |
43 | #include "src/Eigen2Support/Macros.h"
44 | #include "src/Eigen2Support/Memory.h"
45 | #include "src/Eigen2Support/Meta.h"
46 | #include "src/Eigen2Support/Lazy.h"
47 | #include "src/Eigen2Support/Cwise.h"
48 | #include "src/Eigen2Support/CwiseOperators.h"
49 | #include "src/Eigen2Support/TriangularSolver.h"
50 | #include "src/Eigen2Support/Block.h"
51 | #include "src/Eigen2Support/VectorBlock.h"
52 | #include "src/Eigen2Support/Minor.h"
53 | #include "src/Eigen2Support/MathFunctions.h"
54 |
55 |
56 | #include "src/Core/util/ReenableStupidWarnings.h"
57 |
58 | // Eigen2 used to include iostream
59 | #include
60 |
61 | #define EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \
62 | using Eigen::Matrix##SizeSuffix##TypeSuffix; \
63 | using Eigen::Vector##SizeSuffix##TypeSuffix; \
64 | using Eigen::RowVector##SizeSuffix##TypeSuffix;
65 |
66 | #define EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(TypeSuffix) \
67 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \
68 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \
69 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \
70 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X) \
71 |
72 | #define EIGEN_USING_MATRIX_TYPEDEFS \
73 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(i) \
74 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(f) \
75 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(d) \
76 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(cf) \
77 | EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(cd)
78 |
79 | #define USING_PART_OF_NAMESPACE_EIGEN \
80 | EIGEN_USING_MATRIX_TYPEDEFS \
81 | using Eigen::Matrix; \
82 | using Eigen::MatrixBase; \
83 | using Eigen::ei_random; \
84 | using Eigen::ei_real; \
85 | using Eigen::ei_imag; \
86 | using Eigen::ei_conj; \
87 | using Eigen::ei_abs; \
88 | using Eigen::ei_abs2; \
89 | using Eigen::ei_sqrt; \
90 | using Eigen::ei_exp; \
91 | using Eigen::ei_log; \
92 | using Eigen::ei_sin; \
93 | using Eigen::ei_cos;
94 |
95 | #endif // EIGEN2SUPPORT_H
96 |
--------------------------------------------------------------------------------
/external/Eigen/Eigenvalues:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_EIGENVALUES_MODULE_H
2 | #define EIGEN_EIGENVALUES_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include "Cholesky"
9 | #include "Jacobi"
10 | #include "Householder"
11 | #include "LU"
12 | #include "Geometry"
13 |
14 | /** \defgroup Eigenvalues_Module Eigenvalues module
15 | *
16 | *
17 | *
18 | * This module mainly provides various eigenvalue solvers.
19 | * This module also provides some MatrixBase methods, including:
20 | * - MatrixBase::eigenvalues(),
21 | * - MatrixBase::operatorNorm()
22 | *
23 | * \code
24 | * #include
25 | * \endcode
26 | */
27 |
28 | #include "src/Eigenvalues/Tridiagonalization.h"
29 | #include "src/Eigenvalues/RealSchur.h"
30 | #include "src/Eigenvalues/EigenSolver.h"
31 | #include "src/Eigenvalues/SelfAdjointEigenSolver.h"
32 | #include "src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h"
33 | #include "src/Eigenvalues/HessenbergDecomposition.h"
34 | #include "src/Eigenvalues/ComplexSchur.h"
35 | #include "src/Eigenvalues/ComplexEigenSolver.h"
36 | #include "src/Eigenvalues/RealQZ.h"
37 | #include "src/Eigenvalues/GeneralizedEigenSolver.h"
38 | #include "src/Eigenvalues/MatrixBaseEigenvalues.h"
39 | #ifdef EIGEN_USE_LAPACKE
40 | #include "src/Eigenvalues/RealSchur_MKL.h"
41 | #include "src/Eigenvalues/ComplexSchur_MKL.h"
42 | #include "src/Eigenvalues/SelfAdjointEigenSolver_MKL.h"
43 | #endif
44 |
45 | #include "src/Core/util/ReenableStupidWarnings.h"
46 |
47 | #endif // EIGEN_EIGENVALUES_MODULE_H
48 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
49 |
--------------------------------------------------------------------------------
/external/Eigen/Geometry:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_GEOMETRY_MODULE_H
2 | #define EIGEN_GEOMETRY_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include "SVD"
9 | #include "LU"
10 | #include
11 |
12 | #ifndef M_PI
13 | #define M_PI 3.14159265358979323846
14 | #endif
15 |
16 | /** \defgroup Geometry_Module Geometry module
17 | *
18 | *
19 | *
20 | * This module provides support for:
21 | * - fixed-size homogeneous transformations
22 | * - translation, scaling, 2D and 3D rotations
23 | * - quaternions
24 | * - \ref MatrixBase::cross() "cross product"
25 | * - \ref MatrixBase::unitOrthogonal() "orthognal vector generation"
26 | * - some linear components: parametrized-lines and hyperplanes
27 | *
28 | * \code
29 | * #include
30 | * \endcode
31 | */
32 |
33 | #include "src/Geometry/OrthoMethods.h"
34 | #include "src/Geometry/EulerAngles.h"
35 |
36 | #if EIGEN2_SUPPORT_STAGE > STAGE20_RESOLVE_API_CONFLICTS
37 | #include "src/Geometry/Homogeneous.h"
38 | #include "src/Geometry/RotationBase.h"
39 | #include "src/Geometry/Rotation2D.h"
40 | #include "src/Geometry/Quaternion.h"
41 | #include "src/Geometry/AngleAxis.h"
42 | #include "src/Geometry/Transform.h"
43 | #include "src/Geometry/Translation.h"
44 | #include "src/Geometry/Scaling.h"
45 | #include "src/Geometry/Hyperplane.h"
46 | #include "src/Geometry/ParametrizedLine.h"
47 | #include "src/Geometry/AlignedBox.h"
48 | #include "src/Geometry/Umeyama.h"
49 |
50 | #if defined EIGEN_VECTORIZE_SSE
51 | #include "src/Geometry/arch/Geometry_SSE.h"
52 | #endif
53 | #endif
54 |
55 | #ifdef EIGEN2_SUPPORT
56 | #include "src/Eigen2Support/Geometry/All.h"
57 | #endif
58 |
59 | #include "src/Core/util/ReenableStupidWarnings.h"
60 |
61 | #endif // EIGEN_GEOMETRY_MODULE_H
62 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
63 |
64 |
--------------------------------------------------------------------------------
/external/Eigen/Householder:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_HOUSEHOLDER_MODULE_H
2 | #define EIGEN_HOUSEHOLDER_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | /** \defgroup Householder_Module Householder module
9 | * This module provides Householder transformations.
10 | *
11 | * \code
12 | * #include
13 | * \endcode
14 | */
15 |
16 | #include "src/Householder/Householder.h"
17 | #include "src/Householder/HouseholderSequence.h"
18 | #include "src/Householder/BlockHouseholder.h"
19 |
20 | #include "src/Core/util/ReenableStupidWarnings.h"
21 |
22 | #endif // EIGEN_HOUSEHOLDER_MODULE_H
23 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
24 |
--------------------------------------------------------------------------------
/external/Eigen/IterativeLinearSolvers:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
2 | #define EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
3 |
4 | #include "SparseCore"
5 | #include "OrderingMethods"
6 |
7 | #include "src/Core/util/DisableStupidWarnings.h"
8 |
9 | /**
10 | * \defgroup IterativeLinearSolvers_Module IterativeLinearSolvers module
11 | *
12 | * This module currently provides iterative methods to solve problems of the form \c A \c x = \c b, where \c A is a squared matrix, usually very large and sparse.
13 | * Those solvers are accessible via the following classes:
14 | * - ConjugateGradient for selfadjoint (hermitian) matrices,
15 | * - BiCGSTAB for general square matrices.
16 | *
17 | * These iterative solvers are associated with some preconditioners:
18 | * - IdentityPreconditioner - not really useful
19 | * - DiagonalPreconditioner - also called JAcobi preconditioner, work very well on diagonal dominant matrices.
20 | * - IncompleteILUT - incomplete LU factorization with dual thresholding
21 | *
22 | * Such problems can also be solved using the direct sparse decomposition modules: SparseCholesky, CholmodSupport, UmfPackSupport, SuperLUSupport.
23 | *
24 | * \code
25 | * #include
26 | * \endcode
27 | */
28 |
29 | #include "src/misc/Solve.h"
30 | #include "src/misc/SparseSolve.h"
31 |
32 | #include "src/IterativeLinearSolvers/IterativeSolverBase.h"
33 | #include "src/IterativeLinearSolvers/BasicPreconditioners.h"
34 | #include "src/IterativeLinearSolvers/ConjugateGradient.h"
35 | #include "src/IterativeLinearSolvers/BiCGSTAB.h"
36 | #include "src/IterativeLinearSolvers/IncompleteLUT.h"
37 |
38 | #include "src/Core/util/ReenableStupidWarnings.h"
39 |
40 | #endif // EIGEN_ITERATIVELINEARSOLVERS_MODULE_H
41 |
--------------------------------------------------------------------------------
/external/Eigen/Jacobi:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_JACOBI_MODULE_H
2 | #define EIGEN_JACOBI_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | /** \defgroup Jacobi_Module Jacobi module
9 | * This module provides Jacobi and Givens rotations.
10 | *
11 | * \code
12 | * #include
13 | * \endcode
14 | *
15 | * In addition to listed classes, it defines the two following MatrixBase methods to apply a Jacobi or Givens rotation:
16 | * - MatrixBase::applyOnTheLeft()
17 | * - MatrixBase::applyOnTheRight().
18 | */
19 |
20 | #include "src/Jacobi/Jacobi.h"
21 |
22 | #include "src/Core/util/ReenableStupidWarnings.h"
23 |
24 | #endif // EIGEN_JACOBI_MODULE_H
25 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
26 |
27 |
--------------------------------------------------------------------------------
/external/Eigen/LU:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_LU_MODULE_H
2 | #define EIGEN_LU_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | /** \defgroup LU_Module LU module
9 | * This module includes %LU decomposition and related notions such as matrix inversion and determinant.
10 | * This module defines the following MatrixBase methods:
11 | * - MatrixBase::inverse()
12 | * - MatrixBase::determinant()
13 | *
14 | * \code
15 | * #include
16 | * \endcode
17 | */
18 |
19 | #include "src/misc/Solve.h"
20 | #include "src/misc/Kernel.h"
21 | #include "src/misc/Image.h"
22 | #include "src/LU/FullPivLU.h"
23 | #include "src/LU/PartialPivLU.h"
24 | #ifdef EIGEN_USE_LAPACKE
25 | #include "src/LU/PartialPivLU_MKL.h"
26 | #endif
27 | #include "src/LU/Determinant.h"
28 | #include "src/LU/Inverse.h"
29 |
30 | #if defined EIGEN_VECTORIZE_SSE
31 | #include "src/LU/arch/Inverse_SSE.h"
32 | #endif
33 |
34 | #ifdef EIGEN2_SUPPORT
35 | #include "src/Eigen2Support/LU.h"
36 | #endif
37 |
38 | #include "src/Core/util/ReenableStupidWarnings.h"
39 |
40 | #endif // EIGEN_LU_MODULE_H
41 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
42 |
--------------------------------------------------------------------------------
/external/Eigen/LeastSquares:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_REGRESSION_MODULE_H
2 | #define EIGEN_REGRESSION_MODULE_H
3 |
4 | #ifndef EIGEN2_SUPPORT
5 | #error LeastSquares is only available in Eigen2 support mode (define EIGEN2_SUPPORT)
6 | #endif
7 |
8 | // exclude from normal eigen3-only documentation
9 | #ifdef EIGEN2_SUPPORT
10 |
11 | #include "Core"
12 |
13 | #include "src/Core/util/DisableStupidWarnings.h"
14 |
15 | #include "Eigenvalues"
16 | #include "Geometry"
17 |
18 | /** \defgroup LeastSquares_Module LeastSquares module
19 | * This module provides linear regression and related features.
20 | *
21 | * \code
22 | * #include
23 | * \endcode
24 | */
25 |
26 | #include "src/Eigen2Support/LeastSquares.h"
27 |
28 | #include "src/Core/util/ReenableStupidWarnings.h"
29 |
30 | #endif // EIGEN2_SUPPORT
31 |
32 | #endif // EIGEN_REGRESSION_MODULE_H
33 |
--------------------------------------------------------------------------------
/external/Eigen/MetisSupport:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_METISSUPPORT_MODULE_H
2 | #define EIGEN_METISSUPPORT_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | extern "C" {
9 | #include
10 | }
11 |
12 |
13 | /** \ingroup Support_modules
14 | * \defgroup MetisSupport_Module MetisSupport module
15 | *
16 | * \code
17 | * #include
18 | * \endcode
19 | * This module defines an interface to the METIS reordering package (http://glaros.dtc.umn.edu/gkhome/views/metis).
20 | * It can be used just as any other built-in method as explained in \link OrderingMethods_Module here. \endlink
21 | */
22 |
23 |
24 | #include "src/MetisSupport/MetisSupport.h"
25 |
26 | #include "src/Core/util/ReenableStupidWarnings.h"
27 |
28 | #endif // EIGEN_METISSUPPORT_MODULE_H
29 |
--------------------------------------------------------------------------------
/external/Eigen/OrderingMethods:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_ORDERINGMETHODS_MODULE_H
2 | #define EIGEN_ORDERINGMETHODS_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | /**
9 | * \defgroup OrderingMethods_Module OrderingMethods module
10 | *
11 | * This module is currently for internal use only
12 | *
13 | * It defines various built-in and external ordering methods for sparse matrices.
14 | * They are typically used to reduce the number of elements during
15 | * the sparse matrix decomposition (LLT, LU, QR).
16 | * Precisely, in a preprocessing step, a permutation matrix P is computed using
17 | * those ordering methods and applied to the columns of the matrix.
18 | * Using for instance the sparse Cholesky decomposition, it is expected that
19 | * the nonzeros elements in LLT(A*P) will be much smaller than that in LLT(A).
20 | *
21 | *
22 | * Usage :
23 | * \code
24 | * #include
25 | * \endcode
26 | *
27 | * A simple usage is as a template parameter in the sparse decomposition classes :
28 | *
29 | * \code
30 | * SparseLU > solver;
31 | * \endcode
32 | *
33 | * \code
34 | * SparseQR > solver;
35 | * \endcode
36 | *
37 | * It is possible as well to call directly a particular ordering method for your own purpose,
38 | * \code
39 | * AMDOrdering ordering;
40 | * PermutationMatrix perm;
41 | * SparseMatrix A;
42 | * //Fill the matrix ...
43 | *
44 | * ordering(A, perm); // Call AMD
45 | * \endcode
46 | *
47 | * \note Some of these methods (like AMD or METIS), need the sparsity pattern
48 | * of the input matrix to be symmetric. When the matrix is structurally unsymmetric,
49 | * Eigen computes internally the pattern of \f$A^T*A\f$ before calling the method.
50 | * If your matrix is already symmetric (at leat in structure), you can avoid that
51 | * by calling the method with a SelfAdjointView type.
52 | *
53 | * \code
54 | * // Call the ordering on the pattern of the lower triangular matrix A
55 | * ordering(A.selfadjointView(), perm);
56 | * \endcode
57 | */
58 |
59 | #ifndef EIGEN_MPL2_ONLY
60 | #include "src/OrderingMethods/Amd.h"
61 | #endif
62 |
63 | #include "src/OrderingMethods/Ordering.h"
64 | #include "src/Core/util/ReenableStupidWarnings.h"
65 |
66 | #endif // EIGEN_ORDERINGMETHODS_MODULE_H
67 |
--------------------------------------------------------------------------------
/external/Eigen/PaStiXSupport:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_PASTIXSUPPORT_MODULE_H
2 | #define EIGEN_PASTIXSUPPORT_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include
9 | extern "C" {
10 | #include
11 | #include
12 | }
13 |
14 | #ifdef complex
15 | #undef complex
16 | #endif
17 |
18 | /** \ingroup Support_modules
19 | * \defgroup PaStiXSupport_Module PaStiXSupport module
20 | *
21 | * This module provides an interface to the PaSTiX library.
22 | * PaSTiX is a general \b supernodal, \b parallel and \b opensource sparse solver.
23 | * It provides the two following main factorization classes:
24 | * - class PastixLLT : a supernodal, parallel LLt Cholesky factorization.
25 | * - class PastixLDLT: a supernodal, parallel LDLt Cholesky factorization.
26 | * - class PastixLU : a supernodal, parallel LU factorization (optimized for a symmetric pattern).
27 | *
28 | * \code
29 | * #include
30 | * \endcode
31 | *
32 | * In order to use this module, the PaSTiX headers must be accessible from the include paths, and your binary must be linked to the PaSTiX library and its dependencies.
33 | * The dependencies depend on how PaSTiX has been compiled.
34 | * For a cmake based project, you can use our FindPaSTiX.cmake module to help you in this task.
35 | *
36 | */
37 |
38 | #include "src/misc/Solve.h"
39 | #include "src/misc/SparseSolve.h"
40 |
41 | #include "src/PaStiXSupport/PaStiXSupport.h"
42 |
43 |
44 | #include "src/Core/util/ReenableStupidWarnings.h"
45 |
46 | #endif // EIGEN_PASTIXSUPPORT_MODULE_H
47 |
--------------------------------------------------------------------------------
/external/Eigen/PardisoSupport:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_PARDISOSUPPORT_MODULE_H
2 | #define EIGEN_PARDISOSUPPORT_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include
9 |
10 | #include
11 |
12 | /** \ingroup Support_modules
13 | * \defgroup PardisoSupport_Module PardisoSupport module
14 | *
15 | * This module brings support for the Intel(R) MKL PARDISO direct sparse solvers.
16 | *
17 | * \code
18 | * #include
19 | * \endcode
20 | *
21 | * In order to use this module, the MKL headers must be accessible from the include paths, and your binary must be linked to the MKL library and its dependencies.
22 | * See this \ref TopicUsingIntelMKL "page" for more information on MKL-Eigen integration.
23 | *
24 | */
25 |
26 | #include "src/PardisoSupport/PardisoSupport.h"
27 |
28 | #include "src/Core/util/ReenableStupidWarnings.h"
29 |
30 | #endif // EIGEN_PARDISOSUPPORT_MODULE_H
31 |
--------------------------------------------------------------------------------
/external/Eigen/QR:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_QR_MODULE_H
2 | #define EIGEN_QR_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include "Cholesky"
9 | #include "Jacobi"
10 | #include "Householder"
11 |
12 | /** \defgroup QR_Module QR module
13 | *
14 | *
15 | *
16 | * This module provides various QR decompositions
17 | * This module also provides some MatrixBase methods, including:
18 | * - MatrixBase::qr(),
19 | *
20 | * \code
21 | * #include
22 | * \endcode
23 | */
24 |
25 | #include "src/misc/Solve.h"
26 | #include "src/QR/HouseholderQR.h"
27 | #include "src/QR/FullPivHouseholderQR.h"
28 | #include "src/QR/ColPivHouseholderQR.h"
29 | #ifdef EIGEN_USE_LAPACKE
30 | #include "src/QR/HouseholderQR_MKL.h"
31 | #include "src/QR/ColPivHouseholderQR_MKL.h"
32 | #endif
33 |
34 | #ifdef EIGEN2_SUPPORT
35 | #include "src/Eigen2Support/QR.h"
36 | #endif
37 |
38 | #include "src/Core/util/ReenableStupidWarnings.h"
39 |
40 | #ifdef EIGEN2_SUPPORT
41 | #include "Eigenvalues"
42 | #endif
43 |
44 | #endif // EIGEN_QR_MODULE_H
45 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
46 |
--------------------------------------------------------------------------------
/external/Eigen/QtAlignedMalloc:
--------------------------------------------------------------------------------
1 |
2 | #ifndef EIGEN_QTMALLOC_MODULE_H
3 | #define EIGEN_QTMALLOC_MODULE_H
4 |
5 | #include "Core"
6 |
7 | #if (!EIGEN_MALLOC_ALREADY_ALIGNED)
8 |
9 | #include "src/Core/util/DisableStupidWarnings.h"
10 |
11 | void *qMalloc(size_t size)
12 | {
13 | return Eigen::internal::aligned_malloc(size);
14 | }
15 |
16 | void qFree(void *ptr)
17 | {
18 | Eigen::internal::aligned_free(ptr);
19 | }
20 |
21 | void *qRealloc(void *ptr, size_t size)
22 | {
23 | void* newPtr = Eigen::internal::aligned_malloc(size);
24 | memcpy(newPtr, ptr, size);
25 | Eigen::internal::aligned_free(ptr);
26 | return newPtr;
27 | }
28 |
29 | #include "src/Core/util/ReenableStupidWarnings.h"
30 |
31 | #endif
32 |
33 | #endif // EIGEN_QTMALLOC_MODULE_H
34 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
35 |
--------------------------------------------------------------------------------
/external/Eigen/SPQRSupport:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_SPQRSUPPORT_MODULE_H
2 | #define EIGEN_SPQRSUPPORT_MODULE_H
3 |
4 | #include "SparseCore"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include "SuiteSparseQR.hpp"
9 |
10 | /** \ingroup Support_modules
11 | * \defgroup SPQRSupport_Module SuiteSparseQR module
12 | *
13 | * This module provides an interface to the SPQR library, which is part of the suitesparse package.
14 | *
15 | * \code
16 | * #include
17 | * \endcode
18 | *
19 | * In order to use this module, the SPQR headers must be accessible from the include paths, and your binary must be linked to the SPQR library and its dependencies (Cholmod, AMD, COLAMD,...).
20 | * For a cmake based project, you can use our FindSPQR.cmake and FindCholmod.Cmake modules
21 | *
22 | */
23 |
24 | #include "src/misc/Solve.h"
25 | #include "src/misc/SparseSolve.h"
26 | #include "src/CholmodSupport/CholmodSupport.h"
27 | #include "src/SPQRSupport/SuiteSparseQRSupport.h"
28 |
29 | #endif
30 |
--------------------------------------------------------------------------------
/external/Eigen/SVD:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_SVD_MODULE_H
2 | #define EIGEN_SVD_MODULE_H
3 |
4 | #include "QR"
5 | #include "Householder"
6 | #include "Jacobi"
7 |
8 | #include "src/Core/util/DisableStupidWarnings.h"
9 |
10 | /** \defgroup SVD_Module SVD module
11 | *
12 | *
13 | *
14 | * This module provides SVD decomposition for matrices (both real and complex).
15 | * This decomposition is accessible via the following MatrixBase method:
16 | * - MatrixBase::jacobiSvd()
17 | *
18 | * \code
19 | * #include
20 | * \endcode
21 | */
22 |
23 | #include "src/misc/Solve.h"
24 | #include "src/SVD/JacobiSVD.h"
25 | #if defined(EIGEN_USE_LAPACKE) && !defined(EIGEN_USE_LAPACKE_STRICT)
26 | #include "src/SVD/JacobiSVD_MKL.h"
27 | #endif
28 | #include "src/SVD/UpperBidiagonalization.h"
29 |
30 | #ifdef EIGEN2_SUPPORT
31 | #include "src/Eigen2Support/SVD.h"
32 | #endif
33 |
34 | #include "src/Core/util/ReenableStupidWarnings.h"
35 |
36 | #endif // EIGEN_SVD_MODULE_H
37 | /* vim: set filetype=cpp et sw=2 ts=2 ai: */
38 |
--------------------------------------------------------------------------------
/external/Eigen/Sparse:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_SPARSE_MODULE_H
2 | #define EIGEN_SPARSE_MODULE_H
3 |
4 | /** \defgroup Sparse_Module Sparse meta-module
5 | *
6 | * Meta-module including all related modules:
7 | * - \ref SparseCore_Module
8 | * - \ref OrderingMethods_Module
9 | * - \ref SparseCholesky_Module
10 | * - \ref SparseLU_Module
11 | * - \ref SparseQR_Module
12 | * - \ref IterativeLinearSolvers_Module
13 | *
14 | * \code
15 | * #include
16 | * \endcode
17 | */
18 |
19 | #include "SparseCore"
20 | #include "OrderingMethods"
21 | #include "SparseCholesky"
22 | #include "SparseLU"
23 | #include "SparseQR"
24 | #include "IterativeLinearSolvers"
25 |
26 | #endif // EIGEN_SPARSE_MODULE_H
27 |
28 |
--------------------------------------------------------------------------------
/external/Eigen/SparseCholesky:
--------------------------------------------------------------------------------
1 | // This file is part of Eigen, a lightweight C++ template library
2 | // for linear algebra.
3 | //
4 | // Copyright (C) 2008-2013 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 | #ifndef EIGEN_SPARSECHOLESKY_MODULE_H
11 | #define EIGEN_SPARSECHOLESKY_MODULE_H
12 |
13 | #include "SparseCore"
14 | #include "OrderingMethods"
15 |
16 | #include "src/Core/util/DisableStupidWarnings.h"
17 |
18 | /**
19 | * \defgroup SparseCholesky_Module SparseCholesky module
20 | *
21 | * This module currently provides two variants of the direct sparse Cholesky decomposition for selfadjoint (hermitian) matrices.
22 | * Those decompositions are accessible via the following classes:
23 | * - SimplicialLLt,
24 | * - SimplicialLDLt
25 | *
26 | * Such problems can also be solved using the ConjugateGradient solver from the IterativeLinearSolvers module.
27 | *
28 | * \code
29 | * #include
30 | * \endcode
31 | */
32 |
33 | #ifdef EIGEN_MPL2_ONLY
34 | #error The SparseCholesky module has nothing to offer in MPL2 only mode
35 | #endif
36 |
37 | #include "src/misc/Solve.h"
38 | #include "src/misc/SparseSolve.h"
39 | #include "src/SparseCholesky/SimplicialCholesky.h"
40 |
41 | #ifndef EIGEN_MPL2_ONLY
42 | #include "src/SparseCholesky/SimplicialCholesky_impl.h"
43 | #endif
44 |
45 | #include "src/Core/util/ReenableStupidWarnings.h"
46 |
47 | #endif // EIGEN_SPARSECHOLESKY_MODULE_H
48 |
--------------------------------------------------------------------------------
/external/Eigen/SparseCore:
--------------------------------------------------------------------------------
1 | #ifndef EIGEN_SPARSECORE_MODULE_H
2 | #define EIGEN_SPARSECORE_MODULE_H
3 |
4 | #include "Core"
5 |
6 | #include "src/Core/util/DisableStupidWarnings.h"
7 |
8 | #include
9 | #include