Package sage :: Package tables :: Module elliptic_curves :: Class Database
[show private | hide private]
[frames | no frames]

Type Database

object --+        
         |        
     _uniq --+    
             |    
      Database --+
                 |
                Database


INPUT:
    read_only -- bool, default: True, if False then
                 can change the database; otherwise, not.

Method Summary
  __init__(self, read_only)
  __getitem__(self, i)
  __getslice__(self, i, j)
  __iter__(self)
Iterate through all optimal curves in the database.
  __repr__(self)
  all_curves(self, conductors)
Return the list of all curves in the database with given conductors.
  curve(self, label)
Return the curve with given Cremona label.
  curves(self, conductors)
Return the list of all curves in the database with given conductors.
  isogeny_class(self, label)
Return the isogeny class of the curve with given Cremona label.
  optimal_curves(self, conductors)
Return the list of all optimal curves in the database with given conductor(s).
    Inherited from Database
  __setitem__(self, x, y)
  abort(self)
  as_dict(self, keys)
Return a dict representation of the database.
  changed(self, key)
Informs the database that some items corresponding to the given key may have changed.
  clone(self, new_name)
Copy the database to a new database with the given new_name.
  commit(self)
Commit the new version of this object to the database file.
  delete_all(self)
Delete every entry in the database.
  dump_as_dict(self, filename, keys)
  dump_as_dict_intervals(self, basename, Nstart, Nstop, length)
  has_key(self, x)
  keys(self)
  pack(self)
This should pack, but I couldn't get pack working with compressed storage.
  rebuild(self, thresh)
Completely rebuild the database from scratch, by going through and writing everything out to a temporary database, then moving the temporary database files over self's files.
  restore_from_dict(self, filename)
Restore from the filename which must store a pickled dict.
  restore_from_dict_all(self, basename)
Restore all files that start with the given basename.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Method Details

__iter__(self)

Iterate through all optimal curves in the database.

all_curves(self, conductors)

Return the list of all curves in the database with given
conductors.

INPUT:
    conductor - an iterable

curve(self, label)

Return the curve with given Cremona label.

curves(self, conductors)

Return the list of all curves in the database with given
conductors.

INPUT:
    conductor - an iterable

isogeny_class(self, label)

Return the isogeny class of the curve with given Cremona label.

optimal_curves(self, conductors)

Return the list of all optimal curves in the database
with given conductor(s).

INPUT:
    conductor - an integer.

Generated by Epydoc 2.1 on Mon May 9 17:57:02 2005 http://epydoc.sf.net