kronecker_product.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Daniele Panozzo <daniele.panozzo@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_KRONECKERPRODUCT_H
  9. #define IGL_KRONECKERPRODUCT_H
  10. // Obsolete: Use
  11. // #include <unsupported/Eigen/src/KroneckerProduct>
  12. // ...
  13. // Eigen::kroneckerProduct(A,B,C);
  14. //#include "igl_inline.h"
  15. //
  16. //#include <Eigen/Dense>
  17. //#include <Eigen/Sparse>
  18. //
  19. //namespace igl
  20. //{
  21. // // Computes the Kronecker product between sparse matrices A and B.
  22. // //
  23. // // Inputs:
  24. // // A #M by #N sparse matrix
  25. // // B #P by #Q sparse matrix
  26. // // Returns #M*#P by #N*#Q sparse matrix
  27. // //
  28. // template <typename Scalar>
  29. // IGL_INLINE Eigen::SparseMatrix<Scalar> kronecker_product(
  30. // const Eigen::SparseMatrix<Scalar> & A,
  31. // const Eigen::SparseMatrix<Scalar> & B);
  32. //}
  33. //
  34. //#ifndef IGL_STATIC_LIBRARY
  35. //# include "kronecker_product.cpp"
  36. //#endif
  37. #endif