pub type c64 = Complex<f64>;
struct c64 {
pub re: f64,
pub im: f64,
}
Real portion of the complex number
Imaginary portion of the complex number
Add two Rcplx values or an option of c64.
The resulting type after applying the +
operator.
Divide two Rcplx values or an option of c64.
The resulting type after applying the /
operator.
Multiply two Rcplx values or an option of c64.
The resulting type after applying the *
operator.
use extendr_api::prelude::*;
test! {
assert!(<c64>::default().eq(&<Rcplx>::default()));
}
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Subtract two Rcplx values or an option of c64.
The resulting type after applying the -
operator.