template<typename T, int N>
class drake::systems::MyVector< T, N >
A simple subclass of BasicVector<T> for testing, particularly for cases where BasicVector subtyping must be preserved through the framework.
|
| MyVector () |
| Constructs an uninitialized N-vector. More...
|
|
| MyVector (const VectorX< T > &data) |
| Constructs from a variable-length vector whose length must be N. More...
|
|
| MyVector (const Eigen::Matrix< T, N, 1 > &data) |
| Constructs from a fixed-size Eigen VectorN. More...
|
|
std::unique_ptr< MyVector< T, N > > | Clone () const |
| Shadows the base class Clone() method to change the return type, so that this can be used in copyable_unique_ptr<MyVector> and Value<MyVector> . More...
|
|
|
| MyVector (const MyVector &)=delete |
|
MyVector & | operator= (const MyVector &)=delete |
|
| MyVector (MyVector &&)=delete |
|
MyVector & | operator= (MyVector &&)=delete |
|
| BasicVector ()=default |
| Constructs an empty BasicVector. More...
|
|
| BasicVector (int size) |
| Initializes with the given size using the drake::dummy_value<T>, which is NaN when T = double. More...
|
|
| BasicVector (VectorX< T > vec) |
| Constructs a BasicVector with the specified vec data. More...
|
|
| BasicVector (const std::initializer_list< T > &init) |
| Constructs a BasicVector whose elements are the elements of init . More...
|
|
int | size () const final |
| Returns the number of elements in the vector. More...
|
|
void | set_value (const Eigen::Ref< const VectorX< T >> &value) |
| Sets the vector to the given value. More...
|
|
const VectorX< T > & | value () const |
| Returns a const reference to the contained VectorX<T> . More...
|
|
Eigen::VectorBlock< VectorX< T > > | get_mutable_value () |
| Returns the entire vector as a mutable Eigen::VectorBlock, which allows mutation of the values, but does not allow resize() to be invoked on the returned object. More...
|
|
void | SetFromVector (const Eigen::Ref< const VectorX< T >> &value) final |
| Replaces the entire vector with the contents of value . More...
|
|
VectorX< T > | CopyToVector () const final |
| Copies this entire VectorBase into a contiguous Eigen Vector. More...
|
|
void | ScaleAndAddToVector (const T &scale, EigenPtr< VectorX< T >> vec) const final |
| Adds a scaled version of this vector to Eigen vector vec . More...
|
|
void | SetZero () final |
| Sets all elements of this vector to zero. More...
|
|
std::unique_ptr< BasicVector< T > > | Clone () const |
| Copies the entire vector to a new BasicVector, with the same concrete implementation type. More...
|
|
Eigen::VectorBlock< const VectorX< T > > | get_value () const |
| (Don't use this in new code) Returns the entire vector as a const Eigen::VectorBlock. More...
|
|
| BasicVector (const BasicVector &)=delete |
|
BasicVector & | operator= (const BasicVector &)=delete |
|
| BasicVector (BasicVector &&)=delete |
|
BasicVector & | operator= (BasicVector &&)=delete |
|
virtual | ~VectorBase () |
|
T & | operator[] (int index) |
| Returns the element at the given index in the vector. More...
|
|
const T & | operator[] (int index) const |
| Returns the element at the given index in the vector. More...
|
|
const T & | GetAtIndex (int index) const |
| Returns the element at the given index in the vector. More...
|
|
T & | GetAtIndex (int index) |
| Returns the element at the given index in the vector. More...
|
|
void | SetAtIndex (int index, const T &value) |
| Replaces the state at the given index with the value. More...
|
|
virtual void | SetFrom (const VectorBase< T > &value) |
| Replaces the entire vector with the contents of value . More...
|
|
virtual void | CopyToPreSizedVector (EigenPtr< VectorX< T >> vec) const |
| Copies this entire VectorBase into a pre-sized Eigen Vector. More...
|
|
VectorBase & | PlusEqScaled (const T &scale, const VectorBase< T > &rhs) |
| Add in scaled vector rhs to this vector. More...
|
|
VectorBase & | PlusEqScaled (const std::initializer_list< std::pair< T, const VectorBase< T > & >> &rhs_scale) |
| Add in multiple scaled vectors to this vector. More...
|
|
VectorBase & | operator+= (const VectorBase< T > &rhs) |
| Add in vector rhs to this vector. More...
|
|
VectorBase & | operator-= (const VectorBase< T > &rhs) |
| Subtract in vector rhs to this vector. More...
|
|
virtual void | GetElementBounds (Eigen::VectorXd *lower, Eigen::VectorXd *upper) const |
| Get the bounds for the elements. More...
|
|
| VectorBase (const VectorBase &)=delete |
|
VectorBase & | operator= (const VectorBase &)=delete |
|
| VectorBase (VectorBase &&)=delete |
|
VectorBase & | operator= (VectorBase &&)=delete |
|