Giter VIP home page Giter VIP logo

octave-sharp's Introduction

octave-sharp

Octave runtime for C#.

Proof of concept ,just a basic glue there is still much work to be done.

Licence:LGPL 3.0

Requirements: Windows .NET4.0 Client profile Octave VS2010 libs in PATH

How things work ,till now

Install Octave VS2010 version for Windows. Git clone. Setup Octave.Core include libs path to Octave directory. Compile an poof.

dynamic oi = Octave.Runtime.GetIntepreter();

Gets the dynamic object which is used to interop with Octave. Any method called against it will be called via Octave e.g.

double rnd= oi.rand()

var day =oi.gmtime(oi.time()).yday;

Controlling the number of return values.

 var matrix = new[,] {{1.2, 1.3, 1.4}, {3.4, 5.6, 7.8},{1.7,9.1,8.4}};

 var e = oi.eig(matrix,nargout:2);
 double[,] evect=e[0];
 double[,] eval=e[1];

Supported data types.

C#Octave
System.Doubledouble
System.Floatfloat
System.(U)Int64(u)int64
System.(U)Int32(u)int32
System.(U)Int16(u)int16
System.SByteint8
System.Byteuint8
System.Booleanbool
System.Stringstring
T[,]Matrix
System.Object[,]Cell
System.Dynamic.ExpandoObjectStruct

octave-sharp's People

Contributors

apaka 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.