fmatvec 0.0.0

Public Member Functions | List of all members
fmatvec::Range< Var, Var > Class Template Reference

This is an index class for creating submatrices. More...

`#include <range.h>`

## Public Member Functions

| Range ()
| Standard constructor. More...
| Range (int i1_)
| Regular constructor. More...
| Range (int i1_, int i2_)
| Regular constructor. More...
int | start () const
| First element. More...
int | end () const
| Last element. More...
int | size () const
| Size. More...

## Detailed Description

### template<>
class fmatvec::Range< Var, Var >

This is an index class for creating submatrices.

The index class contains indices defining the first and the last element.

## Constructor & Destructor Documentation

## ◆ Range() [1/3]

fmatvec::Range< Var, Var >::Range | ( |  | ) |

inline

Standard constructor.

Constructs an index object with both elements set to zero.

## ◆ Range() [2/3]

fmatvec::Range< Var, Var >::Range | ( | int | i1_ | ) |

inline

Regular constructor.

Constructs an index object with equal first and last element.

Parameters

  i1_ | First and last element.

## ◆ Range() [3/3]

fmatvec::Range< Var, Var >::Range | ( | int | i1_,
|  | int | i2_
| ) |  |

inline

Regular constructor.

Constructs an index object with first and last element.

Parameters

  i1_ | First index.
  i2_ | Last index.

## Member Function Documentation

## ◆ end()

int fmatvec::Range< Var, Var >::end | ( |  | ) | const

inline

Last element.

Returns
  Returns the last element.

## ◆ size()

int fmatvec::Range< Var, Var >::size | ( |  | ) | const

inline

Size.

Returns
  Returns the Size.

## ◆ start()

int fmatvec::Range< Var, Var >::start | ( |  | ) | const

inline

First element.

Returns
  Returns the first element.

The documentation for this class was generated from the following file:

- /mbsim-env/fmatvec/fmatvec/range.h