Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed May 17, 2024
1 parent 141365e commit 399b6b3
Show file tree
Hide file tree
Showing 11 changed files with 174 additions and 18 deletions.
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/bicg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,22 @@ class Bicg
GKO_ENABLE_LIN_OP_FACTORY(Bicg, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/bicgstab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,22 @@ class Bicgstab
GKO_ENABLE_LIN_OP_FACTORY(Bicgstab, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/cb_gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,22 @@ class CbGmres : public EnableLinOp<CbGmres<ValueType>>,
GKO_ENABLE_LIN_OP_FACTORY(CbGmres, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/cgs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,22 @@ class Cgs
GKO_ENABLE_LIN_OP_FACTORY(Cgs, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
19 changes: 16 additions & 3 deletions include/ginkgo/core/solver/direct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,22 @@ class Direct : public EnableLinOp<Direct<ValueType, IndexType>>,
GKO_ENABLE_LIN_OP_FACTORY(Direct, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(
const config::pnode& config, const config::registry& context,
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType, IndexType>());

/** Creates a copy of the solver. */
Direct(const Direct&);
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/fcg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,22 @@ class Fcg
GKO_ENABLE_LIN_OP_FACTORY(Fcg, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/gcr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,22 @@ class Gcr
GKO_ENABLE_LIN_OP_FACTORY(Gcr, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,22 @@ class Gmres
GKO_ENABLE_LIN_OP_FACTORY(Gmres, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/idr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,22 @@ class Idr
GKO_ENABLE_LIN_OP_FACTORY(Idr, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
15 changes: 14 additions & 1 deletion include/ginkgo/core/solver/ir.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,22 @@ class Ir : public EnableLinOp<Ir<ValueType>>,
GKO_ENABLE_LIN_OP_FACTORY(Ir, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType>());

protected:
void apply_impl(const LinOp* b, LinOp* x) const override;
Expand Down
38 changes: 32 additions & 6 deletions include/ginkgo/core/solver/triangular.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,22 @@ class LowerTrs : public EnableLinOp<LowerTrs<ValueType, IndexType>>,
GKO_ENABLE_LIN_OP_FACTORY(LowerTrs, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(
const config::pnode& config, const config::registry& context,
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType, IndexType>());

/**
* Copy-assigns a triangular solver. Preserves the executor, shallow-copies
Expand Down Expand Up @@ -262,9 +275,22 @@ class UpperTrs : public EnableLinOp<UpperTrs<ValueType, IndexType>>,
GKO_ENABLE_LIN_OP_FACTORY(UpperTrs, parameters, Factory);
GKO_ENABLE_BUILD_METHOD(Factory);

static parameters_type parse(const config::pnode& config,
const config::registry& context,
const config::type_descriptor& td_for_child);
/**
* Create the parameters from the property_tree.
* Because this is directly tied to the specific type. The value/index type
* settings are ignored and type_descriptor is for children objects.
*
* @param config the property tree for setting
* @param context the registry
* @param td_for_child the type descriptor for children objects. The
* default will directly from the specific type.
*
* @return parameters
*/
static parameters_type parse(
const config::pnode& config, const config::registry& context,
const config::type_descriptor& td_for_child =
config::make_type_descriptor<ValueType, IndexType>());

/**
* Copy-assigns a triangular solver. Preserves the executor, shallow-copies
Expand Down

0 comments on commit 399b6b3

Please sign in to comment.