Class sdm::VectorInterface

template <typename I, typename T>

Class List > sdm > VectorInterface

The vector interface. To be considered as a vector in SDM'Studio, a class must implement all the functions of the interface. More...

  • #include <vector_interface.hpp>

Inherited by the following classes: sdm::sdmsVector

Public Functions

Type Name
virtual void addValueAt (const I & index, const T & value) = 0
virtual I argmax () = 0
virtual I argmin () = 0
virtual T at (const I & index) const = 0
virtual std::vector< I > getIndexes () const = 0
virtual T getValueAt (const I & index) const = 0
virtual T max () = 0
virtual T min () = 0
virtual void setValueAt (const I & index, const T & value) = 0
virtual size_t size () const = 0
virtual std::string str () const = 0

Detailed Description

Template parameters:

  • I Type of the index.
  • T Type of the values.

Public Functions Documentation

function addValueAt

virtual void sdm::VectorInterface::addValueAt (
    const I & index,
    const T & value
) = 0

function argmax

virtual I sdm::VectorInterface::argmax () = 0

function argmin

virtual I sdm::VectorInterface::argmin () = 0

function at

virtual T sdm::VectorInterface::at (
    const I & index
) const = 0

function getIndexes

virtual std::vector< I > sdm::VectorInterface::getIndexes () const = 0

function getValueAt

virtual T sdm::VectorInterface::getValueAt (
    const I & index
) const = 0

function max

virtual T sdm::VectorInterface::max () = 0

function min

virtual T sdm::VectorInterface::min () = 0

function setValueAt

virtual void sdm::VectorInterface::setValueAt (
    const I & index,
    const T & value
) = 0

function size

virtual size_t sdm::VectorInterface::size () const = 0

function str

virtual std::string sdm::VectorInterface::str () const = 0

The documentation for this class was generated from the following file src/sdm/utils/linear_algebra/vector_interface.hpp