|
|
template<typename TargetType , typename Vector > |
| const Vector & | pm::convert_to (const GenericVector< Vector, TargetType > &v) |
| | explicit conversion of vector elements to another type
|
| |
|
template<typename E > |
| const SameElementVector< const E & > | pm::same_element_vector (const E &x, int dim=0) |
| | Create a vector with all entries equal to the given element x.
|
| |
|
template<typename E > |
| const SameElementVector< const E & > | pm::ones_vector (int dim=0) |
| | Create a vector with all entries equal to 1.
|
| |
|
template<typename E > |
| const SameElementVector< const E & > | pm::zero_vector (int dim=0) |
| | Create a vector with all entries equal to 0.
|
| |
| template<typename E , typename TSet > |
| std::enable_if< Set_with_dim_helper< unwary_t< TSet > >::value, const SameElementSparseVector< const unwary_t< TSet > &, const E & > >::type | pm::same_element_sparse_vector (const GenericSet< TSet, int > &s, const E &x) |
| |