|
template<typename T , std::size_t... Dims> |
auto | abs (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the absolute value of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | absolute (const BlockTensor< T, Dims... > &input) |
| Alias for abs()
|
|
template<typename T , std::size_t... Dims> |
auto | acos (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the inverse cosine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | acosh (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the inverse hyperbolic cosine of the elements of input
|
|
template<typename T , typename U , typename V , std::size_t... Dims> |
auto | add (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other, V alpha=1.0) |
| Returns a new block tensor with the elements of other , scaled by alpha , added to the elements of input
|
|
template<typename T , typename U , typename V , std::size_t... Dims> |
auto | add (const BlockTensor< T, Dims... > &input, U other, V alpha=1.0) |
| Returns a new block tensor with the elements of other , scaled by alpha , added to the elements of input
|
|
template<typename T , typename U , typename V , std::size_t... Dims> |
auto | add (T input, const BlockTensor< U, Dims... > &other, V alpha=1.0) |
| Returns a new block tensor with the elements of other , scaled by alpha , added to the elements of input
|
|
template<typename T , typename U , typename V , typename W , std::size_t... Dims> |
auto | addcdiv (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &tensor1, const BlockTensor< V, Dims... > &tensor2, W value=1.0) |
| Returns a new block tensor with the elements of tensor1 divided by the elements of tensor2 , with the result multiplied by the scalar value and added to the elements of input
|
|
template<typename T , typename U , typename V , typename W , std::size_t... Dims> |
auto | addcmul (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &tensor1, const BlockTensor< V, Dims... > &tensor2, W value=1.0) |
| Returns a new block tensor with the elements of tensor1 multiplied by the elements of tensor2 , with the result multiplied by the scalar value and added to the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | angle (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the angle (in radians) of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | arccos (const BlockTensor< T, Dims... > &input) |
| Alias for acos()
|
|
template<typename T , std::size_t... Dims> |
auto | arccosh (const BlockTensor< T, Dims... > &input) |
| Alias for acosh()`.
|
|
template<typename T , std::size_t... Dims> |
auto | arcsin (const BlockTensor< T, Dims... > &input) |
| Alias for asin()
|
|
template<typename T , std::size_t... Dims> |
auto | arcsinh (const BlockTensor< T, Dims... > &input) |
| Alias for asinh()
|
|
template<typename T , std::size_t... Dims> |
auto | arctan (const BlockTensor< T, Dims... > &input) |
| Alias for atan()
|
|
template<typename T , std::size_t... Dims> |
auto | arctanh (const BlockTensor< T, Dims... > &input) |
| Alias for atanh()
|
|
template<typename T , std::size_t... Dims> |
auto | asin (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the arcsine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | asinh (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the inverse hyperbolic sine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | atan (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the arctangent of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | atan2 (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the arctangent of the elements in input and other with consideration of the quadrant.
|
|
template<typename T , std::size_t... Dims> |
auto | atanh (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the inverse hyperbolic tangent of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | bitwise_and (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the bitwise AND of the elements of input and other
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | bitwise_left_shift (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the left arithmetic shift of the elements of input by other bits.
|
|
template<typename T , std::size_t... Dims> |
auto | bitwise_not (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the bitwise NOT of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | bitwise_or (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the bitwise OR of the elements of input and other
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | bitwise_right_shift (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the right arithmetic shift of the element of input by other bits.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | bitwise_xor (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the bitwise XOR of the elements of input and other
|
|
template<typename T , std::size_t... Dims> |
auto | ceil (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the ceil of the elements of input, the smallest integer greater than or equal to each element.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | clamp (const BlockTensor< T, Dims... > &input, U min, U max) |
| Returns a new block tensor with the elements of input clamped into the range [ min, max ].
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | clip (const BlockTensor< T, Dims... > &input, U min, U max) |
| Alias for clamp()
|
|
template<typename T , std::size_t... Dims> |
auto | conj_physical (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the conjugate of the elements of input tensor.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | copysign (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the magnitude of the elements of input and the sign of the elements of other
|
|
template<typename T , std::size_t... Dims> |
auto | cos (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the cosine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | cosh (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the hyperbolic cosine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | deg2rad (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the elements of input converted from angles in degrees to radians.
|
|
template<typename T , std::size_t... Dims> |
auto | digamma (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the logarithmic derivative of the gamma function of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | div (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the elements of input divided by the elements of other
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | divide (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Alias for div()
|
|
template<short_t dim = 0, typename T0 , typename T1 > |
auto | dotproduct (T0 &&t0, T1 &&t1) |
| Computes the directional dot-product between two tensors with summation along the given dimension.
|
|
template<typename T , std::size_t... Dims> |
auto | erf (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the error function of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | erfc (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the complementary error function of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | erfinv (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the inverse error function of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | exp (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the exponential of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | exp2 (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the base-2 exponential of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | expit (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the expit (also known as the logistic sigmoid function) of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | expm1 (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the exponential minus 1 of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | fix (const BlockTensor< T, Dims... > &input) |
| Alias for trunc()
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | float_power (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the elements of input raised to the power of exponent , elementwise, in double precision.
|
|
template<typename T , std::size_t... Dims> |
auto | floor (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the floor of the elements of input , the largest integer less than or equal to each element.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | fmod (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the fmod of the elements of input and other
|
|
template<typename T , std::size_t... Dims> |
auto | frac (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the fractional portion of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | frexp (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the decomposition of the elements of input into mantissae and exponents.
|
|
template<typename T , std::size_t N> |
torch::Tensor & | from_xml (const pugi::xml_document &doc, torch::Tensor &tensor, std::string tag="Matrix", int id=0, std::string label="", bool alloc=true, int index=-1) |
| Converts an XML document object to a torch::Tensor object.
|
|
template<typename T , std::size_t N> |
torch::TensorAccessor< T, N > & | from_xml (const pugi::xml_document &doc, torch::TensorAccessor< T, N > &accessor, torch::IntArrayRef sizes, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts an XML documentobject to a torch::TensorAccessor object.
|
|
template<typename T , std::size_t N, std::size_t M> |
utils::TensorArray< M > & | from_xml (const pugi::xml_document &doc, utils::TensorArray< M > &tensors, std::string tag="Matrix", int id=0, bool alloc=true, std::string label="") |
| Converts an XML document object to an std::array of torch::Tensor objects.
|
|
template<typename T , std::size_t N> |
torch::Tensor & | from_xml (const pugi::xml_node &root, torch::Tensor &tensor, std::string tag="Matrix", int id=0, std::string label="", bool alloc=true, int index=-1) |
| Converts an XML object to a torch::Tensor object.
|
|
template<typename T , std::size_t N> |
torch::TensorAccessor< T, N > & | from_xml (const pugi::xml_node &root, torch::TensorAccessor< T, N > &accessor, torch::IntArrayRef sizes, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts an XML object to a torch::TensorAccessor object.
|
|
template<typename T , std::size_t N, std::size_t M> |
utils::TensorArray< M > & | from_xml (const pugi::xml_node &root, utils::TensorArray< M > &tensors, std::string tag="Matrix", int id=0, bool alloc=true, std::string label="") |
| Converts an XML object to an std::array of torch::Tensor objects.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | gammainc (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the regularized lower incomplete gamma function of each element of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | gammaincc (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the regularized upper incomplete gamma function of each element of input
|
|
template<typename T > |
T | getenv (std::string variable, const T &default_value) |
| Returns the value from an environment variable.
|
|
template<typename T > |
std::vector< T > | getenv (std::string variable, std::initializer_list< T > default_value) |
| Returns the value from an environment variable.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | hypot (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| logit
|
|
template<typename T , std::size_t... Dims> |
auto | i0 (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the element-wise zeroth order modified Bessel function of the first kind for each element of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | igamma (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Alias for gammainc()
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | igammac (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Alias for gammainc()
|
|
template<typename T , std::size_t... Dims> |
auto | imag (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the imaginary values of the elements of input
|
|
template<short_t dim = 0, typename T , typename... Ts> |
auto | kronproduct (T &&t, Ts &&...ts) |
| Computes the directional Kronecker-product between two or more tensors along the given dimension.
|
|
template<short_t dim = 0, typename T0 , typename T1 > |
auto | kronproduct (T0 &&t0, T1 &&t1) |
| Computes the directional Kronecker-product between two tensors along the given dimension.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | ldexp (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the elements of input multiplied by 2**other.
|
|
template<typename T , std::size_t... Dims> |
auto | lgamma (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the natural logarithm of the absolute value of the gamma function of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | log (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the natural logarithm of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | log10 (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the logarithm to the base-10 of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | log1p (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the natural logarithm of (1 + the elements of input )
|
|
template<typename T , std::size_t... Dims> |
auto | log2 (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the logarithm to the base-2 of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | logaddexp (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block-vector with the logarithm of the sum of exponentiations of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | logaddexp2 (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block-vector with the logarithm of the sum of exponentiations of the elements of input in base-2.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | logical_and (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the element-wise logical AND of the elements of input and other
|
|
template<typename T , std::size_t... Dims> |
auto | logical_not (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the element-wise logical NOT of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | logical_or (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the element-wise logical OR of the elements of input and other
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | logical_xor (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the element-wise logical XOR of the elements of input and other
|
|
template<typename T , typename U , std::size_t N> |
constexpr std::array< T, N > | make_array (std::array< U, N > array) |
| Creates an std::array object from another std::array object.
|
|
template<typename T , std::size_t N> |
constexpr auto | make_array (T value) |
| Creates an std::array object filled with a constant.
|
|
template<typename T > |
auto | make_shared (T &&arg) |
| Returns an std::shared_ptr<T> object from arg.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | mul (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the product of each element of input and other
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | multiply (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Alias for mul()
|
|
template<typename T , std::size_t... Dims> |
auto | neg (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the negative of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | negative (const BlockTensor< T, Dims... > &input) |
| Alias for neg()
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | nextafter (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Return a new block tensor with the next elementwise floating-point value after input towards other
|
|
template<typename T , typename U , std::size_t... TDims, std::size_t... UDims> |
bool | operator!= (const BlockTensor< T, TDims... > &lhs, const BlockTensor< U, UDims... > &rhs) |
| Returns true if both compile-time block tensors are not equal.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator* (const BlockTensor< T, Dims... > &lhs, const U &rhs) |
| Multiplies a compile-time block tensor with a scalar and returns a new compile-time block tensor.
|
|
template<typename T , typename U , std::size_t Rows, std::size_t Common, std::size_t Cols> |
auto | operator* (const BlockTensor< T, Rows, Common > &lhs, const BlockTensor< U, Common, Cols > &rhs) |
| Multiplies one compile-time rank-2 block tensor with another compile-time rank-2 block tensor.
|
|
template<typename T , typename U , std::size_t Rows, std::size_t Common, std::size_t Cols, std::size_t Slices> |
auto | operator* (const BlockTensor< T, Rows, Common > &lhs, const BlockTensor< U, Common, Cols, Slices > &rhs) |
| Multiplies one compile-time rank-2 block tensor from the left with a compile-time rank-3 block tensor slice-by-slice.
|
|
template<typename T , typename U , std::size_t Rows, std::size_t Common, std::size_t Cols, std::size_t Slices> |
auto | operator* (const BlockTensor< T, Rows, Common, Slices > &lhs, const BlockTensor< U, Common, Cols > &rhs) |
| Multiplies one compile-time rank-3 block tensor from the left with a compile-time rank-2 block tensor slice-by-slice.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator* (const T &lhs, const BlockTensor< U, Dims... > &rhs) |
| Multiplies a scalar with a compile-time block tensor and returns a new compile-time block tensor.
|
|
template<typename T , std::size_t N> |
constexpr std::array< T, N > | operator* (std::array< T, N > lhs, std::array< T, N > rhs) |
| Multiplies two std::arrays.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator+ (const BlockTensor< T, Dims... > &lhs, const BlockTensor< U, Dims... > &rhs) |
| Adds one compile-time block tensor to another and returns a new compile-time block tensor.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator+ (const BlockTensor< T, Dims... > &lhs, const U &rhs) |
| Adds a compile-time block tensor to a scalar and returns a new compile-time block tensor.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator+ (const T &lhs, const BlockTensor< U, Dims... > &rhs) |
| Adds a scalar to a compile-time block tensor and returns a new compile-time block tensor.
|
|
template<typename T , std::size_t N> |
constexpr auto | operator+ (std::array< T, N > array, T data) |
| Appends data to a std::array object.
|
|
template<typename T , std::size_t N> |
constexpr std::array< T, N > | operator+ (std::array< T, N > lhs, std::array< T, N > rhs) |
| Adds two std::arrays.
|
|
template<typename T > |
constexpr auto | operator+ (std::vector< T > vector, T data) |
| Appends data to a std::vector object.
|
|
template<typename T , std::size_t N> |
constexpr auto | operator+ (T data, std::array< T, N > array) |
| Prepends data to a std::array object.
|
|
template<typename T > |
constexpr auto | operator+ (T data, std::vector< T > vector) |
| Prepends data to a std::vector object.
|
|
template<typename T > |
constexpr auto | operator+ (T data, torch::ArrayRef< T > array) |
| Prepends data to a torch::ArrayRef object.
|
|
template<typename T > |
constexpr auto | operator+ (torch::ArrayRef< T > array, T data) |
| Appends data to a torch::ArrayRef object.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator+= (BlockTensor< T, Dims... > &lhs, const BlockTensor< U, Dims... > &rhs) |
| Increments one compile-time block tensor by another.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator+= (BlockTensor< T, Dims... > &lhs, const U &rhs) |
| Increments a compile-time block tensor by a scalar.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator- (const BlockTensor< T, Dims... > &lhs, const BlockTensor< U, Dims... > &rhs) |
| Subtracts one compile-time block tensor from another and returns a new compile-time block tensor.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator- (const BlockTensor< T, Dims... > &lhs, const U &rhs) |
| Subtracts a scalar from a compile-time block tensor and returns a new compile-time block tensor.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator- (const T &lhs, const BlockTensor< U, Dims... > &rhs) |
| Subtracts a compile-time block tensor from a scalar and returns a new compile-time block tensor.
|
|
template<typename T , std::size_t N> |
constexpr std::array< T, N > | operator- (std::array< T, N > array) |
| Negates all entries of an std::array.
|
|
template<typename T , std::size_t N> |
constexpr std::array< T, N > | operator- (std::array< T, N > lhs, std::array< T, N > rhs) |
| Subtracts one std::array from another std::array.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator-= (BlockTensor< T, Dims... > &lhs, const BlockTensor< U, Dims... > &rhs) |
| Decrements one compile-time block tensor by another.
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | operator-= (BlockTensor< T, Dims... > &lhs, const U &rhs) |
| Decrements a compile-time block tensor by a scalar.
|
|
template<typename T , std::size_t N> |
constexpr std::array< T, N > | operator/ (std::array< T, N > lhs, std::array< T, N > rhs) |
| Divides one std::array by another std::array.
|
|
template<typename T , std::size_t... Dims> |
std::ostream & | operator<< (std::ostream &os, const BlockTensorCore< T, Dims... > &obj) |
| Prints (as string) a compile-time block tensor object.
|
|
template<typename T , typename U , std::size_t... TDims, std::size_t... UDims> |
bool | operator== (const BlockTensor< T, TDims... > &lhs, const BlockTensor< U, UDims... > &rhs) |
| Returns true if both compile-time block tensors are equal.
|
|
template<typename T , std::size_t... Dims> |
auto | positive (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | pow (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the power of each element in input with exponent other
|
|
template<typename T , std::size_t N> |
T | prod (std::array< T, N > array, std::size_t start_index=0, std::size_t stop_index=N - 1) |
| Computes the (partial) product of all std::array entries.
|
|
template<typename T , std::size_t... Dims> |
auto | rad2deg (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with each of the elements of input converted from angles in radians to degrees.
|
|
template<typename T , std::size_t... Dims> |
auto | real (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the real values of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | reciprocal (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the reciprocal of the elements of input
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | remainder (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Returns a new block tensor with the modulus of the elements of input
|
|
template<typename T , std::size_t N, std::size_t M = 1> |
constexpr std::array< T, N - M > | remove_from_back (std::array< T, N > array) |
| Derives an std::array object from a given std::array object dropping the last M entries.
|
|
template<typename T , std::size_t N, std::size_t M = 1> |
constexpr std::array< T, N - M > | remove_from_front (std::array< T, N > array) |
| Derives an std::array object from a given std::array object dropping the first M entries.
|
|
template<typename T , std::size_t... Dims> |
auto | round (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the elements of input rounded to the nearest integer.
|
|
template<typename T , std::size_t... Dims> |
auto | rsqrt (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the reciprocal of the square-root of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | sgn (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the signs of the elements of input , extension to complex value.
|
|
template<typename T , std::size_t... Dims> |
auto | sigmoid (const BlockTensor< T, Dims... > &input) |
| Alias for expit()
|
|
template<typename T , std::size_t... Dims> |
auto | sign (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the signs of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | signbit (const BlockTensor< T, Dims... > &input) |
| Tests if each element of input has its sign bit set (is less than zero) or not.
|
|
template<typename T , std::size_t... Dims> |
auto | sin (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the sine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | sinc (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the normalized sinc of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | sinh (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the hyperbolic sine of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | sqrt (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the square-root of the elements of input
|
|
template<typename T , std::size_t... Dims> |
auto | square (const BlockTensor< T, Dims... > &input) |
| Returns a new block tensor with the square of the elements of input
|
|
template<typename T , typename U , typename V , std::size_t... Dims> |
auto | sub (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other, V alpha=1.0) |
| Subtracts other, scaled by alpha, from input.
|
|
template<typename T , typename U , typename V , std::size_t... Dims> |
auto | subtract (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other, V alpha=1.0) |
| Alias for sub()
|
|
template<typename T , std::size_t N> |
T | sum (std::array< T, N > array, std::size_t start_index=0, std::size_t stop_index=N - 1) |
| Computes the (partial) sum of all std::array entries.
|
|
template<typename T , std::size_t... Dims> |
auto | tan (const BlockTensor< T, Dims... > &input) |
| Returns a new tensor with the tangent of the elements of input.
|
|
template<typename T , std::size_t... Dims> |
auto | tanh (const BlockTensor< T, Dims... > &input) |
| Returns a new tensor with the hyperbolic tangent of the elements of input.
|
|
template<typename... Args> |
auto | to_array (Args &&...args) |
| Converts a list of arguments into std::array.
|
|
template<std::size_t N, typename T > |
std::array< T, N > | to_array (std::vector< T > &&vector) |
| Converts an std::vector object into std::array.
|
|
template<typename T , std::size_t N> |
auto | to_ArrayRef (const std::array< T, N > &array) |
| Converts an std::array<int64_t, N> to a at::IntArrayRef object.
|
|
template<typename T , std::size_t N> |
auto | to_json (const torch::Tensor &tensor) |
| Converts a torch::Tensor object to a JSON object.
|
|
template<typename T , std::size_t N> |
auto | to_json (const torch::TensorAccessor< T, N > &accessor) |
| Converts a torch::TensorAccessor object to a JSON object.
|
|
template<typename T , std::size_t N, std::size_t M> |
auto | to_json (const utils::TensorArray< M > &tensors) |
| Converts an std::array of torch::Tensor objects to a JSON object.
|
|
template<typename... Args> |
auto | to_vector (Args &&...args) |
| Converts a list of arguments into std::vector.
|
|
template<typename T , std::size_t N> |
std::vector< T > | to_vector (std::array< T, N > &&array) |
| Converts an std::array object into std::vector.
|
|
template<typename T , std::size_t N> |
pugi::xml_node & | to_xml (const torch::Tensor &tensor, pugi::xml_node &root, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts a torch::Tensor object to an XML object.
|
|
template<typename T , std::size_t N> |
pugi::xml_document | to_xml (const torch::Tensor &tensor, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts a torch::Tensor object to an XML document object.
|
|
template<typename T , std::size_t N> |
pugi::xml_node & | to_xml (const torch::TensorAccessor< T, N > &accessor, torch::IntArrayRef sizes, pugi::xml_node &root, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts a torch::TensorAccessor object to an XML object.
|
|
template<typename T , std::size_t N> |
pugi::xml_document | to_xml (const torch::TensorAccessor< T, N > &accessor, torch::IntArrayRef sizes, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts a torch::TensorAccessor object to an XML document object.
|
|
template<typename T , std::size_t N, std::size_t M> |
pugi::xml_node & | to_xml (const utils::TensorArray< M > &tensors, pugi::xml_node &root, std::string tag="Matrix", int id=0, std::string label="") |
| Converts an std::array of torch::Tensor objects to an XML object.
|
|
template<typename T , std::size_t N, std::size_t M> |
pugi::xml_document | to_xml (const utils::TensorArray< M > &tensors, std::string tag="Matrix", int id=0, std::string label="", int index=-1) |
| Converts an std::array of torch::Tensor objects to an XML object.
|
|
template<typename T , std::size_t... Dims> |
auto | trunc (const BlockTensor< T, Dims... > &input) |
| Returns a new tensor with the truncated integer values of the elements of input.
|
|
template<bool transpose = false, std::size_t N> |
auto | VSlice (const utils::TensorArray< N > &index, const std::array< int64_t, N > &start_offset, const std::array< int64_t, N > &stop_offset, const std::array< int64_t, N - 1 > &leading_dim=make_array< int64_t, N - 1 >(1)) |
| Vectorized version of torch::indexing::Slice (see https://pytorch.org/cppdocs/notes/tensor_indexing.html)
|
|
template<bool transpose = false> |
auto | VSlice (torch::Tensor index, int64_t start_offset, int64_t stop_offset) |
| Vectorized version of torch::indexing::Slice (see https://pytorch.org/cppdocs/notes/tensor_indexing.html)
|
|
template<typename T , typename U , std::size_t... Dims> |
auto | xlogy (const BlockTensor< T, Dims... > &input, const BlockTensor< U, Dims... > &other) |
| Computes input * log(other)
|
|
template<typename... T> |
auto | zip (T &&...seqs) |
|
|
|
|
|
|
|
|
|
|