Code Monkey home page Code Monkey logo

slicot.jl's Introduction

SLICOT wrapper for JuliaLang.

Build Status

Status

Unfinished, untested, extremely new.

  • All Subroutines have been wrapped in the "RAW" API, with a few exceptions
    • No true functions have been wrapped (around 12 routines)
    • No subroutines that require a callback have been wrapped
  • So far only 1 routine has been wrapped in the "Simple" API.

However, more are on the way.

For more up to date information, check "status.md"

Installation

Pkg.clone("https://github.com/jcrist/Slicot.jl.git")
Pkg.build("Slicot")

Note: The build process is extremely new, and right now only works on unix/linux based systems, and for a small number of fortran compilers. If you find it doesn't work for you, please file an issue, or send a pull request to improve it.

Use

There are two submodules: "simple" and "raw".

Simple makes assumptions about your use case, but allows for a much shorter call signature. Inputs are validated inside Julia (allows for helpful error messages). Output only arrays are created in the subroutine, and array dimensions are interpreted from the input arrays (no need for explicit passing).

Raw makes no assumptions and leaves all calls up to you. The call signature for the "Raw" api is almost exactly the same as the original FORTRAN. The only difference is, "INFO" is not passed into the function. This is to ensure that the error handling mechanism is always valid. The remaining inputs are not sanitized in julia, and will result in a call to xerbla.f in the case of an error. An alternate version of xerbla.f has been included that doesn't exit upon error, allowing these errors to be handled more gracefully. If using the raw bindings, always check if INFO < 0 after each call. In addition to this, a "SlicotError" will be thrown as well.

Note that the raw functions only check for INFO < 0. For some subroutines, other types of errors may occur. As each routine is added to the simple submodule, the corresponding raw routine will be updated. For now, all routines were just wrapped programmatically by a very dumb script. Improvements are clearly needed.

slicot.jl's People

Contributors

jcrist avatar

Watchers

James Cloos avatar Martín Noblía avatar  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.