会议论文详细信息
7th Modern Technologies in Industrial Engineering
Including GNU Octave in a numerical programming C++ rapid development software context for research models
工业技术(总论)
Oanta, E.^1 ; Pescaru, A.^1^2
Constanta Maritime University, Faculty of Naval Electro-Mechanics, 104 Mircea cel Batran Street, Constanta
900663, Romania^1
Constanta Maritime University, Faculty of Navigation, 104 Mircea cel Batran Street, Constanta
900663, Romania^2
关键词: Built-in functions;    Commercial applications;    Conversion function;    Input and outputs;    Numerical programming;    Scientific programming;    Two-dimensional arrays;    Write operations;   
Others  :  https://iopscience.iop.org/article/10.1088/1757-899X/591/1/012061/pdf
DOI  :  10.1088/1757-899X/591/1/012061
学科分类:工业工程学
来源: IOP
PDF
【 摘 要 】

The paper is included in the strategy to use API facilities of CAD/CAE commercial applications and dedicated programming languages, such as GNU Octave, in order to create a set of instruments useful for the rapid development of the hybrid models. In this way, an exploratory investigation is presented regarding the most appropriate methods to use GNU Octave scientific programming facilities in C++ applications. Four software demonstrators are included in the paper, which may be used as an inspirational environment. Each program presents relevant aspects regarding the C++ API. The first demonstrator presents two methods to start the Octave interpreter, depending on its current version, and the use of the 'feval()' function for 'gcd()', 'acos()' and 'inv()'. The type of the input and output values of 'feval()' are 'octave-value-list', being necessary appropriate conversion functions. The second program is dedicated to the built-in-functions, being presented three case studies. The third demonstrator presents the conversion of the values from a user defined C++ type to the Octave types, i.e. the conversion of a two dimensional array into a 'Matrix' Octave type,which is tested using the 'norm()' function.The fourth program uses 'source-file(OCT-script-file)', which executes the commands in the OCT-script-file\The content of this file is written from a string and it is either a set of Octave commands, or the name of another Octave script file which is executed. We have solutions to minimise the access time spent due to the frequently write operation on the disk. We plan to continue our tests in order to find the best methods to use the GNU plotting facilities to develop graphical interpreters.

【 预 览 】
附件列表
Files Size Format View
Including GNU Octave in a numerical programming C++ rapid development software context for research models 865KB PDF download
  文献评价指标  
  下载次数:13次 浏览次数:24次