rlst/operator/space/dual_space.rs
1//! Dual space
2use super::{ElementView, LinearSpace};
3use crate::dense::types::RlstResult;
4
5/// A dual space
6pub trait DualSpace: LinearSpace {
7 /// Space type
8 type Space: LinearSpace<F = Self::F>;
9
10 /// Dual pairing
11 fn dual_pairing(
12 &self,
13 x: ElementView<Self>,
14 other: ElementView<Self::Space>,
15 ) -> RlstResult<Self::F>;
16}