Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/TiledArray/tensor/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ class Tensor {
typename = std::enable_if_t<detail::is_numeric_v<Scalar>>>
Tensor& add_to(const Scalar value) {
return inplace_unary(
[value](numeric_type& MADNESS_RESTRICT res) { res += value; });
[value](value_type& MADNESS_RESTRICT res) { res += value; });
}

// Subtraction operations
Expand Down Expand Up @@ -2240,7 +2240,7 @@ class Tensor {
// early exit for empty this
if (empty()) return *this;

return inplace_unary([](numeric_type& MADNESS_RESTRICT l) { l = -l; });
return inplace_unary([](value_type& MADNESS_RESTRICT l) { l = -l; });
}

/// Create a complex conjugated copy of this tensor
Expand Down
Loading