TensorLayout¶
-
class
dolfin.cpp.la.
TensorLayout
(*args)¶ 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, index_maps, primary_dim, sparsity_pattern, ghosted)
Create a tensor layout
-
Ghosts_GHOSTED
= True¶
-
Ghosts_UNGHOSTED
= False¶
-
Sparsity_DENSE
= False¶
-
Sparsity_SPARSE
= True¶
-
index_map
()¶ Return IndexMap for dimension
-
init
()¶ Initialize tensor layout
-
is_ghosted
()¶ Require ghosts
-
local_range
()¶ Return local range for dimension dim
-
mpi_comm
()¶ Return MPI communicator
-
primary_dim
¶
-
rank
()¶ Return rank
-
size
()¶ Return global size for dimension i (size of tensor, includes non-zeroes)
-
sparsity_pattern
()¶ Overloaded versions
sparsity_pattern()
Return sparsity pattern (possibly null)
sparsity_pattern()
Return sparsity pattern (possibly null), const version
-
thisown
¶ The membership flag