semvec/pypi-packages huggingface dataset:
sUTL 1.0.6
A sUTL implementation for python
License: MIT
Keywords: DSL Language JSON

# sUTL_py
sUTL Universal Transform Language for Python

This is a python implementation of sUTL. See the [sUTL spec](https://github.com/emlynoregan/sUTL-spec) here.

Import sUTL like this:

    from sUTL_py import sUTL

Evaluate a transform like this:

    transform = {
        "&": "+",
        "a": "^@",
        "b": 5
    }

    source = 6

    result = sUTL.evaluate(source, transform, {})

    # here result is 11

To use library distributions, do the following:

1: Load the libraries. The following loads the core library.

    coreString = urllib2.urlopen("http://emlynoregan.github.io/sUTL-spec/sUTL_core.json").read()
    distributions = [json.loads(coreString)]

2: Add your transform to a declaration

    transform = {
        "&": "map_core",
        "list": "^@",
        "t": {":": {
            "&": "+",
            "a": "^@.item",
            "b": 1
        }}
    }

    declaration = {
      "transform-t": transform,
      "requires": ["map_core"]
    }

3: Compile a set of libraries from the distribution

    lib = sUTL.compilelib([declaration], distributions, false)

4: Evaluate your transform

    source = [1, 2, 3, 4]

    result = sUTL.evaluate(source, transform, lib)

    # here result is [2, 3, 4, 5]
matrixutils 0.0.3b0
Utilities for working with matrices as linear operators
License: MIT
Keywords: finite volume

matrixutils
===========

.. image:: https://img.shields.io/pypi/v/matrixutils.svg
    :target: https://pypi.python.org/pypi/matrixutils
    :alt: Latest PyPI version

.. image:: https://readthedocs.org/projects/matrixutils/badge/?version=latest
    :target: http://matrixutils.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://img.shields.io/github/license/opengeophysics/matrixutils.svg
    :target: https://github.com/opengeophysics/matrixutils/blob/master/LICENSE
    :alt: MIT license

.. image:: https://api.travis-ci.org/opengeophysics/matrixutils.svg?branch=master
    :target: https://travis-ci.org/opengeophysics/matrixutils
    :alt: Travis CI build status

.. image:: https://codecov.io/gh/opengeophysics/matrixutils/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/opengeophysics/matrixutils
    :alt: Coverage status

.. image:: https://api.codacy.com/project/badge/Grade/0e5f3204fc3c4e989f41e74caf5c6084
    :target: https://www.codacy.com/app/lindseyheagy/matrixutils?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=opengeophysics/matrixutils&amp;utm_campaign=Badge_Gradetus
    :alt: Code quality


Why
---

**matrixutils** is a python package that includes utilities for
working with matrices as linear operators in python. It includes utilities
for wrapping and unwrapping matrices and vectors, tools for creating matrices,
and operators `Zero` and `Identity` which improve code efficiency without
sacrificing readability.

It is used by `discretize <https://github.com/simpeg/discretize>`_ and `SimPEG <https://github.com/simpeg/simpeg>`_.


Installation
------------

.. code:: shell

    pip install matrixutils

To install as a developer

.. code:: shell

    git clone https://github.com/opengeophysics/matrixutils.git
    cd matrixutils
    python setup.py install

or to build the installation in-place:

.. code:: shell

    git clone https://github.com/opengeophysics/matrixutils.git
    cd matrixutils
    python setup.py install build_ext --inplace



Links
-----

Website:
http://simpeg.xyz

Documentation:
http://matrixutils.readthedocs.io

Code:
https://github.com/opengeophysics/matrixutils

Tests:
Coming soon...

Bugs & Issues:
https://github.com/opengeophysics/matrixutils/issues

Questions:
https://groups.google.com/forum/#!forum/simpeg

Chat:
http://slack.simpeg.xyz/