Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4975762 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Nov 24, 2024
1 parent 20b8006 commit 0362054
Show file tree
Hide file tree
Showing 38 changed files with 88 additions and 4,001 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 34 additions & 1 deletion docs/_modules/flatsurf/geometry/homology.html
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,39 @@ <h1>Source code for flatsurf.geometry.homology</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_chain</span><span class="p">)</span>

<div class="viewcode-block" id="SimplicialHomologyClass.chain">
<a class="viewcode-back" href="../../../geometry/homology.html#flatsurf.geometry.homology.SimplicialHomologyClass.chain">[docs]</a>
<span class="k">def</span> <span class="nf">chain</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Return a lift of this element to the</span>
<span class="sd"> :meth:`SimplicialHomologyGroup.chain_module`.</span>

<span class="sd"> EXAMPLES::</span>

<span class="sd"> sage: from flatsurf import translation_surfaces, SimplicialHomology</span>
<span class="sd"> sage: T = translation_surfaces.square_torus()</span>
<span class="sd"> sage: H = SimplicialHomology(T)</span>
<span class="sd"> sage: a, b = H.gens()</span>
<span class="sd"> sage: a.chain()</span>
<span class="sd"> B[(0, 1)]</span>

<span class="sd"> We can use the chain representation to write a homology class as</span>
<span class="sd"> simplices, i.e., edges, with multiplicities::</span>

<span class="sd"> sage: coeffs = (a - b).chain().monomial_coefficients()</span>
<span class="sd"> sage: coeffs # random output due to random ordering of edges</span>
<span class="sd"> {(0, 1): 1, (0, 0): -1}</span>

<span class="sd"> From this representation, we determine the holonomy vector that a chain</span>
<span class="sd"> encodes on a translation surface::</span>

<span class="sd"> sage: sum(c * T.polygon(label).edge(edge) for ((label, edge), c) in coeffs.items())</span>
<span class="sd"> (-1, 1)</span>

<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_chain</span></div>


<div class="viewcode-block" id="SimplicialHomologyClass.coefficient">
<a class="viewcode-back" href="../../../geometry/homology.html#flatsurf.geometry.homology.SimplicialHomologyClass.coefficient">[docs]</a>
<span class="k">def</span> <span class="nf">coefficient</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">gen</span><span class="p">):</span>
Expand All @@ -693,7 +726,7 @@ <h1>Source code for flatsurf.geometry.homology</h1><div class="highlight"><pre>
<span class="sd"> sage: from flatsurf import translation_surfaces, SimplicialHomology</span>
<span class="sd"> sage: T = translation_surfaces.square_torus()</span>
<span class="sd"> sage: H = SimplicialHomology(T)</span>
<span class="sd"> sage: a,b = H.gens()</span>
<span class="sd"> sage: a, b = H.gens()</span>
<span class="sd"> sage: a.coefficient(a)</span>
<span class="sd"> 1</span>
<span class="sd"> sage: a.coefficient(b)</span>
Expand Down
1 change: 1 addition & 0 deletions docs/_sources/examples/boshernitzan_conjecture.md.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
jupytext:
encoding: '# -*- coding: utf-8 -*-'
formats: ipynb,md:myst,sage:light
text_representation:
extension: .md
Expand Down
1 change: 1 addition & 0 deletions docs/_sources/examples/siegel_veech.md.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
jupytext:
encoding: '# -*- coding: utf-8 -*-'
formats: ipynb,md:myst,sage:light
text_representation:
extension: .md
Expand Down
161 changes: 0 additions & 161 deletions docs/asv/asv.css

This file was deleted.

Loading

0 comments on commit 0362054

Please sign in to comment.