SourcePro® API Reference Guide

 
List of all members | Public Member Functions

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< 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 © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.