84 #ifdef TNT_UNROLL_LOOPS
110 #ifdef TNT_UNROLL_LOOPS
114 for (i=0; i<N4; i+=4)
122 for (i=N4; i< N; i++)
188 std::istringstream ins(s);
201 if (
n_ == N)
return *
this;
249 #ifdef TNT_BOUNDS_CHECK
258 #ifdef TNT_BOUNDS_CHECK
267 #ifdef TNT_BOUNDS_CHECK
276 #ifdef TNT_BOUNDS_CHECK
304 s << A[i] <<
" " <<
"\n";
318 if ( !(N == A.
size() ))
346 tmp[i] = A[i] + B[i];
363 tmp[i] = A[i] - B[i];
380 tmp[i] = A[i] * B[i];
390 assert(N == B.
dim());
const_reference operator[](Subscript i) const
Definition: tnt_vec.h:274
Vector(Subscript N, char *s)
Definition: tnt_vec.h:185
T value_type
Definition: tnt_vec.h:49
const T * const_iterator
Definition: tnt_vec.h:54
T * iterator
Definition: tnt_vec.h:52
void destroy()
Definition: tnt_vec.h:134
Subscript size() const
Definition: tnt_vec.h:241
const iterator end() const
Definition: tnt_vec.h:154
Subscript n_
Definition: tnt_vec.h:62
Vector()
Definition: tnt_vec.h:165
const iterator begin() const
Definition: tnt_vec.h:153
void set(const T &val)
Definition: tnt_vec.h:105
reference operator[](Subscript i)
Definition: tnt_vec.h:265
Vector< T > & newsize(Subscript N)
Definition: tnt_vec.h:199
T * pointer
Definition: tnt_vec.h:51
void copy(const T *v)
Definition: tnt_vec.h:79
void initialize(Subscript N)
Definition: tnt_vec.h:67
T * vm1_
Definition: tnt_vec.h:61
T & reference
Definition: tnt_vec.h:53
Vector(const Vector< T > &A)
Definition: tnt_vec.h:167
T * v_
Definition: tnt_vec.h:60
~Vector()
Definition: tnt_vec.h:158
Subscript size_type
Definition: tnt_vec.h:48
Subscript lbound() const
Definition: tnt_vec.h:57
Vector(Subscript N, const T &value=T())
Definition: tnt_vec.h:173
Vector(Subscript N, const T *v)
Definition: tnt_vec.h:179
Vector< T > & operator=(const T &scalar)
Definition: tnt_vec.h:230
iterator end()
Definition: tnt_vec.h:152
reference operator()(Subscript i)
Definition: tnt_vec.h:247
iterator begin()
Definition: tnt_vec.h:151
Vector< T > & operator=(const Vector< T > &A)
Definition: tnt_vec.h:212
T element_type
Definition: tnt_vec.h:50
Subscript dim() const
Definition: tnt_vec.h:236
const T & const_reference
Definition: tnt_vec.h:55
Definition: tnt_array1d.h:36
Array1D< T > operator+(const Array1D< T > &A, const Array1D< T > &B)
Definition: tnt_array1d_utils.h:64
T dot_prod(const Vector< T > &A, const Vector< T > &B)
Definition: tnt_vec.h:387
Array1D< T > operator*(const Array1D< T > &A, const Array1D< T > &B)
Definition: tnt_array1d_utils.h:107
Array1D< T > operator-(const Array1D< T > &A, const Array1D< T > &B)
Definition: tnt_array1d_utils.h:86
std::ostream & operator<<(std::ostream &s, const Array1D< T > &A)
Definition: tnt_array1d_utils.h:31
int Subscript
Definition: tnt_subscript.h:43
std::istream & operator>>(std::istream &s, Array1D< T > &A)
Definition: tnt_array1d_utils.h:49
T sum(const std::vector< T > &array, int start, int end)
Definition: essentiamath.h:117
#define NULL
Definition: tnt_i_refvec.h:33