SVD.hpp
Go to the documentation of this file.
1 // This code is based on Jet framework.
2 // Copyright (c) 2018 Doyub Kim
3 // CubbyFlow is voxel-based fluid simulation engine for computer games.
4 // Copyright (c) 2020 CubbyFlow Team
5 // Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6 // AI Part: Dongheon Cho, Minseo Kim
7 // We are making my contributions/submissions to this project solely in our
8 // personal capacity and are not conveying any rights to any intellectual
9 // property of any third parties.
10 
11 #ifndef CUBBYFLOW_SVD_HPP
12 #define CUBBYFLOW_SVD_HPP
13 
14 #include <Core/Matrix/Matrix.hpp>
15 
16 namespace CubbyFlow
17 {
30 template <typename T>
31 void SVD(const MatrixMxN<T>& a, MatrixMxN<T>& u, VectorN<T>& w,
32  MatrixMxN<T>& v);
33 
46 template <typename T, size_t M, size_t N>
47 void SVD(const Matrix<T, M, N>& a, Matrix<T, M, N>& u, Vector<T, N>& w,
48  Matrix<T, N, N>& v);
49 } // namespace CubbyFlow
50 
51 #include <Core/Math/SVD-Impl.hpp>
52 
53 #endif
Definition: pybind11Utils.hpp:20
void SVD(const MatrixMxN< T > &a, MatrixMxN< T > &u, VectorN< T > &w, MatrixMxN< T > &v)
Singular value decomposition (SVD).
Definition: SVD-Impl.hpp:54