SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

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

#include <rw/vector.h>

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

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

◆ length()

size_t RWVecView::length ( ) const
inline

Returns the number of elements in the vector.

◆ stride()

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