Skip to content

Commit 306b558

Browse files
committed
Tpetra: Fix more doxygen warnings
Signed-off-by: Christian Glusa <caglusa@sandia.gov>
1 parent f2590cc commit 306b558

26 files changed

Lines changed: 188 additions & 61 deletions

packages/ifpack2/src/Ifpack2_Details_OverlappingRowGraph_decl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ class OverlappingRowGraph : virtual public Ifpack2::Details::RowGraph<GraphType>
210210
/// \param localRow [in] Local index of the row.
211211
/// \param indices [out] Local column indices in that row that are
212212
/// owned by the calling process.
213-
/// \param numIndices [out] Number of indices returned in \c gblColInds.
213+
/// \param numIndices [out] Number of indices returned in \c indices.
214214
///
215-
/// This method throws std::runtime_error if \c gblColInds is not large
215+
/// This method throws std::runtime_error if \c indices is not large
216216
/// enough to hold the column indices in row \c localRow. If row
217217
/// <tt>localRow</tt> does not belong to this process, then
218-
/// <tt>gblColInds</tt> is not modified and \c numIndices is set to
218+
/// <tt>indices</tt> is not modified and \c numIndices is set to
219219
/// Teuchos::OrdinalTraits<size_t>::invalid() on output.
220220
virtual void
221221
getLocalRowCopy(local_ordinal_type localRow,

packages/tpetra/core/ext/TpetraExt_MatrixMatrix_decl.hpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ namespace MatrixMatrix {
5959
/// \param call_FillComplete_on_result [in] Optional argument;
6060
/// defaults to true. If false, C will <i>not</i> be fill complete
6161
/// on output.
62+
/// \param label [in] Label for \c Teuchos::TimeMonitor.
63+
/// \param params [in/out] List of parameters.
6264
template <class Scalar,
6365
class LocalOrdinal,
6466
class GlobalOrdinal,
@@ -88,6 +90,7 @@ void Multiply(
8890
/// \param transposeB [in] Whether to use transpose of matrix B. This is
8991
/// currently not implemented.
9092
/// \param C [in/out] output matrix. Must be null.
93+
/// \param label [in] Label for \c Teuchos::TimeMonitor.
9194
template <class Scalar,
9295
class LocalOrdinal,
9396
class GlobalOrdinal,
@@ -135,11 +138,11 @@ void Add(
135138
/// \pre A and B must both be fillComplete and have matching domain and
136139
/// range Maps.
137140
///
138-
/// \param scalarA [in] Scalar multiplier for A in the sum.
141+
/// \param alpha [in] Scalar multiplier for A in the sum.
139142
/// \param transposeA [in] If true, use the transpose of A.
140143
/// \param A [in] The first input matrix.
141144
///
142-
/// \param scalarB [in] Scalar multiplier for B in the sum.
145+
/// \param beta [in] Scalar multiplier for B in the sum.
143146
/// \param transposeB [in] If true, use the transpose of B.
144147
/// \param B [in] The second input matrix.
145148
///
@@ -186,10 +189,10 @@ add(const Scalar& alpha,
186189
/// \pre A and B must both be fillComplete and have matching domain and
187190
/// range Maps.
188191
///
189-
/// \param scalarA [in] Scalar multiplier for A in the sum.
192+
/// \param alpha [in] Scalar multiplier for A in the sum.
190193
/// \param transposeA [in] If true, use the transpose of A.
191194
/// \param A [in] The first input matrix.
192-
/// \param scalarB [in] Scalar multiplier for B in the sum.
195+
/// \param beta [in] Scalar multiplier for B in the sum.
193196
/// \param transposeB [in] If true, use the transpose of B.
194197
/// \param B [in] The second input matrix.
195198
/// \param C [out] The result matrix, which we expect to be 'new' (no entries inserted) on input.
@@ -319,12 +322,14 @@ void Add(
319322
will be produced when forming the product A*B. On exit,
320323
C.FillComplete() will have been called, unless the last argument
321324
to this function is specified to be false.
322-
@param call_fillComplete_on_result Optional argument, defaults to true.
325+
@param call_FillComplete_on_result Optional argument, defaults to true.
323326
Power users may specify this argument to be false if they *DON'T*
324327
want this function to call C.fillComplete. (It is often useful
325328
to allow this function to call C.fillComplete, in cases where
326329
one or both of the input matrices are rectangular and it is not
327330
trivial to know which maps to use for the domain- and range-maps.)
331+
@param label [in] Label for \c Teuchos::TimeMonitor.
332+
@param params [in/out] List of parameters.
328333
*/
329334
template <class Scalar,
330335
class LocalOrdinal,

packages/tpetra/core/ext/TpetraExt_TripleMatrixMultiply_decl.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ namespace TripleMatrixMultiply {
5353
/// \param R [in] fill-complete sparse matrix.
5454
/// \param transposeR [in] Whether to use transpose of matrix R.
5555
/// \param A [in] fill-complete sparse matrix.
56-
/// \param transposeR [in] Whether to use transpose of matrix A.
56+
/// \param transposeA [in] Whether to use transpose of matrix A.
5757
/// \param P [in] fill-complete sparse matrix.
58-
/// \param transposeB [in] Whether to use transpose of matrix P.
58+
/// \param transposeP [in] Whether to use transpose of matrix P.
5959
/// \param Ac [in/out] On entry to this method, if Ac is fill complete,
6060
/// then Ac's graph must have the correct structure, that is, its
6161
/// structure must equal the structure of R*A*P. (This is currently
@@ -64,6 +64,8 @@ namespace TripleMatrixMultiply {
6464
/// \param call_FillComplete_on_result [in] Optional argument;
6565
/// defaults to true. If false, C will <i>not</i> be fill complete
6666
/// on output.
67+
/// \param label [in] Label for \c Teuchos::TimeMonitor.
68+
/// \param params [in/out] List of parameters.
6769
template <class Scalar,
6870
class LocalOrdinal,
6971
class GlobalOrdinal,

packages/tpetra/core/inout/MatrixMarket_Tpetra.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ class Reader {
15891589
/// wait for the final result.
15901590
///
15911591
/// \param filename [in] Name of the Matrix Market file.
1592-
/// \param pComm [in] Communicator containing all processor(s)
1592+
/// \param comm [in] Communicator containing all processor(s)
15931593
/// over which the sparse matrix will be distributed.
15941594
/// \param callFillComplete [in] Whether to call fillComplete()
15951595
/// on the Tpetra::CrsMatrix, after adding all the entries
@@ -1886,7 +1886,7 @@ class Reader {
18861886
/// wait for the final result.
18871887
///
18881888
/// \param filename [in] Name of the Matrix Market file.
1889-
/// \param pComm [in] Communicator containing all processor(s)
1889+
/// \param comm [in] Communicator containing all processor(s)
18901890
/// over which the sparse matrix will be distributed.
18911891
/// \param callFillComplete [in] Whether to call fillComplete()
18921892
/// on the Tpetra::CrsMatrix, after adding all the entries
@@ -1927,7 +1927,7 @@ class Reader {
19271927
/// participate and wait for the final result.
19281928
///
19291929
/// \param filename [in] Name of the Matrix Market file.
1930-
/// \param pComm [in] Communicator containing all process(es)
1930+
/// \param comm [in] Communicator containing all process(es)
19311931
/// over which the sparse matrix will be distributed.
19321932
/// \param constructorParams [in/out] Parameters for the
19331933
/// CrsMatrix constructor.
@@ -3768,7 +3768,7 @@ class Reader {
37683768
/// \param debug [in] Whether to produce copious status output
37693769
/// useful for Tpetra developers, but probably not useful for
37703770
/// anyone else.
3771-
/// \param debug [in] If true, read in binary mode.
3771+
/// \param binary [in] If true, read in binary mode.
37723772
static Teuchos::RCP<multivector_type>
37733773
readDenseFile(const std::string& filename,
37743774
const trcp_tcomm_t& comm,
@@ -3924,7 +3924,7 @@ class Reader {
39243924
/// \param debug [in] Whether to produce copious status output
39253925
/// useful for Tpetra developers, but probably not useful for
39263926
/// anyone else.
3927-
/// \param debug [in] If true, read in binary mode.
3927+
/// \param binary [in] If true, read in binary mode.
39283928

39293929
static Teuchos::RCP<multivector_type>
39303930
readDense(std::istream& in,
@@ -3970,7 +3970,7 @@ class Reader {
39703970
/// \param debug [in] Whether to produce copious status output
39713971
/// useful for Tpetra developers, but probably not useful for
39723972
/// anyone else.
3973-
/// \param debug [in] If true, read in binary mode.
3973+
/// \param binary [in] If true, read in binary mode.
39743974
static Teuchos::RCP<const map_type>
39753975
readMapFile(const std::string& filename,
39763976
const trcp_tcomm_t& comm,
@@ -5096,7 +5096,7 @@ class Reader {
50965096
/// \param debug [in] Whether to produce copious status output
50975097
/// useful for Tpetra developers, but probably not useful for
50985098
/// anyone else.
5099-
/// \param debug [in] If true, read in binary mode.
5099+
/// \param binary [in] If true, read in binary mode.
51005100
static Teuchos::RCP<const map_type>
51015101
readMap(std::istream& in,
51025102
const trcp_tcomm_t& comm,
@@ -5133,7 +5133,7 @@ class Reader {
51335133
/// from the file.
51345134
/// \param debug [in] If true, write copious debugging output to
51355135
/// \c err on all processes in \c comm.
5136-
/// \param debug [in] If true, read in binary mode.
5136+
/// \param binary [in] If true, read in binary mode.
51375137
static Teuchos::RCP<const map_type>
51385138
readMap(std::istream& in,
51395139
const trcp_tcomm_t& comm,
@@ -5517,7 +5517,7 @@ class Reader {
55175517
//! the number of ranks hammering on the file system at once, but we don't
55185518
//! make any guarantees.
55195519
/// \param filename_prefix [in] File for rank I is filename_prefix + to_string(I) + filename_suffix
5520-
/// \param filename_sufffix [in] File for rank I is filename_prefix + to_string(I) + filename_suffix
5520+
/// \param filename_suffix [in] File for rank I is filename_prefix + to_string(I) + filename_suffix
55215521
/// \param rowMap [in] The Map over which to distribute rows
55225522
/// of the sparse matrix. This must be nonnull.
55235523
/// \param colMap [in/out] If nonnull: the Map over which to
@@ -5536,6 +5536,7 @@ class Reader {
55365536
/// matrix after reading it from a file.)
55375537
/// \param tolerant [in] Whether to read the data tolerantly
55385538
/// from the file.
5539+
/// \param ranksToReadAtOnce [in] Number of ranks to read at once.
55395540
/// \param debug [in] Whether to produce copious status output
55405541
/// useful for Tpetra developers, but probably not useful for
55415542
/// anyone else.

packages/tpetra/core/inout/Tpetra_Details_CooMatrix.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ class CooMatrixImpl {
108108
///
109109
/// This works like multiple calls to sumIntoGlobalValue.
110110
///
111-
/// \param gblRowInd [in] Global row indices of the entries to insert.
112-
/// \param gblColInd [in] Global column indices of the entries to insert.
113-
/// \param val [in] Values of the matrix entries to insert / sum.
111+
/// \param gblRowInds [in] Global row indices of the entries to insert.
112+
/// \param gblColInds [in] Global column indices of the entries to insert.
113+
/// \param vals [in] Values of the matrix entries to insert / sum.
114114
/// \param numEnt [in] Number of entries to insert.
115115
void
116116
sumIntoGlobalValues(const GO gblRowInds[],
@@ -210,6 +210,7 @@ class CooMatrixImpl {
210210
/// needed for the row. Must be an int for MPI's sake.
211211
/// \param gblRow [in] Global index of the row to pack.
212212
/// \param comm [in] Communicator for packing.
213+
/// \param errStrm [out] Optional output stream for error messages.
213214
///
214215
/// \return Error code; MPI_SUCESSS (0) if no error.
215216
int countPackRow(int& numPackets,
@@ -589,9 +590,9 @@ class CooMatrix : public ::Tpetra::DistObject<char, LO, GO, NT> {
589590
///
590591
/// This works like multiple calls to sumIntoGlobalValue.
591592
///
592-
/// \param gblRowInd [in] Global row indices of the entries to insert.
593-
/// \param gblColInd [in] Global column indices of the entries to insert.
594-
/// \param val [in] Values of the matrix entries to insert / sum.
593+
/// \param gblRowInds [in] Global row indices of the entries to insert.
594+
/// \param gblColInds [in] Global column indices of the entries to insert.
595+
/// \param vals [in] Values of the matrix entries to insert / sum.
595596
/// \param numEnt [in] Number of entries to insert.
596597
void
597598
sumIntoGlobalValues(const GO gblRowInds[],

packages/tpetra/core/inout/Tpetra_Details_ReadTriples.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ int readTriples(std::istream& inputStream,
508508
/// \param tolerant [in] Whether to read tolerantly.
509509
/// \param errStrm [in] If not NULL, print any error messages to this
510510
/// stream.
511+
/// \param debug [in] If true, print debug messages.
511512
template <class SC, class GO>
512513
int readAndSendOneBatchOfTriples(std::istream& inputStream,
513514
std::size_t& curLineNum,
@@ -751,6 +752,7 @@ int readAndSendOneBatchOfTriples(std::istream& inputStream,
751752
/// \param tolerant [in] Whether to read tolerantly.
752753
/// \param errStrm [in] If not NULL, print any error messages to this
753754
/// stream.
755+
/// \param debug [in] If true, print debug messages.
754756
template <class SC, class GO, class CommRequestPtr>
755757
int recvOneBatchOfTriples(std::vector<GO>& rowInds,
756758
std::vector<GO>& colInds,
@@ -870,10 +872,12 @@ int recvOneBatchOfTriples(std::vector<GO>& rowInds,
870872
/// is an error code, that is zero if and only if the closure
871873
/// succeeded. We intend for you to use this to call
872874
/// CooMatrix::insertEntry.
875+
/// \param maxNumEntPerMsg [in] Maximum number of entries per message.
873876
/// \param comm [in] Communicator to use for receiving the triples.
874877
/// \param tolerant [in] Whether to read tolerantly.
875878
/// \param errStrm [in] If not NULL, print any error messages to this
876879
/// stream.
880+
/// \param debug [in] Whether to print debug output.
877881
///
878882
/// \return Error code; 0 if and only if success.
879883
template <class SC, class GO>

packages/tpetra/core/src/Tpetra_ApplyOp.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class ApplyOp : public Tpetra::Operator<Scalar,
8383
/// \brief Compute <tt>Y = beta*Y + alpha*Op(A)*X</tt>, where
8484
/// <tt>Op(A)</tt> is either A, \f$A^T\f$, or \f$A^H\f$.
8585
///
86+
/// \param X [in] Input MultiVector.
87+
/// \param Y [in/out] Output MultiVector.
88+
/// \param mode [in] Whether to apply the transpose (Teuchos::NO_TRANS, Teuchos::TRANS, Teuchos::CONJ_TRANS).
89+
/// \param alpha [in] Scaling factor for the result.
90+
/// \param beta [in] Scaling factor for Y before adding the result.
91+
///
8692
/// This method calls the underlying Operator object's
8793
/// applyTempl<Scalar,Scalar>() method.
8894
void

packages/tpetra/core/src/Tpetra_BlockCrsMatrix_decl.hpp

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ class BlockCrsMatrix : virtual public ::Tpetra::RowMatrix<Scalar, LO, GO, Node>,
331331

332332
/// \brief For this matrix A, compute <tt>Y := beta * Y + alpha * Op(A) * X</tt>.
333333
///
334+
/// \param X [in] Input MultiVector.
335+
/// \param Y [in/out] Output MultiVector.
336+
/// \param mode [in] Whether to apply the transpose (Teuchos::NO_TRANS,
337+
/// Teuchos::TRANS, Teuchos::CONJ_TRANS).
338+
/// \param alpha [in] Scaling factor for the result.
339+
/// \param beta [in] Scaling factor for Y before adding the result.
340+
///
334341
/// Op(A) is A if mode is Teuchos::NO_TRANS, the transpose of A if
335342
/// mode is Teuchos::TRANS, and the conjugate transpose of A if mode
336343
/// is Teuchos::CONJ_TRANS.
@@ -404,6 +411,13 @@ class BlockCrsMatrix : virtual public ::Tpetra::RowMatrix<Scalar, LO, GO, Node>,
404411

405412
/// \brief Version of apply() that takes BlockMultiVector input and output.
406413
///
414+
/// \param X [in] Input MultiVector.
415+
/// \param Y [in/out] Output MultiVector.
416+
/// \param mode [in] Whether to apply the transpose (Teuchos::NO_TRANS,
417+
/// Teuchos::TRANS, Teuchos::CONJ_TRANS).
418+
/// \param alpha [in] Scaling factor for the result.
419+
/// \param beta [in] Scaling factor for Y before adding the result.
420+
///
407421
/// This method is deliberately not marked const, because it may do
408422
/// lazy initialization of temporary internal block multivectors.
409423
void
@@ -498,27 +512,18 @@ class BlockCrsMatrix : virtual public ::Tpetra::RowMatrix<Scalar, LO, GO, Node>,
498512
/// indices directly, since the column indices are not stored as
499513
/// global indices in the graph.
500514
///
501-
/// \param localRowInd [in] Local (mesh, i.e., block) row index.
515+
/// \param LocalRow [in] Local (mesh, i.e., block) row index.
502516
///
503-
/// \param colInds [out] If \c localRowInd is valid on the calling
517+
/// \param indices [out] If \c LocalRow is valid on the calling
504518
/// process, then on output, this is a pointer to the local (mesh,
505519
/// i.e., block) column indices in the given (mesh, i.e., block)
506-
/// row. If localRowInd is <i>not</i> valid, then this is
520+
/// row. If LocalRow is <i>not</i> valid, then this is
507521
/// undefined. (Please check the return value of this method.)
508522
///
509-
/// \param vals [out] If \c localRowInd is valid on the calling
523+
/// \param values [out] If \c LocalRow is valid on the calling
510524
/// process, then on output, this is a pointer to the row's
511-
/// values. If localRowInd is <i>not</i> valid, then this is
525+
/// values. If LocalRow is <i>not</i> valid, then this is
512526
/// undefined. (Please check the return value of this method.)
513-
///
514-
/// \param numInds [in] The number of (mesh, i.e., block) indices in
515-
/// \c colInds on output.
516-
///
517-
/// \return 0 if \c localRowInd is valid, else
518-
/// <tt>Teuchos::OrdinalTraits<LO>::invalid()</tt>.
519-
/// KK: this is inherited from row matrix interface and it returns const
520-
/// this cannot replace the deprecated pointer interface
521-
/// we need nonconst version of this code
522527
void
523528
getLocalRowView(LO LocalRow,
524529
local_inds_host_view_type& indices,
@@ -718,6 +723,10 @@ class BlockCrsMatrix : virtual public ::Tpetra::RowMatrix<Scalar, LO, GO, Node>,
718723
/// diagonal of the matrix.
719724
protected:
720725
//! Like sumIntoLocalValues, but for the ABSMAX combine mode.
726+
/// \param localRowInd [in] Local row index.
727+
/// \param colInds [in] Array of local column indices.
728+
/// \param vals [in] Array of values to ABSMAX into the matrix.
729+
/// \param numColInds [in] Number of column indices.
721730
LO absMaxLocalValues(const LO localRowInd,
722731
const LO colInds[],
723732
const Scalar vals[],
@@ -968,6 +977,13 @@ class BlockCrsMatrix : virtual public ::Tpetra::RowMatrix<Scalar, LO, GO, Node>,
968977
/// \brief Global sparse matrix-vector multiply for the transpose or
969978
/// conjugate transpose cases.
970979
///
980+
/// \param X [in] Input MultiVector.
981+
/// \param Y [in/out] Output MultiVector.
982+
/// \param mode [in] Whether to apply the transpose (Teuchos::TRANS,
983+
/// or Teuchos::CONJ_TRANS).
984+
/// \param alpha [in] Scaling factor for the result.
985+
/// \param beta [in] Scaling factor for Y before adding the result.
986+
///
971987
/// This method computes Y := beta*Y + alpha*Op(A)*X, where A is
972988
/// *this (the block matrix), Op(A) signifies either the transpose
973989
/// or the conjugate transpose of A, and X and Y are block

packages/tpetra/core/src/Tpetra_CrsGraph_decl.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,13 @@ class CrsGraph : public RowGraph<LocalOrdinal, GlobalOrdinal, Node>,
521521
/// \param lclGraph [in] The local graph. In almost all cases the
522522
/// local graph must be sorted on input,
523523
/// but if it isn't sorted, "sorted" must be set to false in params.
524+
/// \param rowMap [in] Row map.
525+
/// \param colMap [in] Column map.
526+
/// \param domainMap [in] Domain map.
527+
/// \param rangeMap [in] Range map.
528+
/// \param importer [in] Import.
529+
/// \param exporter [in] Export.
530+
/// \param params [in/out] Optional list of parameters.
524531
CrsGraph(const local_graph_device_type& lclGraph,
525532
const Teuchos::RCP<const map_type>& rowMap,
526533
const Teuchos::RCP<const map_type>& colMap,

0 commit comments

Comments
 (0)