Type Alias tc_state::collection::Tensor
source · pub type Tensor = Tensor<Txn, CacheBlock>;Expand description
An n-dimensional array
Aliased Type§
enum Tensor {
Dense(Dense<Txn<State>, CacheBlock>),
Sparse(Sparse<Txn<State>, CacheBlock>),
}Variants§
Dense(Dense<Txn<State>, CacheBlock>)
Sparse(Sparse<Txn<State>, CacheBlock>)
Trait Implementations§
source§impl TryCastFrom<State> for Tensor
impl TryCastFrom<State> for Tensor
source§fn can_cast_from(state: &State) -> bool
fn can_cast_from(state: &State) -> bool
Test if
value can be cast into Self.source§fn opt_cast_from(state: State) -> Option<Self>
fn opt_cast_from(state: State) -> Option<Self>
Returns
Some(Self) if the source value can be cast into Self, otherwise None.