diff --git a/mex/sources/libkorder/tl/permutation.hh b/mex/sources/libkorder/tl/permutation.hh index fb5c2d5a73ac7feedb2972bdfeeb11318658f4d5..19c4a50ac442f89797c9ef8572026c2c663b7512 100644 --- a/mex/sources/libkorder/tl/permutation.hh +++ b/mex/sources/libkorder/tl/permutation.hh @@ -1,6 +1,6 @@ /* * Copyright © 2004 Ondra Kamenik - * Copyright © 2019 Dynare Team + * Copyright © 2019-2023 Dynare Team * * This file is part of Dynare. * @@ -101,7 +101,7 @@ public: { } bool - operator==(const Permutation &p) + operator==(const Permutation &p) const { return permap == p.permap; } diff --git a/mex/sources/libkorder/tl/ps_tensor.hh b/mex/sources/libkorder/tl/ps_tensor.hh index 5018549c786eef13b808963ab8117c28dcdb09db..e981f31a8d221cc83012dab4dfef9d4f47086c35 100644 --- a/mex/sources/libkorder/tl/ps_tensor.hh +++ b/mex/sources/libkorder/tl/ps_tensor.hh @@ -1,6 +1,6 @@ /* * Copyright © 2004 Ondra Kamenik - * Copyright © 2019 Dynare Team + * Copyright © 2019-2023 Dynare Team * * This file is part of Dynare. * @@ -116,7 +116,7 @@ public: per.apply(nvmax); } bool - operator==(const PerTensorDimens &td) + operator==(const PerTensorDimens &td) const { return TensorDimens::operator==(td) && per == td.per; }