|
| DeterministicDotProductOp (const T *a_, const T *b_, const SizeType binCount_, const SizeType arraySize_, T *reducetmp_) |
|
void | operator() (const SizeRange &range) const |
|
| Vector () |
| Construct an empty vector.
|
|
| Vector (SizeType n) |
| Construct a vector of n elements, with uninitialized values.
|
|
| Vector (SizeType n, const ValueType &val) |
| Construct a vector of n elements and initialize each element to the given value.
|
|
| Vector (const Vector &) |
| Deep copy the given vector.
|
|
| ~Vector () |
|
Vector & | operator= (const Vector &) |
| Deep copy the given vector.
|
|
SizeType | size () const |
| Return the number of elements in this vector.
|
|
bool | empty () const |
| Return true if this vector has no elements.
|
|
void | resize (SizeType n) |
| Reset this vector to have n elements, with uninitialized values.
|
|
void | swap (Vector &other) |
| Swap internal storage with another vector, which need not be the same size.
|
|
void | fill (const ValueType &value) |
| Set all elements of this vector to value.
|
|
void | scale (const Scalar &s) |
| Multiply each element of this vector by s.
|
|
Vector & | operator*= (const Scalar &s) |
|
ValueType | dot (const Vector &) const |
| Return the dot product of this vector with the given vector, which must be the same size.
|
|
ValueType | infNorm () const |
| Return the infinity norm of this vector.
|
|
ValueType | l2Norm () const |
| Return the L2 norm of this vector.
|
|
bool | isFinite () const |
| Return true if every element of this vector has a finite value.
|
|
bool | eq (const Vector< OtherValueType > &other, ValueType eps=Tolerance< ValueType >::value()) const |
| Return true if this vector is equivalent to the given vector to within the specified tolerance.
|
|
std::string | str () const |
| Return a string representation of this vector.
|
|
T & | at (SizeType i) |
| Return the value of this vector's ith element.
|
|
const T & | at (SizeType i) const |
|
T & | operator[] (SizeType i) |
|
const T & | operator[] (SizeType i) const |
|
T * | data () |
| Return a pointer to this vector's elements.
|
|
const T * | data () const |
|
const T * | constData () const |
|