Enum cagra::operators::Value [] [src]

pub enum Value<A: Scalar> {
    Scalar(A),
    Vector(Array1<A>),
    Matrix(Array2<A>),
}

Value in graph

Each node has a value in the following types:

  • Scalar
  • Vector (represented by Array1<A>)
  • Matrix (represented by Array2<A>)

These types are selected dynamically, and operators returns Err if it does not support the received value.

Variants

Methods

impl<A: Scalar> Value<A>
[src]

[src]

Return value if it is a scalar

[src]

Trait Implementations

impl<A: Debug + Scalar> Debug for Value<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Clone + Scalar> Clone for Value<A>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: Scalar> From<A> for Value<A>
[src]

[src]

Performs the conversion.

impl<A: Scalar> From<Array1<A>> for Value<A>
[src]

[src]

Performs the conversion.

impl<A: Scalar> From<Array2<A>> for Value<A>
[src]

[src]

Performs the conversion.