Giter Club home page Giter Club logo

controlledreduction's Introduction

controlled-reduction

PyPI package

For a PyPI package that integrates most of controlled-reduction into SageMath, see pycontrolledreduction.

Abstract

An implementation of the controlled reduction method for computing the Hasse-Weil zeta functions of smooth projective hypersurfaces over finite fields. Explicitly, by computing a p-adic approximation of Frobenius action on p-adic cohomology (Monsky-Washnizter) with sufficient precision and then lifting its characteristic polynomial to the integers. An overview of the method can be found in:

  • "Computing zeta functions of nondegenerate projective hypersurfaces over finite fields", (under preparation) by Edgar Costa and David Harvey.
  • "Effective computations of Hasse-Weil zeta functions", by Edgar Costa

Dependencies

It majorly depends on:

Which depend on:

However, SageMath comes with all this libraries.

Installation

There are 3 options:

Using SageMath to provide the dependencies

  1. Figuring out where SageMath is installed. We recommend doing this and storing in an environmental variable by doing:
SAGE_ROOT=$(sage -c "print SAGE_ROOT")

Alternatively, in Sage do print SAGE_ROOT and on the unix terminal: SAGE_ROOT=<the line printed in Sage>

  1. Download controlled reduction
git clone https://github.com/edgarcosta/controlledreduction.git
  1. Change your working directory and run the configure file
cd controlledreduction && ./configure --with-ntl=$SAGE_ROOT/local
  1. Compile everything by doing
make
  1. Set up the variable $LD_LIBRARY_PATH, so the executables can find the libraries at run time. One can do this for the current terminal by doing:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SAGE_ROOT/local/lib

and for this line to be ran at the start of every session one can do

echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SAGE_ROOT/local/lib >> ~/.bashrc
  1. You can optionaly run some tests by doing
make check

or check out some of the examples

build/examples/K3_dwork

Manually specifying the path for the dependencies

  1. make sure you have the dependencies (see the source of the script build_dependencies if you would prefer to build them manually), if they are installed in a non-standard path, be sure to set $LD_LIBRARY_PATH accordingly.

  2. ./configure to generate the makefile.

    To link against the libaries by SageMath it should be sufficient to run ./configure --with-ntl=<SAGE_DIR>/local/.

    Run ./configure --help for more options.

  3. make to build everything

  4. make check to run some tests.

controlledreduction's People

Contributors

edgarcosta avatar jjgarzella avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.