diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:24:14 +0300 |
commit | 41d4a1986548e66a652221e4a68c52900474eeff (patch) | |
tree | 26acf937ea0b762977f89adcc4e74a3ec9ecee62 /source/blender/physics/intern/ConstrainedConjugateGradient.h | |
parent | 108045faa01849115c54190ebed788faf36dcb56 (diff) |
ClangFormat: format '#if 0' code in source/
Diffstat (limited to 'source/blender/physics/intern/ConstrainedConjugateGradient.h')
-rw-r--r-- | source/blender/physics/intern/ConstrainedConjugateGradient.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/physics/intern/ConstrainedConjugateGradient.h b/source/blender/physics/intern/ConstrainedConjugateGradient.h index 0d361f98f4e..c7808c34ecf 100644 --- a/source/blender/physics/intern/ConstrainedConjugateGradient.h +++ b/source/blender/physics/intern/ConstrainedConjugateGradient.h @@ -112,28 +112,26 @@ EIGEN_DONT_INLINE void constrained_conjugate_gradient(const MatrixType &mat, } // namespace internal #if 0 /* unused */ -template<typename MatrixType> -struct MatrixFilter -{ - MatrixFilter() : - m_cmat(NULL) +template<typename MatrixType> struct MatrixFilter { + MatrixFilter() : m_cmat(NULL) { } - MatrixFilter(const MatrixType &cmat) : - m_cmat(&cmat) + MatrixFilter(const MatrixType &cmat) : m_cmat(&cmat) { } - void setMatrix(const MatrixType &cmat) { m_cmat = &cmat; } + void setMatrix(const MatrixType &cmat) + { + m_cmat = &cmat; + } - template <typename VectorType> - void apply(VectorType v) const + template<typename VectorType> void apply(VectorType v) const { v = (*m_cmat) * v; } -protected: + protected: const MatrixType *m_cmat; }; #endif |