Constructors functions

The Constructors module provides tools for creating fundamental numeric values, scalars, vectors, and matrices in Nelson.

It includes constants, identity and diagonal matrices, and special values such as infinity, NaN, and machine precision.

This module forms the basis for initializing data structures and performing mathematical and numerical computations.

Functions

  • 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.

Last updated

Was this helpful?