pub struct ErfcOperation<'c> { /* private fields */ }Expand description
An erfc operation. Complementary error function of the specified value.
The erfc operation computes the complementary error function, defined as
1-erf(x). This function is part of libm and is needed for accuracy, since
simply calculating 1-erf(x) when x is close to 1 will give inaccurate results.
It takes one operand of floating point type (i.e., scalar,
tensor or vector) and returns one result of the same type. It has no
standard attributes.
Example:
// Scalar error function value.
%a = math.erfc %b : f64Implementations§
Source§impl<'c> ErfcOperation<'c>
impl<'c> ErfcOperation<'c>
Sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
Sourcepub fn builder(
context: &'c Context,
location: Location<'c>,
) -> ErfcOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> ErfcOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
pub fn fastmath(&self) -> Result<Attribute<'c>, Error>
pub fn set_fastmath(&mut self, value: Attribute<'c>)
pub fn remove_fastmath(&mut self) -> Result<(), Error>
Trait Implementations§
Source§impl<'c> Clone for ErfcOperation<'c>
impl<'c> Clone for ErfcOperation<'c>
Source§fn clone(&self) -> ErfcOperation<'c>
fn clone(&self) -> ErfcOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for ErfcOperation<'c>
impl<'c> Debug for ErfcOperation<'c>
Source§impl<'b> From<ErfcOperation<'b>> for MathDialectOperation<'b>
impl<'b> From<ErfcOperation<'b>> for MathDialectOperation<'b>
Source§fn from(op: ErfcOperation<'b>) -> Self
fn from(op: ErfcOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<ErfcOperation<'c>> for Operation<'c>
impl<'c> From<ErfcOperation<'c>> for Operation<'c>
Source§fn from(operation: ErfcOperation<'c>) -> Self
fn from(operation: ErfcOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for ErfcOperation<'c>
impl<'c> PartialEq for ErfcOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for ErfcOperation<'c>
impl<'c> TryFrom<Operation<'c>> for ErfcOperation<'c>
impl<'c> Eq for ErfcOperation<'c>
impl<'c> StructuralPartialEq for ErfcOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for ErfcOperation<'c>
impl<'c> RefUnwindSafe for ErfcOperation<'c>
impl<'c> !Send for ErfcOperation<'c>
impl<'c> !Sync for ErfcOperation<'c>
impl<'c> Unpin for ErfcOperation<'c>
impl<'c> UnwindSafe for ErfcOperation<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more