Skip to content

Commit

Permalink
fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanwm committed Sep 19, 2024
1 parent 572b9f8 commit 3c9e48e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuTens/propagator/const-density-solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ConstDensityMatterSolver : public BaseMatterSolver
/// shape should look like {Nbatches, 1, 1}.
/// @param[out] eigenvectors The returned eigenvectors
/// @param[out] eigenvalues The corresponding eigenvalues
override void calculateEigenvalues(const Tensor &energies, Tensor &eigenvectors, Tensor &eigenvalues) override;
void calculateEigenvalues(const Tensor &energies, Tensor &eigenvectors, Tensor &eigenvalues) override;

private:
Tensor PMNS;
Expand Down
2 changes: 1 addition & 1 deletion nuTens/tensors/tensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Tensor

/// @brief Construct a 1-d array with specified values
/// @arg values The values to include in the tensor
Tensor(std::vector<float> values, NTdtypes::scalarType type = NTdtypes::kFloat,
Tensor(const std::vector<float> &values, NTdtypes::scalarType type = NTdtypes::kFloat,
NTdtypes::deviceType device = NTdtypes::kCPU, bool requiresGrad = true);

/// @brief Construct an identity tensor (has to be a 2d square tensor)
Expand Down

0 comments on commit 3c9e48e

Please sign in to comment.