示例#1
0
文件: res-a2.cpp 项目: JosephineYu/M2
M2_arrayint gbres_comp::get_betti(int type) const
// Only type = 0 (minimal) is supported by this type.
// Should we do the other types as well?
  // type is documented under rawResolutionBetti, in engine.h
{
  if (type == 0)
    return betti_minimal();

  ERROR("received unsupported betti type for this algorithm");
  return 0;
}
示例#2
0
M2_arrayint gbres_comp::get_betti(int type) const
// Only type = 0 (minimal) is supported by this type.
// Should we do the other types as well?
  // type is documented under rawResolutionBetti, in engine.h
{
  if (type == 0)
    return betti_minimal();
  if (type == 4)
    {
      ERROR("cannot use Minimize=>true unless res(...,FastNonminimal=>true) was used");
      return 0;
    }

  ERROR("received unsupported betti type for this algorithm");
  return 0;
}