Struct russell_tensor::Tensor2[][src]

pub struct Tensor2 { /* fields omitted */ }
Expand description

Implements a second-order tensor, symmetric or not

Implementations

Returns a new Tensor2, symmetric or not, with 0-valued components

Returns a new Tensor2 constructed from the “standard” components

Arguments

  • tt - the standard components given with respect to an orthonormal Cartesian basis
  • symmetric - this is a symmetric tensor

Panics

This method panics symmetric=true but the components are not symmetric.

Returns a 2D array with the standard components of this second-order tensor

Trait Implementations

Implements the Display trait

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.