*/
//@{
/// Default constructor.
- TVector( uint N = 3, T data = ( T )0, int type = COL_VECTOR );
+ TVector( uint32_t N = 3, T data = ( T )0, int type = COL_VECTOR );
/// Copy constructor.
TVector( const TVector< T >& r );
/// Use this to treat an ANSI array as a TVector.
- TVector( T* block, uint N, bool copy = true, int type = COL_VECTOR );
+ TVector( T* block, uint32_t N, bool copy = true, int type = COL_VECTOR );
//@}
/// Destructor.
};
/// Size change
- void SetN( uint N );
+ void SetN( uint32_t N );
/** Assignation operators.
*
//@}
/// Reference operator.
- T& operator()( uint i ) {
+ T& operator()( uint32_t i ) {
return( _vector[ i ] );
};
/// ANSI (C/C++ array) reference.
return( _vector );
};
/// Vector's cardinality.
- uint GetN( ) {
+ uint32_t GetN( ) {
return( _N );
};
/// Vector's type (ROW_VECTOR/COL_VECTOR).
/// Memory block.
T* _vector;
/// Cardinality.
- uint _N;
+ uint32_t _N;
/// Type (ROW_VECTOR/COL_VECTOR).
int _type;
/// Have I created _vector?
// -----------------------------------------------------------------------------
template< class T >
- TVector< T >::TVector( uint N, T data, int type )
+ TVector< T >::TVector( uint32_t N, T data, int type )
{
_N = N;
_type = type;
// -----------------------------------------------------------------------------
template< class T >
- TVector< T >::TVector( T* block, uint N, bool copy, int type )
+ TVector< T >::TVector( T* block, uint32_t N, bool copy, int type )
{
_N = N;
_type = type;
// -----------------------------------------------------------------------------
template< class T >
- void TVector< T >::SetN( uint N )
+ void TVector< T >::SetN( uint32_t N )
{
if( _myMemory ) VectorFreeMemory< T >( _vector );
_N = N;
template< class T >
bool TVector< T >::operator==( const TVector< T >& r )
{
- uint i;
+ uint32_t i;
bool ret;
for(
template< class T >
bool TVector< T >::operator!=( const TVector< T >& r )
{
- uint i;
+ uint32_t i;
bool ret;
for(
TVector< T > TVector< T >::operator-( )
{
TVector< T > ret( _N );
- uint i;
+ uint32_t i;
for( i = 0; i < _N; ret._vector[ i ] = ( T )0 - _vector[ i ], i++ );
return( ret );