Bases: dolfin.cpp.common.Variable
This class described the size and possibly the sparsity of a (sparse) tensor. It is used by the linear algebra backends to initialise tensors.
Overloaded versions
TensorLayout(primary_dim, sparsity_pattern)
Create empty tensor layout
TensorLayout(mpi_comm, dims, primary_dim, block_size, ownership_range, sparsity_pattern)
Create a tensor layout
Initialize tensor layout
Return local range for dimension dim
Return MPI communicator
Return rank
Return global size for dimension i (size of tensor, includes non-zeroes)
Overloaded versions
sparsity_pattern()
Return sparsity pattern (possibly null)
sparsity_pattern()
Return sparsity pattern (possibly null), const version
The membership flag