SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members | Public Member Functions
RWVecView Class Reference

A base class for mathematical vector classes. More...

#include <rw/vector.h>

Inheritance diagram for RWVecView:
RWDataView RWMathVec< T > RWMathVec< bool > RWMathVec< DComplex > RWMathVec< double > RWMathVec< int > RWMathVec< norm_type > RWMathVec< ret_type > RWMathVec< rt > RWMathVec< rw_lapack_int_t > RWMathVec< RWPivotType > RWMathVec< S > RWMathVec< size_t > RWMathVec< To > RWMathVec< typename rw_numeric_traits< TypeT >::norm_type > RWMathVec< TypeT >

Public Member Functions

size_t length () const
 
int stride () const
 

Additional Inherited Members

- Public Types inherited from RWDataView
enum  Storage { COLUMN_MAJOR, ROW_MAJOR, RWEITHER }
 

Detailed Description

A base class for vector classes.

Member Function Documentation

size_t RWVecView::length ( ) const
inline

Returns the number of elements in the vector.

int RWVecView::stride ( ) const
inline

Returns the distance between successive elements of the vector. The stride can be computed using &v[i+1]-&v[i].

Copyright © 2015 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.