20#ifndef LIBMESH_TENSOR_SHELL_MATRIX_H
21#define LIBMESH_TENSOR_SHELL_MATRIX_H
25#include "libmesh/libmesh_common.h"
26#include "libmesh/reference_counted_object.h"
27#include "libmesh/libmesh.h"
28#include "libmesh/shell_matrix.h"
29#include "libmesh/numeric_vector.h"
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
Generic shell matrix, i.e.
Shell matrix that is given by a tensor product of two vectors, i.e.
virtual void get_diagonal(NumericVector< T > &dest) const override
Copies the diagonal part of the matrix into dest.
const NumericVector< T > & _w
The row vector.
const NumericVector< T > & _v
The column vector.
TensorShellMatrix(const NumericVector< T > &v, const NumericVector< T > &w)
Constructor; takes references to the two vectors as arguments.
virtual void vector_mult(NumericVector< T > &dest, const NumericVector< T > &arg) const override
Multiplies the matrix with arg and stores the result in dest.
virtual numeric_index_type n() const override
virtual numeric_index_type m() const override
virtual void vector_mult_add(NumericVector< T > &dest, const NumericVector< T > &arg) const override
Multiplies the matrix with arg and adds the result to dest.
virtual ~TensorShellMatrix()
Destructor.
The libMesh namespace provides an interface to certain functionality in the library.
dof_id_type numeric_index_type