Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/physics/intern/ConstrainedConjugateGradient.h')
-rw-r--r--source/blender/physics/intern/ConstrainedConjugateGradient.h20
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