Table¶
-
class
dolfin.cpp.common.
Table
(*args)¶ Bases:
dolfin.cpp.common.Variable
This class provides storage and pretty-printing for tables. Example usage:
Table
table(“Timings”); table(“Eigen”, “Assemble”) = 0.010; table(“Eigen”, “Solve”) = 0.020; table(“PETSc”, “Assemble”) = 0.011; table(“PETSc”, “Solve”) = 0.019; table(“Tpetra”, “Assemble”) = 0.012; table(“Tpetra”, “Solve”) = 0.018; info(table);Friends:
MPI
,XMLTable
.Create empty table.
Parameters: - title (std::string) –
- right_justify (bool) –
-
get
()¶ Get value of table entry.
Parameters: - row (std::string) –
- col (std::string) –
Return type: std::string
-
get_value
()¶ Get value of table entry.
Parameters: - row (std::string) –
- col (std::string) –
Return type: double
-
set
()¶ Set
value of table entry.Parameters: - row (std::string) –
- col (std::string) –
- value (double) –
Return type: void
-
str_latex
()¶ Return informal string representation for LaTeX.
Return type: std::string
-
thisown
¶ The membership flag