template_of_document

This is a template for developers to write a document for their user-defined function, which is important and useful for beginners to learn how to call the function. The work might be boring and dull but significant at the same time.

Some basic rules are listed in this file, including the use of words, phrases, syntax, etc. Hope that it can assist you to write a formal, neat, and easy-to-understand document that is also consistent with ours.

Please note that there are just some suggestions rather than laws or regulations. To make yourself understood by other users is always the first thing that you need to concern about.

Please be free to @CuiiGen if you have any questions. It's quite a pleasure for us to have you.

Syntax

Different ways to call the function should be listed as follows.

Description

Here comes the main part of this file. Detailed descriptions of the function should be introduced. Differences between the various ways to call the function should also be explained.

Verbs

To maintain the consistency of all the documents, the following verbs should be used as much as possible.

VerbExampleComment
returnlen() returns the length of an array or list. 
compute/calculateinv(X) computes the inverse of square matrix X."compute" and "calculate" are almost always interchangeable. So either of them is fine.
specifyfunction(____, method='algorithm') specifies the algorithm to use in computing.(be) specified by something / specify variable as something / adjective.
acceptdet(A) accepts a square matrix. 

"argument" or "parameter"

Besides, pay attention to these two terms, "argument" and "parameter", which are often used interchangeably.

More information is available on argument vs. parameter and Differences Between Parameters and Arguments (Visual Basic).

Tips about using matrix, vector, array, and list

Here are also some commonly-used terms that may be helpful to you.

By the way, "matrix" and "vector" are often seen in the functions that refer to theorems or equations in Matrix Theory, a branch of mathematics that focuses on the study of matrices. In other cases, "array" is more common, and "list" is a bit rare.

Examples

Here is the first example of the user-defined function. Basic ways to call it should be illustrated.


Here is the second example of the user-defined function, if needed.

Input Arguments

Detailed introduction of all the input arguments.

arg1 —— A summary description, specified as an array, list, float, integer, or other datatypes else.

Detailed descriptions.


arg2 —— A summary description, specified as an array, list, float, integer, or other datatypes else.

Detailed descriptions.

Output Arguments

Detailed introduction of all the output arguments if needed.

More About

More information that users need to know or they may want to know. For example, the detailed derivation of an algorithm or theorem.

It will be great if you'd like to convert this file from Markdown to HTML to make sure it can be rendered properly online. The procedure is shown as follows.

  1. Download Typora from its official website and then install it.
  2. Download the theme "Vue" and install it with the help of this guide.
  3. Download and install the Pandoc.
  4. Open this file in Typora and then export it in the format of HTML.
  5. Save it to /2_tutorial/ and modify README.md correspondingly. Attention that you also need to convert the modified README.md to the ./docs/index.html.

References

Last but not least, all the literature, reports, online websites, or other supporting materials that you referred to should be listed at the end of this file.

BibTeX bibliography style: IEEEtran is recommended.