File hasmatrixget.h
File List > algebra > matrix3x3algebra > helpers > hasmatrixget.h
Go to the documentation of this file
#ifndef COSMOINTERFACE_MATRIX3X3ALGEBRA_HELPERS_HASMATRIXGET_H
#define COSMOINTERFACE_MATRIX3X3ALGEBRA_HELPERS_HASMATRIXGET_H
/* This file is part of TempLat, available at https://cosmolattice.github.io/templat .
Copyright 2021-2026 The TempLat authors, see AUTHORS.md.
Released under the MIT license, see LICENSE.md. */
// File info: Main contributor(s): Jorge Baeza-Ballesteros, Year: 2026
#include "TempLat/util/rangeiteration/tag.h"
namespace TempLat
{
template <class T>
concept HasMatrixGet1 = requires(T t, Tag<0> tag) { t.MatrixGet(tag); };
template <class T>
concept HasMatrixGet2 = requires(T t, Tag<1> tag1, Tag<1> tag2) { t.MatrixGet(tag1, tag2); };
template <class T>
concept HasMatrixGet = HasMatrixGet1<T> || HasMatrixGet2<T>;
} // namespace TempLat
#endif