Exemplo n.º 1
0
TEST(Morphism, Equal)
{
  MatrixQ f = {{2, 1}, {5, 2}};
  MatrixQ g = {{0, 1}, {1, 2}};
  AbelianGroup Y(0, 2);
  Y(0) = 1;
  Y(1) = 2;

  EXPECT_TRUE(morphism_equal(2, f, g, Y));
}
Exemplo n.º 2
0
bool morphism_zero(std::size_t p, const MatrixQ& f, const AbelianGroup& Y)
{
  MatrixQ g(f.height(), f.width());

  return morphism_equal(p, f, g, Y);
}