23 #include <cusp/detail/config.h>
25 #include <cusp/detail/format.h>
26 #include <cusp/exception.h>
28 #include <cusp/detail/matrix_base.h>
110 template <
typename ValueType,
typename MemorySpace,
typename IndexType=
int>
111 class linear_operator :
public cusp::detail::matrix_base<IndexType,ValueType,MemorySpace,cusp::unknown_format>
115 typedef cusp::detail::matrix_base<IndexType,ValueType,MemorySpace,cusp::unknown_format> Parent;
130 : Parent(num_rows, num_cols) {}
140 : Parent(num_rows, num_cols, num_entries) {}
182 template <
typename ValueType,
typename MemorySpace,
typename IndexType=
int>
202 : Parent(num_rows, num_cols) {}
212 template <
typename VectorType1,
typename VectorType2>
identity_operator(IndexType num_rows, IndexType num_cols)
linear_operator(IndexType num_rows, IndexType num_cols, IndexType num_entries)
Simple identity operator.
void operator()(const VectorType1 &x, VectorType2 &y) const
linear_operator(IndexType num_rows, IndexType num_cols)
Abstract representation of a linear operator.
void copy(const SourceType &src, DestinationType &dst)
Copy one array or matrix to another.