ADiMat Server | Interactive | Documentation | Downloads | Login

ADiMat Interactive

ADiMat Webinterface

Forward mode differentiation
Run adimat – forward mode

Differentiate a function in classic forward mode. The resulting code can be run either with one of the derivative classes, or in scalar mode.




































AST XML (XML output of parser)
Run toolchain adm

Returns the AST of the input in XML format. Some preprocessing is done on the output of the parser.


Brackets to horzcat/vertcat
Run toolchain brackets-to-hvcat

Translate instances of brackets [] to calls to the functions horzcat and/or vertcat.



Call graph
Run toolchain call-graph

Call graph in XML format.


Code metrics (ASCII)
Run toolchain code-metrics

Some code metrics and statistics in ASCII text format.


Code metrics (Latex)
Run toolchain code-metrics-latex

Some code metrics and statistics in Latex format.


Code metrics (XML)
Run toolchain code-metrics-xml

Some code metrics and statistics in XML format.


Function files list (user functions only)
Run toolchain dep-files

List of files with user functions used in the code.


Function list
Run toolchain functions

List of functions used in the code.


Function list (builtins only)
Run toolchain builtins

List of builtin functions used in the code.


Function list (user functions only)
Run toolchain user-functions

List of user functions used in the code.


Help text
Run toolchain help

Get the help message from a function m-file.


Horzcat/vertcat to brackets
Run toolchain hvcat-to-brackets

Rewrite calls of functions horzcat and/or vertcat with brackets [].



Indices to subsref/subsasgn
Run toolchain ind-to-subs

Translate index expression to calls to the functions subsref (RHSs) and subsasgn (LHSs).




Nested to sub function
Run toolchain nested-to-sub-function

Change nested functions to sub functions. This only works when the nested function only reads variables from the superior scope. These are then passed as additional arguments.



New forward mode differentiation (experimental)
Run toolchain forward-ad

Transforms the code in forward mode AD.





Normalize for loops
Run toolchain for-insert-iteration-indexvar

Canonicalize for loops to the form for i=first:last.



Outline functions
Run toolchain basic-block-to-call

Translate any basic block to a function call of the form [v1 v2 v3] = f(v1, v2, v3, ...).



Parse and unparse program
Run toolchain pretty-print

Returns the same program, just parsed and unparsed back to MATLAB source. All the functions will be in one file, you can use parameter output-mode=split-all to write each function to a different file.



Preprocessing for new forward mode differentiation
Run toolchain prepare-fm

Transforms the code in forward mode AD.



Preprocessing for reverse mode differentiation
Run toolchain prepare-rm

Transforms the code in reverse mode AD.



Rename
Run toolchain rename

Renames all identifiers given by parameter "from" to the value of parameter "to".





Reverse mode differentiation
Run toolchain reverse-ad

Transforms the code in reverse mode AD.





Taylor forward mode differentiation (experimental)
Run toolchain taylor-ad

Transforms the code in taylor forward mode AD.



XAIF source
Run toolchain xaif

Transforms the code to XAIF XML format.


XML output of parser
Run toolchain null

Returns the raw XML output of the parser in the adimat tool. Results of activity analysis for each variable and the function call graph are also included.


Transformation expert mode
Run transformations – New forward or reverse mode

Differentiate a function in reverse mode. This code can be run either with one of the derivative classes, or in scalar mode.

For the new experimental classless vector forward mode, select "forward" below. This code can be run with by setting adimat_derivclass('vector_directderivs').







Version information
Show version

Return the version of ADiMat.