Skip to content

Commit

Permalink
Added C++ file description comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ndickson-nvidia committed Nov 14, 2024
1 parent 7cfa89a commit 8a65d84
Show file tree
Hide file tree
Showing 19 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/commute.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines and instantiates the `compute_commute_distances`
//! function, declared in commute.h and called from features.cpp

#include "commute.h"

#include "electrostatic.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/commute.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares the `compute_commute_distances` function,
//! defined in commute.cpp and called from features.cpp

#pragma once

#include "spectral.h"
Expand Down
4 changes: 4 additions & 0 deletions graphium/graphium_cpp/electrostatic.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines and instantiates the `compute_electrostatic_interactions`
//! and `compute_laplacian_pseudoinverse` functions,
//! declared in electrostatic.h and called from features.cpp and commute.cpp

#include "electrostatic.h"

#include "spectral.h"
Expand Down
4 changes: 4 additions & 0 deletions graphium/graphium_cpp/electrostatic.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares the `compute_electrostatic_interactions`
//! and `compute_laplacian_pseudoinverse` functions,
//! defined in electrostatic.cpp and called from features.cpp and commute.cpp

#pragma once

#include "spectral.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/features.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines generic feature-related functions,
//! some of which are declared in features.h for exporting to Python.

#define DEBUG_LOGGING 0

#include "features.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/features.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares feature-related enums, functions, and structs,
//! some of which are defined in features.cpp and exported to Python.

#pragma once

#include <cmath>
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/float_features.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines functions for float-valued atom and bond features,
//! declared in float_features.h and called from features.cpp

#include "float_features.h"

#include "features.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/float_features.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares functions for float-valued atom and bond features,
//! defined in float_features.cpp and called from features.cpp

#pragma once

#include "features.h"
Expand Down
4 changes: 4 additions & 0 deletions graphium/graphium_cpp/graphium_cpp.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file specifies which functions are exported to Python,
//! as well as defining `parse_mol` and `get_canonical_atom_order`,
//! declared in features.h and called from features.cpp and labels.cpp

#include "features.h"
#include "labels.h"

Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/graphormer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines and instantiates the `compute_graphormer_distances` function,
//! declared in graphormer.h and called from features.cpp

#include "graphormer.h"

#include <algorithm>
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/graphormer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares the `compute_graphormer_distances` function,
//! defined in graphormer.cpp and called from features.cpp

#pragma once

#include <stdint.h>
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/labels.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines functions for preprocessing and looking up label data,
//! some of which are declared in labels.h for exporting to Python.

#include "labels.h"

#include "features.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/labels.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file declares functions for preprocessing and looking up label data,
//! for exporting to Python, defined in labels.cpp

#pragma once

#include <memory>
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/one_hot.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines functions for one-hot atom and bond features,
//! declared in one_hot.h and called from features.cpp

#include "one_hot.h"
#include "features.h"
#include "float_features.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/one_hot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares functions for one-hot atom and bond features,
//! defined in one_hot.cpp and called from features.cpp

#pragma once

#include "features.h"
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/random_walk.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines and instantiates the `compute_rwse` function,
//! declared in random_walk.h and called from features.cpp

#include "random_walk.h"

#include <assert.h>
Expand Down
3 changes: 3 additions & 0 deletions graphium/graphium_cpp/random_walk.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares the `compute_rwse` function,
//! defined in random_walk.cpp and called from features.cpp

#pragma once

#include <stdint.h>
Expand Down
4 changes: 4 additions & 0 deletions graphium/graphium_cpp/spectral.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This file defines and instantiates the `compute_laplacian_eigendecomp`
//! and `find_components` functions, declared in spectral.h
//! and called from features.cpp

#include "spectral.h"

#include <algorithm>
Expand Down
4 changes: 4 additions & 0 deletions graphium/graphium_cpp/spectral.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

//! @file This header file declares the `compute_laplacian_eigendecomp`
//! and `find_components` functions, defined in spectral.cpp
//! and called from features.cpp

#pragma once

#include "features.h"
Expand Down

0 comments on commit 8a65d84

Please sign in to comment.