Constructors functions

Constructors functions

Description

Create scalars, vectors, or matrices

  • Inf - Infinity
  • NaN - Creates an Not-a-Number
  • 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.
  • ones - Creates an matrix made of ones.
  • pi - Ratio of circle's circumference to its diameter.
  • zeros - Creates an matrix made of zeros.