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  {
22  }FUNCTYPE;
23 
24  typedef struct
25  {
27  int n_in_rows;
28  int n_in_cols;
33  void* in_data_real;
34  void* in_data_img;
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
46 } FUNCCALL;
47 
48  int fun(FUNCARGS *arr, FUNCCALL *call);
49 }
FUNCTYPE
Definition: fun.h:19
@ TYPE_DOUBLE
Definition: fun.h:20
@ TYPE_STRING
Definition: fun.h:21
int fun(FUNCARGS *arr, FUNCCALL *call)
Function to Interact with Octave's API.
Definition: fun.cpp:29
Definition: fun.h:25
void * out_data_img
Definition: fun.h:36
int n_out_cols
Definition: fun.h:30
void * out_data_real
Definition: fun.h:35
int is_out_cmplx
Definition: fun.h:32
int n_in_rows
Definition: fun.h:27
int n_in_cols
Definition: fun.h:28
FUNCTYPE type
Definition: fun.h:26
int is_in_cmplx
Definition: fun.h:31
int n_out_rows
Definition: fun.h:29
void * in_data_img
Definition: fun.h:34
void * in_data_real
Definition: fun.h:33
Definition: fun.h:39
int n_in_arguments
Definition: fun.h:40
int n_out_arguments
Definition: fun.h:41
FUNCARGS * argument
Definition: fun.h:45
int n_out_user
Definition: fun.h:42
char * err
Definition: fun.h:43