Skip to main content

nominal_api/conjure/objects/scout/compute/api/
acos.rs

1/// Computes the arccosine of each value, returning radians.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    conjure_object::private::DeriveWith
8)]
9#[serde(crate = "conjure_object::serde")]
10#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
11#[conjure_object::private::staged_builder::staged_builder]
12#[builder(crate = conjure_object::private::staged_builder, update, inline)]
13pub struct Acos {
14    #[builder(custom(type = super::NumericSeries, convert = Box::new))]
15    #[serde(rename = "x")]
16    x: Box<super::NumericSeries>,
17}
18impl Acos {
19    /// Constructs a new instance of the type.
20    #[inline]
21    pub fn new(x: super::NumericSeries) -> Self {
22        Self::builder().x(x).build()
23    }
24    /// Input numeric series (values in [-1, 1]).
25    #[inline]
26    pub fn x(&self) -> &super::NumericSeries {
27        &*self.x
28    }
29}