Skip to content

Commit

Permalink
fixed ambiguous call in kronecker product (always use cols() and rows…
Browse files Browse the repository at this point in the history
…() of KroneckerProductBase)
  • Loading branch information
AlePalu committed Oct 25, 2024
1 parent c440a9d commit 2f965ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fdaPDE/linear_algebra.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,4 @@
#include "linear_algebra/fspai.h"
#include "linear_algebra/lumping.h"

#include "fdaPDE/linear_algebra/randomized_algorithms/rand_range_finder.h"
#include "fdaPDE/linear_algebra/randomized_algorithms/randomized_svd.h"
#include "fdaPDE/linear_algebra/randomized_algorithms/rand_nys_approximation.h"


#endif // __FDAPDE_LINEAR_ALGEBRA_MODULE_H__
4 changes: 4 additions & 0 deletions fdaPDE/linear_algebra/kronecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ struct KroneckerTensorProduct<Lhs, Rhs, Eigen::Dense, Eigen::Dense> :
public Eigen::MatrixBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Dense, Eigen::Dense>>,
public KroneckerTensorProductBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Dense, Eigen::Dense>> {
using Base = KroneckerTensorProductBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Dense, Eigen::Dense>>;
using Base::cols;
using Base::rows;
KroneckerTensorProduct(const Lhs& lhs, const Rhs& rhs) : Base(lhs, rhs) {};
};
template <typename Lhs, typename Rhs>
Expand All @@ -60,6 +62,8 @@ struct KroneckerTensorProduct<Lhs, Rhs, Eigen::Sparse, Eigen::Sparse> :
public Eigen::SparseMatrixBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Sparse, Eigen::Sparse>>,
public KroneckerTensorProductBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Sparse, Eigen::Sparse>> {
using Base = KroneckerTensorProductBase<KroneckerTensorProduct<Lhs, Rhs, Eigen::Sparse, Eigen::Sparse>>;
using Base::cols;
using Base::rows;
KroneckerTensorProduct(const Lhs& lhs, const Rhs& rhs) : Base(lhs, rhs) {};
};
template <typename Lhs, typename Rhs>
Expand Down

0 comments on commit 2f965ee

Please sign in to comment.