GithubHelp home page GithubHelp logo

octcall.jl's Introduction

OctCall: Calling GNU Octave from Julia

Build Status

This package allows you to call and interact with GNU Octave, a mostly Matlab-compatible free-software numerical-computing language, from Julia. It works by directly accessing the GNU Octave C++ libraries using Cxx.jl, and hence should have performance comparable to calling Octave functions from within Octave.

Currently, communication of basic types such as numeric/boolean scalars, matrices/vectors, and strings are supported. Support for more types will be added in the future.

Currently, OctCall is a pre-release preview.

Installation

Before installing OctCall, make sure that GNU Octave is installed on your machine and that mkoctfile is in your PATH.

You should also add ENV["JULIA_CXX_RTTI"]=1 to your ~/.julia/config/startup.jl file.

octcall.jl's People

Contributors

stevengj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pallharaldsson

octcall.jl's Issues

Consider adding "nout" as in Oc2Py

and if, then latest addition here, from 6 days ago:
blink1073/oct2py@8970a66

I'm not sure this applies to Julia, as prety standard to return many there (and I thought in Python?), and in MATLAB:

https://stackoverflow.com/questions/43394393/oct2py-only-returning-the-first-output-argument

Removed inferred nout for Octave function calls; it must be explicitly given if not 1. The old behavior was too surprising and relied on internal logic of the CPython interpreter.

I'm just filing so I do not forget, maybe this is not needed, but if a good idea, then also at MATLAB.jl?

FYI: Single-threading may be needed

For Oct2Py at least I got "Session died" (for inv function) and tracked it down to needing:

ENV["OPENBLAS_NUM_THREADS"]="1"

https://github.com/xianyi/OpenBLAS/wiki/faq#multi-threaded

OpenBLAS is ok with threading, but Octave doesn't support the combination, it seems, at least I fixed this way. This needs probably not be reported at Oct2Py, as I think Python doesn't enable threading by default, but Julia does, so for the combination of the three languages is a problem, or I assume would be also for you, this package.

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.