Discontinuous Galerkin Library
#include "dg/algorithm.h"
operator_tensor.h File Reference
#include <algorithm>
#include <cusp/coo_matrix.h>
#include <cusp/multiply.h>
#include "operator.h"

Go to the source code of this file.

Namespaces

namespace  dg
 This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library.
 

Functions

template<class T >
Operator< T > dg::tensorproduct (const Operator< T > &op1, const Operator< T > &op2)
 Form the tensor product between two operators. More...
 
template<class T >
cusp::coo_matrix< int, T, cusp::host_memory > dg::tensorproduct (unsigned N, const Operator< T > &op)
 Tensor product between Identity matrix and an operator. More...
 
template<class T >
cusp::coo_matrix< int, T, cusp::host_memory > dg::sandwich (const Operator< T > &left, const cusp::coo_matrix< int, T, cusp::host_memory > &m, const Operator< T > &right)
 Multiply 1d matrices by diagonal block matrices from left and right. More...