Category:Functions

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" width="100%" background-color="transparent"
+
{{DavinciWiki_Category|
| style="border:none; margin:none; padding:none;" valign="top" | <!-- LEFT COLUMN -->
+
Davinci functions come from three sources:
<div style="border:0; margin:0.2em 0 0.2em 0.2em; ">
+
#The [[:Category:Davinci Core| Davinci Core]] contains routines written and compiled in C accessible from the command line.  These functions are included with the Davinci executable and are not editableMost of the math, matrix, I/O, and data manipulation functions are part of the Davinci Core.  Examples include [[sum]] and [[sqrt]].  
{{Box| Types of Davinci Functions |
+
#[[:Category:User Defined Functions|User Defined Functions]] are scripts written in the davinci language and may call other functions in their code.  The script code is viewable and editable during each session of davinci.  By convention, User Defined Functions are contained in .dvrc (davinci resource) files and must be [[source|sourced]] to be used.   Examples include [[resample]] and [[tb2rad]].
There are three types of functions avaiable in davinci:
+
#[[:Category:Modules|Modular Functions]] are written in C and collected in optional, loadable modules.  Modules must be loaded to be accessible. These functions are not editable. Examples include [[thm.rectify]] and [[thm.deplaid ]].}}
#Scripts are user defined functions which can contain various math and array manipulations.  These functions are generally the easiest to program and are very flexibleSome limitations include their inability to handle very large arrays due to poor memory handing.  Anything that can be done on a command line in davinci can be done in a script. An example will be given below.
+
#Command line scripts are also user defined functions which can be run from the command propmt. They are usually a single file which contains all of the necessary steps to read data and write output.
+
#C-programs are the most complicated and difficult method to program in davinci.  Built in functions like [[sum]] are programmed in C. Other functions such as [[rectify]] are also programmed in modules.  Modules are an easy way for end users to program davinci C functions.
+
 
+
}}
+
</div>
+
| style="border: none; margin:none; padding:none;" width="20%" valign="top" | <!-- RIGHT COLUMN -->
+
<div style="border:0; margin:0.2em;" valign="top">
+
{{DavinciWiki NavBar}}
+
</div>
+
|}
+

Latest revision as of 16:19, 8 October 2013

Description

Davinci functions come from three sources:

  1. The Davinci Core contains routines written and compiled in C accessible from the command line. These functions are included with the Davinci executable and are not editable. Most of the math, matrix, I/O, and data manipulation functions are part of the Davinci Core. Examples include sum and sqrt.
  2. User Defined Functions are scripts written in the davinci language and may call other functions in their code. The script code is viewable and editable during each session of davinci. By convention, User Defined Functions are contained in .dvrc (davinci resource) files and must be sourced to be used. Examples include resample and tb2rad.
  3. Modular Functions are written in C and collected in optional, loadable modules. Modules must be loaded to be accessible. These functions are not editable. Examples include thm.rectify and thm.deplaid .



Scroll Down for a list of functions in this category

Last Updated: Feb-2011


More News

DavinciWiki Navigation Bar

Pages in category "Functions"

The following 200 pages are in this category, out of 612 total.

(previous 200) (next 200)

A

B

C

C cont.

D

D cont.

E

F

G

(previous 200) (next 200)
Personal tools