|
| | identity_operator (void) |
| |
| | identity_operator (IndexType num_rows, IndexType num_cols) |
| |
| template<typename DerivedPolicy , typename VectorType1 , typename VectorType2 > |
| void | operator() (thrust::execution_policy< DerivedPolicy > &exec, const VectorType1 &x, VectorType2 &y) const |
| | Apply the identity operator to vector x using an explicit execution policy.
|
| |
| template<typename VectorType1 , typename VectorType2 > |
| void | operator() (const VectorType1 &x, VectorType2 &y) const |
| |
| | linear_operator (void) |
| |
| | linear_operator (IndexType num_rows, IndexType num_cols) |
| |
| | linear_operator (IndexType num_rows, IndexType num_cols, IndexType num_entries) |
| |
template<typename ValueType, typename MemorySpace, typename IndexType = int>
class cusp::identity_operator< ValueType, MemorySpace, IndexType >
Simple identity operator.
- Template Parameters
-
| IndexType | Type used for operator indices (e.g. int). |
| ValueType | Type used for operator values (e.g. float). |
| MemorySpace | A memory space (e.g. cusp::host_memory or cusp::device_memory) |
- Overview
- A
linear operator that copies the input vector to the output vector unchanged. Corresponds to the identity matrix (I).
- Example
- The following code snippet demonstrates using the identity operator.
int main(void)
{
const int N = 4;
A(x,y);
}
The array1d class is a 1D vector container that may contain elements stored in "host" or "device" mem...
Simple identity operator.
void print(const Printable &p)
print a textual representation of an object
Abstract interface for iterative solvers.
Print textual representation of an object.
Definition at line 183 of file linear_operator.h.
template<typename ValueType , typename MemorySpace , typename IndexType = int>
template<typename VectorType1 , typename VectorType2 >
| void cusp::identity_operator< ValueType, MemorySpace, IndexType >::operator() |
( |
const VectorType1 & |
x, |
|
|
VectorType2 & |
y |
|
) |
| const |
|
inline |
Apply the identity_operator to vector x and produce vector y.
- Template Parameters
-
| VectorType1 | Type of the input vector |
| VectorType2 | Type of the output vector |
- Parameters
-
| x | Input vector to copy. |
| y | Output vector to produce. |
Definition at line 228 of file linear_operator.h.
template<typename ValueType , typename MemorySpace , typename IndexType = int>
template<typename DerivedPolicy , typename VectorType1 , typename VectorType2 >
| void cusp::identity_operator< ValueType, MemorySpace, IndexType >::operator() |
( |
thrust::execution_policy< DerivedPolicy > & |
exec, |
|
|
const VectorType1 & |
x, |
|
|
VectorType2 & |
y |
|
) |
| const |
|
inline |
Apply the identity operator to vector x using an explicit execution policy.
- Template Parameters
-
| DerivedPolicy | execution policy |
| VectorType1 | Type of the input vector |
| VectorType2 | Type of the output vector |
- Parameters
-
| exec | the execution policy |
| x | input vector |
| y | output vector |
Definition at line 214 of file linear_operator.h.