Project

General

Profile

Feature #1332

New function: vector of RingElem from string -- in CoCoALib

Added by Anna Maria Bigatti over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
New Function
Start date:
08 Oct 2019
Due date:
% Done:

100%

Estimated time:
3.51 h
Spent time:

Description

In many cases in CoCoALib, and often also in CoCoA-5, it would be convenient to make a vector of RingElem from a string, that is, an extension of RingElem(R, str) to a vector.
Think, design, an implement.

2019-10 implemented as RingElems(ring, string)


Related issues

Related to CoCoALib - Feature #1330: New syntax for NewQuotientRingClosed2019-10-08

Related to CoCoALib - Feature #1329: New syntax for creating homomorphisms (PolyAlgebraHom)Closed2019-10-08

Related to CoCoALib - Feature #357: Constructor for vectors? CoCoAVectorRejected2013-05-24

Related to CoCoA-5 - Feature #1243: New function: Read a string into a list (of RingElem) -- CoCoA-5Closed2019-02-13

Related to CoCoALib - Design #1391: RingElems: syntax with [ and ] ?Closed2020-01-10

Related to CoCoALib - Design #1414: Make class RingElemVector?In Progress2020-02-12

History

#1 Updated by Anna Maria Bigatti over 4 years ago

#2 Updated by Anna Maria Bigatti over 4 years ago

  • Related to Feature #1329: New syntax for creating homomorphisms (PolyAlgebraHom) added

#3 Updated by Anna Maria Bigatti over 4 years ago

  • Related to Feature #357: Constructor for vectors? CoCoAVector added

#4 Updated by Anna Maria Bigatti over 4 years ago

  • Category set to New Function
  • Target version set to CoCoALib-0.99700
  • % Done changed from 0 to 10

maybe CoCoAVector(R, string)?
e.g.
CoCoAVector(NewPolyRing(QQ,"x,y,z"), "x^2-3, y^3-1234567");

#5 Updated by John Abbott over 4 years ago

  • Related to Feature #1243: New function: Read a string into a list (of RingElem) -- CoCoA-5 added

#6 Updated by Anna Maria Bigatti over 4 years ago

  • Subject changed from New function: vector of RingElem from string to New function: vector of RingElem from string -- in CoCoALib

Done:
I think I've done it. ... after lots of tedious little mistakes!

Called ReadExprVector(ring, string) in RingElemInput.[CH]
Now testing and applying where useful for CoCoA-5, then we can re-think of the function name within CoCoALib.

time added in #1243 by mistake

#7 Updated by Anna Maria Bigatti over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Anna Maria Bigatti
  • % Done changed from 10 to 80

#8 Updated by Anna Maria Bigatti over 4 years ago

  • Target version changed from CoCoALib-0.99700 to CoCoALib-0.99650 November 2019

#9 Updated by Anna Maria Bigatti over 4 years ago

reminder: write doc for cocoalib

#10 Updated by Anna Maria Bigatti over 4 years ago

reminder: write doc for cocoalib

#11 Updated by Anna Maria Bigatti over 4 years ago

I like the name RingElems(R, str) because it recalls the constructor RingElem(R, str).

The name I suggested before, CoCoAVector, is not good because it is used for a template with any type (VectorOps.H).

#12 Updated by John Abbott over 4 years ago

OK for the name RingElems it is a bit like symbols
(I do not really like it that much, but cannot think of a better one)

#13 Updated by Anna Maria Bigatti over 4 years ago

  • Description updated (diff)
  • Status changed from Resolved to Feedback
  • % Done changed from 80 to 90

done, documented, tested

#14 Updated by Anna Maria Bigatti over 4 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100
  • Estimated time set to 3.51 h

documented in RingElem.txt

#15 Updated by John Abbott over 4 years ago

  • Related to Design #1391: RingElems: syntax with [ and ] ? added

#16 Updated by Anna Maria Bigatti about 4 years ago

Also available in: Atom PDF