FOSSEE Scilab Octave Toolbox
This is a scilab toolbox to call octave functions. It requires octave to be installed on the system.
fun.h
Go to the documentation of this file.
1
// Copyright (C) 2019 - IIT Bombay - FOSSEE
2
//
3
// This file must be used under the terms of the CeCILL.
4
// This source file is licensed as described in the file COPYING, which
5
// you should have received as part of this distribution. The terms
6
// are also available at
7
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
8
// Author: Rupak Rokade
9
// Organization: FOSSEE, IIT Bombay
10
// Email: toolbox@scilab.in
11
12
#define fun_h__
13
//extern "C" int fun (double* answ, double* in1, int in1_row, std::string name, std::string opt);
14
15
extern
"C"
16
{
17
18
typedef
enum
19
{
20
TYPE_DOUBLE
,
21
TYPE_STRING
,
22
}
FUNCTYPE
;
23
24
typedef
struct
25
{
26
FUNCTYPE
type;
27
int
n_in_rows;
28
int
n_in_cols;
29
int
n_out_rows;
30
int
n_out_cols;
31
int
is_in_cmplx;
32
int
is_out_cmplx;
33
void
* in_data_real;
34
void
* in_data_img;
35
void
* out_data_real;
36
void
* out_data_img;
37
}
FUNCARGS
;
38
39
typedef
struct
{
40
int
n_in_arguments;
// number of input arguments
41
int
n_out_arguments;
// number of output arguments
42
int
n_out_user;
// number of output arguments
43
char
*err;
// Name
44
//char *package; //Name of octave package to be loaded
45
FUNCARGS
*argument;
46
}
FUNCCALL
;
47
48
int
fun
(
FUNCARGS
*arr,
FUNCCALL
*call);
49
}
FUNCTYPE
FUNCTYPE
Definition:
fun.h:19
TYPE_DOUBLE
@ TYPE_DOUBLE
Definition:
fun.h:20
TYPE_STRING
@ TYPE_STRING
Definition:
fun.h:21
fun
int fun(FUNCARGS *arr, FUNCCALL *call)
Function to Interact with Octave's API.
Definition:
fun.cpp:29
FUNCARGS
Definition:
fun.h:25
FUNCCALL
Definition:
fun.h:39
thirdparty
linux
include
fun.h
Generated by
1.9.1