org.apache.ignite.ml.math.primitives.vector

## Interface Vector.Element

- Enclosing interface:
    Vector

      public static interface Vector.Element

  Holder for vector's element.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `get()` Gets element's value.
    `<T extends Serializable> T` | `getRaw()` Gets element's value.
    `int` | `index()` Gets element's index in the vector.
    `void` | `set(double val)` Sets element's value.
    `void` | `setRaw(Serializable val)` Sets any serializable object value.

- - ### Method Detail

    - #### get

          double get()

      Gets element's value.
      Returns:
        The value of this vector element.

    - #### index

          int index()

      Gets element's index in the vector.
      Returns:
        The index of this vector element.

    - #### set

          void set(double val)

      Sets element's value.
      Parameters:
        `val` - Value to set.

    - #### setRaw

          void setRaw(Serializable val)

      Sets any serializable object value.
      Parameters:
        `val` - Value to set.

    - #### getRaw

          <T extends Serializable> T getRaw()

      Gets element's value.
      Type Parameters:
        `T` - Type of expected value.
      Returns:
        The value of this vector element.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.12.0
Release Date | : January 10 2022