Project

General

Profile

Design #513

Quick/correct flag for bool3 fns

Added by John Abbott about 10 years ago. Updated almost 10 years ago.

Status:
In Progress
Priority:
High
Assignee:
-
Category:
New Function
Target version:
Start date:
02 Apr 2014
Due date:
% Done:

10%

Estimated time:
20.00 h
Spent time:

Description

Idea: all (or most) fns which return bool3 values should accept a flag (bool?) saying whether to be "quick" or "correct".

This idea arose when trying to implement IamIntegralDomain3 for a QuotientRing; the best impl would simply have been return IsPrime3(myDefiningIdeal,QuickModeFlag). This would allow IsPrime3 to be "clever" in some cases...

Is this a good idea?

What type should the quick-or-correct flag be? A plain bool or from a 2-element enum? Or maybe an enum with more than 2 elements e.g. which would permit the use of "quick" heuristics to give a "reliable" result (e.g. IsProbPrime instead of IsPrime)?


Related issues

Related to CoCoALib - Design #498: IsIntegralDomain, IamIntegralDomain3Closed2014-03-28

Related to CoCoALib - Feature #361: implement IsPrime3, IsMaximal3Closed2013-05-29

Related to CoCoALib - Design #871: Redesign idealsNew2016-04-26

Related to CoCoALib - Feature #899: IsMaximal, IsPrimary for IDEAL (in cocoalib)Closed2016-06-27

Related to CoCoALib - Design #924: FlagManager for bool/bool3 flagsNew2016-09-19

History

#1 Updated by John Abbott about 10 years ago

  • Status changed from New to In Progress
  • Priority changed from Normal to High
  • % Done changed from 0 to 10
  • Estimated time set to 20.00 h

We should start by looking at the various current uses of bool3, and possibly any obvious future candidates.

#2 Updated by John Abbott almost 10 years ago

  • Target version changed from CoCoALib-0.99534 Seoul14 to CoCoALib-1.0

#3 Updated by John Abbott about 8 years ago

#4 Updated by Anna Maria Bigatti over 7 years ago

  • Related to Feature #899: IsMaximal, IsPrimary for IDEAL (in cocoalib) added

#5 Updated by Anna Maria Bigatti over 7 years ago

  • Related to Design #924: FlagManager for bool/bool3 flags added

Also available in: Atom PDF