// Copyright (C) 2019 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author: Rupak Rokade // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in #include #include #include #include"fun.h" //octave_fun("arburg","signal", [1,2,3,4,5],2) int main(void) { FUNCCALL funcall; FUNCCALL *funptr = &funcall; funcall.n_in_arguments = 2; funcall.n_out_user = 1; FUNCARGS ins[funcall.n_in_arguments*funcall.n_out_user]; FUNCARGS *argptr = ins; int a; int in_type[4] = {10,1}; char str[3][20] = {"hamming","signal"}; int si; double* d; int size_double; for(a = 0; a2) //ins[a].n_in_cols = 1; size_double = ins[a].n_in_rows*ins[a].n_in_cols; ins[a].type = TYPE_DOUBLE; ins[a].in_data_real = malloc(sizeof(double)*size_double); d = (double *)ins[a].in_data_real; for(int i=0;i