ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A functor for inflating a tensor. More...
#include <linalg_op.h>
Public Member Functions | |
void | operator() (const Tensor &input, const std::vector< int64_t > &stride, Tensor &output) |
Inflate the input tensor. | |
A functor for inflating a tensor.
This struct defines a functor that can be used to inflate a tensor using the specified stride.
void container::op::inflate_op::operator() | ( | const Tensor & | input, |
const std::vector< int64_t > & | stride, | ||
Tensor & | output | ||
) |
Inflate the input tensor.
This function inflates the input tensor using the given stride and stores the result in the output tensor.
input | The input tensor to be inflated. |
stride | The stride to use for inflation. |
output | The output tensor where the inflated data will be stored. |