pub struct Sdot2dOperation<'c> { /* private fields */ }
Expand description
A 2d.sdot
operation. Sdot op.
The two input vectors b
and c
have a 2D shape, consisting of either 2
or 4 rows, each row having length 4. This operation computes the pair-wise
dot-products of the rows of b
and c
and accumulates them with the
corresponding entry of a
:
res[i] := a[i] + dot_product(b[i, ...], c[i, ...])
Implementations§
source§impl<'c> Sdot2dOperation<'c>
impl<'c> Sdot2dOperation<'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>
) -> Sdot2dOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> Sdot2dOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn a(&self) -> Result<Value<'c, '_>, Error>
pub fn b(&self) -> Result<Value<'c, '_>, Error>
pub fn c(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<Sdot2dOperation<'c>> for Operation<'c>
impl<'c> From<Sdot2dOperation<'c>> for Operation<'c>
source§fn from(operation: Sdot2dOperation<'c>) -> Self
fn from(operation: Sdot2dOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for Sdot2dOperation<'c>
impl<'c> !Send for Sdot2dOperation<'c>
impl<'c> !Sync for Sdot2dOperation<'c>
impl<'c> Unpin for Sdot2dOperation<'c>
impl<'c> UnwindSafe for Sdot2dOperation<'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