Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
documentation:language_reference:objects:matrix:functions:diagonal [2018/09/25 12:11] – created Simon Heinzedocumentation:language_reference:objects:matrix:functions:diagonal [2018/09/25 14:34] – Added Userdata Option Remark Simon Heinze
Line 4: Line 4:
 ### ###
 Matrix.Diagonal($\{x_1,x_2,...,x_n\}$) takes a list of $n$ numbers and returns an $n \times n$ diagonal matrix with the $x_i$ as entries. Matrix.Diagonal($\{x_1,x_2,...,x_n\}$) takes a list of $n$ numbers and returns an $n \times n$ diagonal matrix with the $x_i$ as entries.
 +
 +If the option "Userdata" is set to true (default is false) the output is returned as a pointer rather than a table of tables (compare //[[documentation:language_reference:objects:matrix:functions:ToUserdata|Matrix.ToUserdata()]]//).
 ### ###
  
Print/export