Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
Parent class(es)
This class represents a real-valued scalar quantity and implements the GenericTensor interface for scalars.
Create zero scalar
Initialize zero tensor using sparsity pattern
Return true if empty
Return tensor rank (number of dimensions)
Return size of given dimension
Return local ownership range
Get block of values
Set block of values using global indices
Set block of values using local indices
Add block of values using global indices
Add block of values using local indices
Add block of values using global indices
Add block of values using local indices
Set all entries to zero and keep any sparse structure
Finalize assembly of tensor
Return MPI communicator
Return informal string representation (pretty-print)
Return copy of scalar
Return a factory for the default linear algebra backend
Get final value (assumes prior apply(), not part of GenericTensor interface)
Add to local increment (added for testing, remove if we add a better way from python)