| 
| 
  | Scalar () | 
|   | Create zero scalar. 
  | 
|   | 
| 
  | Scalar (MPI_Comm comm) | 
|   | Create zero scalar. 
  | 
|   | 
| 
virtual  | ~Scalar () | 
|   | Destructor. 
  | 
|   | 
| 
virtual void  | init (const TensorLayout &tensor_layout) | 
|   | Initialize zero tensor using sparsity pattern. 
  | 
|   | 
| 
virtual bool  | empty () const | 
|   | Return true if empty. 
  | 
|   | 
| 
virtual std::size_t  | rank () const | 
|   | Return tensor rank (number of dimensions) 
  | 
|   | 
| 
virtual std::size_t  | size (std::size_t dim) const | 
|   | Return size of given dimension. 
  | 
|   | 
| 
virtual std::pair< std::int64_t, std::int64_t >  | local_range (std::size_t dim) const | 
|   | Return local ownership range. 
  | 
|   | 
| 
virtual void  | get (double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) const | 
|   | Get block of values. 
  | 
|   | 
| 
virtual void  | set (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) | 
|   | Set block of values using global indices. 
  | 
|   | 
| 
virtual void  | set_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) | 
|   | Set block of values using local indices. 
  | 
|   | 
| 
virtual void  | add (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) | 
|   | Add block of values using global indices. 
  | 
|   | 
| 
virtual void  | add_local (const double *block, const dolfin::la_index *num_rows, const dolfin::la_index *const *rows) | 
|   | Add block of values using local indices. 
  | 
|   | 
| 
virtual void  | add (const double *block, const std::vector< ArrayView< const dolfin::la_index >> &rows) | 
|   | Add block of values using global indices. 
  | 
|   | 
| 
virtual void  | add_local (const double *block, const std::vector< ArrayView< const dolfin::la_index >> &rows) | 
|   | Add block of values using local indices. 
  | 
|   | 
| 
virtual void  | zero () | 
|   | Set all entries to zero and keep any sparse structure. 
  | 
|   | 
| 
virtual void  | apply (std::string mode) | 
|   | Finalize assembly of tensor. 
  | 
|   | 
| 
virtual MPI_Comm  | mpi_comm () const | 
|   | Return MPI communicator. 
  | 
|   | 
| 
virtual std::string  | str (bool verbose) const | 
|   | Return informal string representation (pretty-print) 
  | 
|   | 
| 
virtual std::shared_ptr< Scalar >  | copy () const | 
|   | Return copy of scalar. 
  | 
|   | 
| 
virtual GenericLinearAlgebraFactory &  | factory () const | 
|   | Return a factory for the default linear algebra backend. 
  | 
|   | 
| double  | get_scalar_value () const | 
|   | 
| void  | add_local_value (double value) | 
|   | 
| 
virtual  | ~GenericTensor () | 
|   | Destructor. 
  | 
|   | 
| 
virtual const LinearAlgebraObject *  | instance () const | 
|   | Return concrete instance / unwrap (const version) 
  | 
|   | 
| 
virtual LinearAlgebraObject *  | instance () | 
|   | Return concrete instance / unwrap (non-const version) 
  | 
|   | 
| 
virtual std::shared_ptr< const LinearAlgebraObject >  | shared_instance () const | 
|   | Return concrete shared ptr instance / unwrap (const version) 
  | 
|   | 
| 
virtual std::shared_ptr< LinearAlgebraObject >  | shared_instance () | 
|   | Return concrete shared ptr instance / unwrap (non-const version) 
  | 
|   | 
| 
  | Variable () | 
|   | Create unnamed variable. 
  | 
|   | 
| 
  | Variable (const std::string name, const std::string label) | 
|   | Create variable with given name and label. 
  | 
|   | 
| 
  | Variable (const Variable &variable) | 
|   | Copy constructor. 
  | 
|   | 
| 
virtual  | ~Variable () | 
|   | Destructor. 
  | 
|   | 
| 
const Variable &  | operator= (const Variable &variable) | 
|   | Assignment operator. 
  | 
|   | 
| 
void  | rename (const std::string name, const std::string label) | 
|   | Rename variable. 
  | 
|   | 
| 
std::string  | name () const | 
|   | Return name. 
  | 
|   | 
| 
std::string  | label () const | 
|   | Return label (description) 
  | 
|   | 
| std::size_t  | id () const | 
|   | 
This class represents a real-valued scalar quantity and implements the GenericTensor interface for scalars.