pub enum TensorExpression {
KroneckerDeltas(Vec<[usize; 2]>),
DotProduct {
terms: Vec<Expression>,
rank_combinations: Vec<HashMap<usize, String>>,
},
DirectProduct(Vec<Expression>),
}
Variants§
Implementations§
source§impl TensorExpression
impl TensorExpression
pub fn assign(self, variables: &HashMap<&str, ConstantValue>) -> Expression
source§impl TensorExpression
impl TensorExpression
pub fn differential(&self, variable_ids: &[&str]) -> Vec<Expression>
source§impl TensorExpression
impl TensorExpression
pub fn variable_ids(&self) -> HashSet<&str>
Trait Implementations§
source§impl Clone for TensorExpression
impl Clone for TensorExpression
source§fn clone(&self) -> TensorExpression
fn clone(&self) -> TensorExpression
Returns a copy 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 Debug for TensorExpression
impl Debug for TensorExpression
source§impl<'de> Deserialize<'de> for TensorExpression
impl<'de> Deserialize<'de> for TensorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<TensorExpression> for Expression
impl From<TensorExpression> for Expression
source§fn from(t: TensorExpression) -> Self
fn from(t: TensorExpression) -> Self
Converts to this type from the input type.
source§impl PartialEq<TensorExpression> for TensorExpression
impl PartialEq<TensorExpression> for TensorExpression
source§fn eq(&self, other: &TensorExpression) -> bool
fn eq(&self, other: &TensorExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.