Intrepid2
Intrepid2::PAMatrixAssemblyOptions Struct Reference

Options for PAMatrix::assemble(). The defaults are appropriate in most cases; the other settings are primarily for testing and performance comparison. More...

#include <Intrepid2_PAMatrix.hpp>

Public Types

enum class  Algorithm { Automatic , UnitColumns , ApplyToColumns }
 Algorithm used by assemble(). More...
enum class  SparseLastStage { Automatic , Always , Never }
 Use of the sparse last stage in the direct path when ordinal filters are present. More...

Static Public Member Functions

static PAMatrixAssemblyOptions defaultsWithEnvironmentOverrides ()
 Returns default options, overridden by any of the following environment variables (for testing and performance comparison without recompiling):

Public Attributes

Algorithm algorithm = Algorithm::Automatic
double workspaceMB = 512.0
 Workspace budget, in MB, used to choose the workset size for assembly.
SparseLastStage sparseLastStage = SparseLastStage::Automatic

Detailed Description

Options for PAMatrix::assemble(). The defaults are appropriate in most cases; the other settings are primarily for testing and performance comparison.

Definition at line 38 of file Intrepid2_PAMatrix.hpp.

Member Enumeration Documentation

◆ Algorithm

Algorithm used by assemble().

Enumerator
Automatic 

direct sum factorization where the structure supports it, column-blocked unit-column contraction otherwise

UnitColumns 

column-blocked unit-column contraction where supported, apply() to unit columns otherwise

ApplyToColumns 

apply() to blocked unit columns (the most general path)

Definition at line 41 of file Intrepid2_PAMatrix.hpp.

◆ SparseLastStage

Use of the sparse last stage in the direct path when ordinal filters are present.

Enumerator
Automatic 

used when fewer than a quarter of the (row, column) pairs of the unfiltered matrix are kept

Always 

used whenever there is an ordinal filter

Definition at line 53 of file Intrepid2_PAMatrix.hpp.

Member Function Documentation

◆ defaultsWithEnvironmentOverrides()

PAMatrixAssemblyOptions Intrepid2::PAMatrixAssemblyOptions::defaultsWithEnvironmentOverrides ( )
inlinestatic

Returns default options, overridden by any of the following environment variables (for testing and performance comparison without recompiling):

  • INTREPID2_PAMATRIX_ASSEMBLE_ALGORITHM: "automatic", "unit-columns", or "apply"
  • INTREPID2_PAMATRIX_ASSEMBLE_WORKSPACE_MB: positive number
  • INTREPID2_PAMATRIX_ASSEMBLE_SPARSE_LAST: "automatic", "1" (always), or "0" (never)
  • INTREPID2_PAMATRIX_ASSEMBLE_UNIT_COLUMNS (deprecated; equivalent to INTREPID2_PAMATRIX_ASSEMBLE_ALGORITHM=unit-columns) The variables are read once, on the first call; invalid values throw std::invalid_argument.

Definition at line 290 of file Intrepid2_PAMatrixDef.hpp.

References Always, ApplyToColumns, Automatic, UnitColumns, and workspaceMB.

Referenced by Intrepid2::PAMatrix< DeviceType, Scalar >::PAMatrix().

Member Data Documentation

◆ algorithm

Algorithm Intrepid2::PAMatrixAssemblyOptions::algorithm = Algorithm::Automatic

Definition at line 47 of file Intrepid2_PAMatrix.hpp.

◆ sparseLastStage

SparseLastStage Intrepid2::PAMatrixAssemblyOptions::sparseLastStage = SparseLastStage::Automatic

Definition at line 59 of file Intrepid2_PAMatrix.hpp.

◆ workspaceMB

double Intrepid2::PAMatrixAssemblyOptions::workspaceMB = 512.0

The documentation for this struct was generated from the following files: