Definition at line 14 of file vector_value_test.C.
◆ RealVectorValueTest()
RealVectorValueTest::RealVectorValueTest |
( |
| ) |
|
|
inline |
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
VECTORVALUETEST RealVectorValueTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ setUp()
Definition at line 72 of file type_vector_test.h.
74 m_1_1_1 = std::make_unique<DerivedClass>(1);
75 m_n1_1_n1 = std::make_unique<DerivedClass>(-1);
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ tearDown()
◆ testAssignment()
Definition at line 162 of file type_vector_test.h.
168 for (
int i = 0; i != LIBMESH_DIM; ++i)
169 CPPUNIT_ASSERT_EQUAL(
T(1), (avector)(i) );
TypeVector< T > * basem_1_1_1
VectorValue< Real > ::value_type T
◆ testAssignmentBase()
Definition at line 377 of file type_vector_test.h.
383 for (
int i = 0; i != LIBMESH_DIM; ++i)
384 CPPUNIT_ASSERT_EQUAL(
T(1), (avector)(i) );
This class defines a vector in LIBMESH_DIM dimensional space of type T.
VectorValue< Real > ::value_type T
◆ testEquality()
Definition at line 142 of file type_vector_test.h.
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ testEqualityBase()
Definition at line 361 of file type_vector_test.h.
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
◆ testInEquality()
Definition at line 152 of file type_vector_test.h.
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ testInEqualityBase()
Definition at line 369 of file type_vector_test.h.
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
◆ testIsZero()
Definition at line 321 of file type_vector_test.h.
327 DerivedClass avector(0,0,0);
328 #elif LIBMESH_DIM > 1 329 DerivedClass avector(0,0);
331 DerivedClass avector(0);
333 CPPUNIT_ASSERT(avector.is_zero());
337 DerivedClass avector(1,1,1);
338 #elif LIBMESH_DIM > 1 339 DerivedClass avector(1,1);
341 DerivedClass avector(1);
343 CPPUNIT_ASSERT(!avector.is_zero());
◆ testNorm()
Definition at line 128 of file type_vector_test.h.
static constexpr Real TOLERANCE
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
std::unique_ptr< VectorValue< Real > > m_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testNormBase()
Definition at line 347 of file type_vector_test.h.
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testNormSq()
Definition at line 135 of file type_vector_test.h.
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testNormSqBase()
Definition at line 354 of file type_vector_test.h.
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testReplaceAlgebraicType()
Definition at line 493 of file type_vector_test.h.
495 #ifdef LIBMESH_HAVE_METAPHYSICL 496 typedef typename MetaPhysicL::ReplaceAlgebraicType<
497 std::vector<TypeVector<double>>,
499 typename MetaPhysicL::ValueType<std::vector<TypeVector<double>>>::type>::type>::type
501 constexpr
bool assertion =
502 std::is_same<ReplacedType, std::vector<TensorValue<double>>>
::value;
503 CPPUNIT_ASSERT(assertion);
◆ testScalarDiv()
Definition at line 198 of file type_vector_test.h.
202 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testScalarDivAssign()
Definition at line 217 of file type_vector_test.h.
224 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testScalarDivAssignBase()
Definition at line 414 of file type_vector_test.h.
421 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testScalarDivBase()
Definition at line 395 of file type_vector_test.h.
399 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
◆ testScalarInit()
Definition at line 172 of file type_vector_test.h.
176 DerivedClass avector = 0;
177 for (
int i = 0; i != LIBMESH_DIM; ++i)
180 DerivedClass bvector = 2.0;
182 for (
int i = 1; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
◆ testScalarMult()
Definition at line 186 of file type_vector_test.h.
190 for (
int i = 0; i != LIBMESH_DIM; ++i)
TypeTensor< typename CompareTypes< T, T2 >::supertype > outer_product(const TypeVector< T > &a, const TypeVector< T2 > &b)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
◆ testScalarMultAssign()
Definition at line 206 of file type_vector_test.h.
213 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
◆ testScalarMultAssignBase()
Definition at line 403 of file type_vector_test.h.
410 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
◆ testScalarMultBase()
Definition at line 387 of file type_vector_test.h.
391 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
◆ testValue()
Definition at line 93 of file type_vector_test.h.
97 CPPUNIT_ASSERT_EQUAL(
T(1), (*
m_1_1_1)(0));
101 CPPUNIT_ASSERT_EQUAL(
T(1), (*
m_1_1_1)(1));
102 CPPUNIT_ASSERT_EQUAL(
T(1) , (*
m_n1_1_n1)(1));
106 CPPUNIT_ASSERT_EQUAL(
T(1), (*
m_1_1_1)(2));
107 CPPUNIT_ASSERT_EQUAL(
T(-1), (*
m_n1_1_n1)(2));
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
VectorValue< Real > ::value_type T
◆ testValueBase()
Definition at line 296 of file type_vector_test.h.
300 for (
int i = 0; i != LIBMESH_DIM; ++i)
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
VectorValue< Real > ::value_type T
◆ testVectorAdd()
Definition at line 228 of file type_vector_test.h.
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ testVectorAddAssign()
Definition at line 271 of file type_vector_test.h.
278 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
◆ testVectorAddAssignBase()
Definition at line 468 of file type_vector_test.h.
473 avector+=(*basem_1_1_1);
475 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
◆ testVectorAddBase()
Definition at line 425 of file type_vector_test.h.
static constexpr Real TOLERANCE
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
◆ testVectorAddScaled()
Definition at line 239 of file type_vector_test.h.
244 avector.add_scaled((*
m_1_1_1),0.5);
246 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
std::unique_ptr< VectorValue< Real > > m_1_1_1
◆ testVectorAddScaledBase()
Definition at line 436 of file type_vector_test.h.
443 for (
int i = 0; i != LIBMESH_DIM; ++i)
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
std::unique_ptr< VectorValue< Real > > m_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
◆ testVectorMult()
Definition at line 261 of file type_vector_test.h.
265 if (LIBMESH_DIM == 2)
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ testVectorMultBase()
Definition at line 458 of file type_vector_test.h.
462 if (LIBMESH_DIM == 2)
static constexpr Real TOLERANCE
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
◆ testVectorSub()
Definition at line 250 of file type_vector_test.h.
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
std::unique_ptr< VectorValue< Real > > m_n1_1_n1
◆ testVectorSubAssign()
Definition at line 282 of file type_vector_test.h.
287 avector-=(*m_n1_1_n1);
static constexpr Real TOLERANCE
TypeVector< T > * basem_1_1_1
◆ testVectorSubAssignBase()
Definition at line 479 of file type_vector_test.h.
484 avector-=(*basem_n1_1_n1);
static constexpr Real TOLERANCE
std::unique_ptr< VectorValue< Real > > m_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
◆ testVectorSubBase()
Definition at line 447 of file type_vector_test.h.
static constexpr Real TOLERANCE
TypeVector< T > * basem_n1_1_n1
TypeVector< T > * basem_1_1_1
◆ testZero()
Definition at line 111 of file type_vector_test.h.
116 DerivedClass avector(1,1,1);
117 #elif LIBMESH_DIM > 1 118 DerivedClass avector(1,1);
120 DerivedClass avector(1);
124 for (
int i = 0; i != LIBMESH_DIM; ++i)
125 CPPUNIT_ASSERT_EQUAL(
T(0), avector(i));
VectorValue< Real > ::value_type T
◆ testZeroBase()
Definition at line 310 of file type_vector_test.h.
317 for (
int i = 0; i != LIBMESH_DIM; ++i)
318 CPPUNIT_ASSERT_EQUAL(
T(0), avector(i));
TypeVector< T > * basem_1_1_1
This class defines a vector in LIBMESH_DIM dimensional space of type T.
VectorValue< Real > ::value_type T
◆ libmesh_suite_name
The documentation for this class was generated from the following file: