Constructors functions

Constructors functions

Description

Create scalars, vectors, or matrices

  • diag - Get diagonal elements of matrix or create diagonal matrix.

  • eps - Creates an epsilon (machine precision)

  • eye - Creates an identity matrix.

  • i - Pure Imaginary number.

  • Inf - Infinity

  • NaN - Creates an Not-a-Number

  • ones - Creates an matrix made of ones.

  • pi - Ratio of circle's circumference to its diameter.

  • zeros - Creates an matrix made of zeros.

Last updated