Go to the source code of this file.
Classes | |
class | CoinDenseVector< T > |
Dense Vector. More... | |
Functions | |
template<typename T > | |
void | CoinDenseVectorUnitTest (T dummy) |
A function that tests the methods in the CoinDenseVector class. More... | |
Arithmetic operators on dense vectors. | |
NOTE: Because these methods return an object (they can't return a reference, though they could return a pointer...) they are very inefficient... | |
template<typename T > | |
CoinDenseVector< T > | operator+ (const CoinDenseVector< T > &op1, const CoinDenseVector< T > &op2) |
Return the sum of two dense vectors. More... | |
template<typename T > | |
CoinDenseVector< T > | operator- (const CoinDenseVector< T > &op1, const CoinDenseVector< T > &op2) |
Return the difference of two dense vectors. More... | |
template<typename T > | |
CoinDenseVector< T > | operator* (const CoinDenseVector< T > &op1, const CoinDenseVector< T > &op2) |
Return the element-wise product of two dense vectors. More... | |
template<typename T > | |
CoinDenseVector< T > | operator/ (const CoinDenseVector< T > &op1, const CoinDenseVector< T > &op2) |
Return the element-wise ratio of two dense vectors. More... | |
Arithmetic operators on dense vector and a constant. | |
These functions create a dense vector as a result. That dense vector will have the same indices as | |
template<typename T > | |
CoinDenseVector< T > | operator+ (const CoinDenseVector< T > &op1, T value) |
Return the sum of a dense vector and a constant. More... | |
template<typename T > | |
CoinDenseVector< T > | operator- (const CoinDenseVector< T > &op1, T value) |
Return the difference of a dense vector and a constant. More... | |
template<typename T > | |
CoinDenseVector< T > | operator* (const CoinDenseVector< T > &op1, T value) |
Return the element-wise product of a dense vector and a constant. More... | |
template<typename T > | |
CoinDenseVector< T > | operator/ (const CoinDenseVector< T > &op1, T value) |
Return the element-wise ratio of a dense vector and a constant. More... | |
template<typename T > | |
CoinDenseVector< T > | operator+ (T value, const CoinDenseVector< T > &op1) |
Return the sum of a constant and a dense vector. More... | |
template<typename T > | |
CoinDenseVector< T > | operator- (T value, const CoinDenseVector< T > &op1) |
Return the difference of a constant and a dense vector. More... | |
template<typename T > | |
CoinDenseVector< T > | operator* (T value, const CoinDenseVector< T > &op1) |
Return the element-wise product of a constant and a dense vector. More... | |
template<typename T > | |
CoinDenseVector< T > | operator/ (T value, const CoinDenseVector< T > &op1) |
Return the element-wise ratio of a a constant and dense vector. More... | |
void CoinDenseVectorUnitTest | ( | T | dummy | ) |
A function that tests the methods in the CoinDenseVector class.
The only reason for it not to be a member method is that this way it doesn't have to be compiled into the library. And that's a gain, because the library should be compiled with optimization on, but this method should be compiled with debugging.
|
inline |
Return the sum of two dense vectors.
Definition at line 213 of file CoinDenseVector.hpp.
|
inline |
Return the difference of two dense vectors.
Definition at line 228 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise product of two dense vectors.
Definition at line 244 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise ratio of two dense vectors.
Definition at line 259 of file CoinDenseVector.hpp.
|
inline |
Return the sum of a dense vector and a constant.
Definition at line 280 of file CoinDenseVector.hpp.
|
inline |
Return the difference of a dense vector and a constant.
Definition at line 293 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise product of a dense vector and a constant.
Definition at line 306 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise ratio of a dense vector and a constant.
Definition at line 319 of file CoinDenseVector.hpp.
|
inline |
Return the sum of a constant and a dense vector.
Definition at line 332 of file CoinDenseVector.hpp.
|
inline |
Return the difference of a constant and a dense vector.
Definition at line 345 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise product of a constant and a dense vector.
Definition at line 358 of file CoinDenseVector.hpp.
|
inline |
Return the element-wise ratio of a a constant and dense vector.
Definition at line 371 of file CoinDenseVector.hpp.