Type Alias extendr_api::scalar::rcplx_full::c64

source ·
pub type c64 = Complex<f64>;

Aliased Type§

struct c64 {
    pub re: f64,
    pub im: f64,
}

Fields§

§re: f64

Real portion of the complex number

§im: f64

Imaginary portion of the complex number

Trait Implementations§

source§

impl Add<Rcplx> for c64

source§

fn add(self, rhs: Rcplx) -> Self::Output

Add two Rcplx values or an option of c64.

source§

type Output = Rcplx

The resulting type after applying the + operator.
source§

impl CanBeNA for c64

source§

fn is_na(&self) -> bool

source§

fn na() -> c64

source§

impl Div<Rcplx> for c64

source§

fn div(self, rhs: Rcplx) -> Self::Output

Divide two Rcplx values or an option of c64.

source§

type Output = Rcplx

The resulting type after applying the / operator.
source§

impl Mul<Rcplx> for c64

source§

fn mul(self, rhs: Rcplx) -> Self::Output

Multiply two Rcplx values or an option of c64.

source§

type Output = Rcplx

The resulting type after applying the * operator.
source§

impl PartialEq<Rcplx> for c64

use extendr_api::prelude::*;
test! {
    assert!(<c64>::default().eq(&<Rcplx>::default()));
}
source§

fn eq(&self, other: &Rcplx) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub<Rcplx> for c64

source§

fn sub(self, rhs: Rcplx) -> Self::Output

Subtract two Rcplx values or an option of c64.

source§

type Output = Rcplx

The resulting type after applying the - operator.
source§

impl ToVectorValue for &c64

source§

fn sexptype() -> SEXPTYPE

source§

fn to_complex(&self) -> Rcomplex

source§

fn to_real(&self) -> f64
where Self: Sized,

source§

fn to_integer(&self) -> i32
where Self: Sized,

source§

fn to_logical(&self) -> i32
where Self: Sized,

source§

fn to_raw(&self) -> u8
where Self: Sized,

source§

fn to_sexp(&self) -> SEXP
where Self: Sized,

source§

impl ToVectorValue for c64

source§

fn sexptype() -> SEXPTYPE

source§

fn to_complex(&self) -> Rcomplex

source§

fn to_real(&self) -> f64
where Self: Sized,

source§

fn to_integer(&self) -> i32
where Self: Sized,

source§

fn to_logical(&self) -> i32
where Self: Sized,

source§

fn to_raw(&self) -> u8
where Self: Sized,

source§

fn to_sexp(&self) -> SEXP
where Self: Sized,