TEUCHOS_UNIT_TEST( Stokhos_PCE, UMinus) { UTS setup; UTS::pce_type u = -setup.sin_x; UTS::opa_type u_opa(setup.basis); setup.exp->unaryMinus(u_opa, setup.sin_x_opa); success = Stokhos::comparePCEs(u, "u", u_opa, "u_opa", setup.rtol, setup.atol, out); }
TEUCHOS_UNIT_TEST( Stokhos_PCE, UMinus) { UTS::pce_type v = std::sin(setup.x); UTS::pce_type u = -v; UTS::opa_type u_opa(setup.basis); setup.exp->unaryMinus(u_opa, v.getOrthogPolyApprox()); success = Stokhos::comparePCEs(u.getOrthogPolyApprox(), "u", u_opa, "u_opa", setup.rtol, setup.atol, out); }