Mod_cpp: Absolute Value or Modulus of a Complex Number.

View source: R/RcppExports.R

Mod_cppR Documentation

Absolute Value or Modulus of a Complex Number.

Description

Computes the value of the Modulus.

Usage

Mod_cpp(x)

Arguments

x

A cx_vec.

Details

Consider a complex number defined as: z = x + i y with real x and y, The modulus is defined as: r = Mod(z) = \sqrt{(x^2 + y^2)}

Value

A vec containing the modulus for each element.


SMAC-Group/simts documentation built on Sept. 4, 2023, 5:25 a.m.