28#ifndef _FUNCTIONS_HPP_
29#define _FUNCTIONS_HPP_
47 return 1.0 / (1.0 + std::abs(
x0 - std::sqrt(
x1)));
61 return (
x0 +
x1) / (1.0 + std::abs(
x2 -
x3));
69 return std::cos(
x0 *
x3) + std::sin(
x1 / (
x2 + 1.0));
std::complex< double > complex
Definition complex.hpp:38
Top header file of mptensor.
Test codes for Tensor.
Definition arithmetic.cc:42
complex cfunc4_1(Index idx, Shape shape)
Definition functions.hpp:72
double func2_1(Index idx, Shape shape)
Definition functions.hpp:44
double func4_2(Index idx, Shape shape)
Definition functions.hpp:64
complex cfunc2_1(Index idx, Shape shape)
Definition functions.hpp:50
double func4_1(Index idx, Shape shape)
Definition functions.hpp:56
complex cfunc4_2(Index idx, Shape shape)
Definition functions.hpp:80