GenericTensor¶
-
class
dolfin.cpp.la.GenericTensor(*args, **kwargs)¶ Bases:
dolfin.cpp.la.LinearAlgebraObjectThis class defines a common interface for arbitrary rank tensors.
-
add()¶ Overloaded versions
add(block, rows)
Add block of values using global indices
add(block, rows)
Add block of values using global indices
add(block, num_rows, rows)
Add block of values using global indices
-
add_local()¶ Overloaded versions
add_local(block, rows)
Add block of values using local indices
add_local(block, rows)
Add block of values using local indices
add_local(block, num_rows, rows)
Add block of values using local indices
-
apply()¶ Finalize assembly of tensor
-
empty()¶ Return true if empty
-
factory()¶ Return linear algebra backend factory
-
init()¶ Initialize zero tensor using tensor layout
-
local_range()¶ Return local ownership range
-
mpi_comm()¶ Return MPI communicator
-
rank()¶ Return tensor rank (number of dimensions)
-
set_local()¶ Set block of values using local indices
-
size()¶ Return size of given dimension
-
thisown¶ The membership flag
-
zero()¶ Set all entries to zero and keep any sparse structure
-