/dports/science/tfel/tfel-3.4.0/bindings/python/tfel/ |
H A D | stensor.cxx | 45 static tfel::math::stensor<N,double> 54 static tfel::math::stensor<N,double> 56 const tfel::math::stensor<N,double>& v2) in stensor_add() 62 static tfel::math::stensor<N,double> 70 static tfel::math::stensor<N,double> 83 using stensor = tfel::math::stensor<N,double>; in declarestensor() typedef 85 class_<stensor>(n,init<>()) in declarestensor() 91 .def("__iter__",iterator<stensor>()) in declarestensor() 117 static tfel::math::stensor<1u,double> 123 static tfel::math::stensor<2u,double> [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/bindings/python/tfel/ |
H A D | stensor.cxx | 45 static tfel::math::stensor<N,double> 54 static tfel::math::stensor<N,double> 56 const tfel::math::stensor<N,double>& v2) in stensor_add() 62 static tfel::math::stensor<N,double> 70 static tfel::math::stensor<N,double> 83 using stensor = tfel::math::stensor<N,double>; in declarestensor() typedef 85 class_<stensor>(n,init<>()) in declarestensor() 91 .def("__iter__",iterator<stensor>()) in declarestensor() 117 static tfel::math::stensor<1u,double> 123 static tfel::math::stensor<2u,double> [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/tests/Math/stensor/ |
H A D | stensor10.cxx | 47 stensor<1u,double> s(zero); in execute() 62 s = stensor<1u,double>(v1); in execute() 78 stensor<1u,double> pp; in check() 149 stensor<2u,double> pp; in check() 223 stensor<3u,double> pp; in check() 295 stensor<1u,double> pp; in check() 296 stensor<1u,double> np; in check() 376 stensor<2u,double> pp; in check() 377 stensor<2u,double> np; in check() 460 stensor<3u,double> pp; in check() [all …]
|
H A D | InvariantsDerivatives.cxx | 35 static tfel::math::stensor<N,real> 39 tfel::math::stensor<N,real> r; in getNumericalApproximation() 109 using stensor = tfel::math::stensor<N,double>; in check() typedef 115 auto I1 = [](const stensor& v){ in check() 128 auto dI1 = [](const stensor&) -> stensor{ in check() argument 129 return stensor::Id(); in check() 131 auto dI2 = [&I1](const stensor& v) -> stensor{ in check() 135 auto dI3 = [&I1,&I2](const stensor& v) -> stensor{ in check() 139 auto diJb = [&I3,&dI3,&iJb](const stensor& v) -> stensor{ in check() 144 const auto id = stensor::Id(); in check() [all …]
|
H A D | ComputeDeviatorDeterminantDerivativeTest.cxx | 31 static tfel::math::stensor<N,real> 34 tfel::math::stensor<N,real> r; in getNumericalApproximation() 63 this->check(tfel::math::stensor<1u,double>(v0)); in execute() 64 this->check(tfel::math::stensor<2u,double>(v0)); in execute() 65 this->check(tfel::math::stensor<3u,double>(v0)); in execute() 66 this->check(tfel::math::stensor<1u,double>(v1)); in execute() 67 this->check(tfel::math::stensor<2u,double>(v1)); in execute() 68 this->check(tfel::math::stensor<3u,double>(v1)); in execute() 69 this->check(tfel::math::stensor<1u,double>(v2)); in execute() 70 this->check(tfel::math::stensor<2u,double>(v2)); in execute() [all …]
|
/dports/science/tfel/tfel-3.4.0/tests/Math/stensor/ |
H A D | stensor10.cxx | 47 stensor<1u,double> s(zero); in execute() 62 s = stensor<1u,double>(v1); in execute() 78 stensor<1u,double> pp; in check() 149 stensor<2u,double> pp; in check() 223 stensor<3u,double> pp; in check() 295 stensor<1u,double> pp; in check() 296 stensor<1u,double> np; in check() 376 stensor<2u,double> pp; in check() 377 stensor<2u,double> np; in check() 460 stensor<3u,double> pp; in check() [all …]
|
H A D | InvariantsDerivatives.cxx | 35 static tfel::math::stensor<N,real> 39 tfel::math::stensor<N,real> r; in getNumericalApproximation() 109 using stensor = tfel::math::stensor<N,double>; in check() typedef 115 auto I1 = [](const stensor& v){ in check() 128 auto dI1 = [](const stensor&) -> stensor{ in check() argument 129 return stensor::Id(); in check() 131 auto dI2 = [&I1](const stensor& v) -> stensor{ in check() 135 auto dI3 = [&I1,&I2](const stensor& v) -> stensor{ in check() 139 auto diJb = [&I3,&dI3,&iJb](const stensor& v) -> stensor{ in check() 144 const auto id = stensor::Id(); in check() [all …]
|
H A D | ComputeDeviatorDeterminantDerivativeTest.cxx | 31 static tfel::math::stensor<N,real> 34 tfel::math::stensor<N,real> r; in getNumericalApproximation() 63 this->check(tfel::math::stensor<1u,double>(v0)); in execute() 64 this->check(tfel::math::stensor<2u,double>(v0)); in execute() 65 this->check(tfel::math::stensor<3u,double>(v0)); in execute() 66 this->check(tfel::math::stensor<1u,double>(v1)); in execute() 67 this->check(tfel::math::stensor<2u,double>(v1)); in execute() 68 this->check(tfel::math::stensor<3u,double>(v1)); in execute() 69 this->check(tfel::math::stensor<1u,double>(v2)); in execute() 70 this->check(tfel::math::stensor<2u,double>(v2)); in execute() [all …]
|
/dports/science/tfel/tfel-3.4.0/include/TFEL/Math/Stensor/ |
H A D | stensorResultType.hxx | 32 class UnaryResultType<stensor<N,T>,OpNeg> 38 stensor<N,ResBase_>>::type type; 53 stensor<N,ResBase_> >::type type; 68 stensor<N,ResBase_> >::type type; 83 stensor<N,ResBase_> >::type type; 91 class ResultType<stensor<N,T>,stensor<N,T2>,OpPlus> 105 class ResultType<stensor<N,T>,stensor<N,T2>,OpMinus> 119 class ResultType<stensor<N,T>,stensor<N,T2>,OpMult> 133 class ResultType<stensor<N,T>,stensor<N,T2>,OpDiadicProduct> 147 class ResultType<stensor<N,T>, [all …]
|
H A D | stensor.ixx | 132 constexpr stensor<N, T>::stensor(const T2& init) 150 stensor<N, T>::stensor(const InputIterator p) { 163 constexpr stensor<N, T>::stensor(const stensor<N, T2>& src) 172 stensor<N, T>::stensor(const Expr<stensor<N, T2>, Operation>& src) { 379 std::tuple<stensor<N, T>, stensor<N, T>, stensor<N, T>> 403 std::tuple<stensor<N, T>, stensor<N, T>, stensor<N, T>> 406 std::tuple<stensor<N, T>, stensor<N, T>, stensor<N, T>> r; 462 stensor<N, T2> stensor<N, T>::computeIsotropicFunction( 605 constexpr stensor<N, T> stensor<N, T>::Id() { 742 stensor<N, T> stensor<N, T>::buildFromEigenValuesAndVectors( [all …]
|
H A D | StensorView.hxx | 44 struct Expr<stensor<N, T>, StensorViewExpr<N, T>> 45 : public StensorConcept<Expr<stensor<N, T>, StensorViewExpr<N, T>>>, 46 public stensor_base<Expr<stensor<N, T>, StensorViewExpr<N, T>>> { 48 typedef typename stensor<N, T>::value_type value_type; 49 typedef typename stensor<N, T>::pointer pointer; 50 typedef typename stensor<N, T>::const_pointer const_pointer; 51 typedef typename stensor<N, T>::reference reference; 52 typedef typename stensor<N, T>::const_reference const_reference; 53 typedef typename stensor<N, T>::size_type size_type; 54 typedef typename stensor<N, T>::difference_type difference_type; [all …]
|
H A D | StensorFromTinyVectorView.hxx | 54 struct Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>> 55 : public StensorConcept<Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>>>, 56 public stensor_base<Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>>> 59 typedef typename stensor<N,T>::value_type value_type; 60 typedef typename stensor<N,T>::pointer pointer; 61 typedef typename stensor<N,T>::const_pointer const_pointer; 62 typedef typename stensor<N,T>::reference reference; 63 typedef typename stensor<N,T>::const_reference const_reference; 64 typedef typename stensor<N,T>::size_type size_type; 65 typedef typename stensor<N,T>::difference_type difference_type; [all …]
|
H A D | ConstStensorView.hxx | 46 struct Expr<stensor<N,T>,ConstStensorViewExpr<N,T> > 47 : public StensorConcept<Expr<stensor<N,T>,ConstStensorViewExpr<N,T> > > 50 typedef typename stensor<N,T>::value_type value_type; 51 typedef typename stensor<N,T>::pointer pointer; 52 typedef typename stensor<N,T>::const_pointer const_pointer; 53 typedef typename stensor<N,T>::reference reference; 54 typedef typename stensor<N,T>::const_reference const_reference; 55 typedef typename stensor<N,T>::size_type size_type; 56 typedef typename stensor<N,T>::difference_type difference_type; 109 using ConstStensorView = Expr<stensor<N,T>,ConstStensorViewExpr<N,T>>;
|
/dports/science/tfel-edf/tfel-3.2.1/include/TFEL/Math/Stensor/ |
H A D | stensorResultType.hxx | 32 class UnaryResultType<stensor<N,T>,OpNeg> 38 stensor<N,ResBase_>>::type type; 53 stensor<N,ResBase_> >::type type; 68 stensor<N,ResBase_> >::type type; 83 stensor<N,ResBase_> >::type type; 91 class ResultType<stensor<N,T>,stensor<N,T2>,OpPlus> 105 class ResultType<stensor<N,T>,stensor<N,T2>,OpMinus> 119 class ResultType<stensor<N,T>,stensor<N,T2>,OpMult> 133 class ResultType<stensor<N,T>,stensor<N,T2>,OpDiadicProduct> 147 class ResultType<stensor<N,T>, [all …]
|
H A D | stensor.ixx | 126 constexpr stensor<N,T>::stensor(const T2& init) 142 stensor<N,T>::stensor(const InputIterator p) 152 constexpr stensor<N,T>::stensor(const stensor<N,T2>& src) 159 stensor<N,T>::stensor(const Expr<stensor<N,T2>,Operation>& src) 363 std::tuple<stensor<N,T>,stensor<N,T>,stensor<N,T>> 386 std::tuple<stensor<N,T>,stensor<N,T>,stensor<N,T>> 389 std::tuple<stensor<N,T>,stensor<N,T>,stensor<N,T>> r; 718 stensor<N,T> 729 stensor<N,T> 740 stensor<N,T> [all …]
|
H A D | StensorView.hxx | 46 struct Expr<stensor<N,T>,StensorViewExpr<N,T> > 47 : public StensorConcept<Expr<stensor<N,T>,StensorViewExpr<N,T> > >, 48 public stensor_base<Expr<stensor<N,T>,StensorViewExpr<N,T> > > 51 typedef typename stensor<N,T>::value_type value_type; 52 typedef typename stensor<N,T>::pointer pointer; 53 typedef typename stensor<N,T>::const_pointer const_pointer; 54 typedef typename stensor<N,T>::reference reference; 55 typedef typename stensor<N,T>::const_reference const_reference; 56 typedef typename stensor<N,T>::size_type size_type; 57 typedef typename stensor<N,T>::difference_type difference_type; [all …]
|
H A D | StensorFromTinyVectorView.hxx | 54 struct Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>> 55 : public StensorConcept<Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>>>, 56 public stensor_base<Expr<stensor<N,T>,StensorFromTinyVectorViewExpr<N,Mn,In,T>>> 59 typedef typename stensor<N,T>::value_type value_type; 60 typedef typename stensor<N,T>::pointer pointer; 61 typedef typename stensor<N,T>::const_pointer const_pointer; 62 typedef typename stensor<N,T>::reference reference; 63 typedef typename stensor<N,T>::const_reference const_reference; 64 typedef typename stensor<N,T>::size_type size_type; 65 typedef typename stensor<N,T>::difference_type difference_type; [all …]
|
H A D | ConstStensorView.hxx | 46 struct Expr<stensor<N,T>,ConstStensorViewExpr<N,T> > 47 : public StensorConcept<Expr<stensor<N,T>,ConstStensorViewExpr<N,T> > > 50 typedef typename stensor<N,T>::value_type value_type; 51 typedef typename stensor<N,T>::pointer pointer; 52 typedef typename stensor<N,T>::const_pointer const_pointer; 53 typedef typename stensor<N,T>::reference reference; 54 typedef typename stensor<N,T>::const_reference const_reference; 55 typedef typename stensor<N,T>::size_type size_type; 56 typedef typename stensor<N,T>::difference_type difference_type; 109 using ConstStensorView = Expr<stensor<N,T>,ConstStensorViewExpr<N,T>>;
|
/dports/science/tfel/tfel-3.4.0/include/TFEL/Math/ |
H A D | stensor.hxx | 230 TFEL_MATH_INLINE constexpr stensor(const stensor<N, T>&) = default; 238 TFEL_MATH_INLINE constexpr stensor(const stensor<N, T2>&); 249 stensor& operator=(const stensor&) = default; 591 std::tuple<stensor<N, T>, stensor<N, T>, stensor<N, T>> 625 static std::tuple<stensor<N, T>, stensor<N, T>, stensor<N, T>> 1046 stensor<1u, 1059 stensor<2u, 1072 stensor<3u, 1288 stensor<3u, 1308 stensor<2u, [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/include/TFEL/Math/ |
H A D | stensor.hxx | 192 stensor(const stensor<N,T>&) = default; 199 stensor(const stensor<N,T2>&); 206 stensor(const Expr<stensor<N,T2>,Operation>& src); 208 stensor& operator = (const stensor&) =default; 420 stensor<N,T> >::type 434 stensor<N,T> >::type 451 stensor<N,T> >::type 552 std::tuple<stensor<N,T>,stensor<N,T>,stensor<N,T>> 582 static std::tuple<stensor<N,T>,stensor<N,T>,stensor<N,T>> 642 static stensor<N,T2> [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/tests/Math/ExpressionTemplates/ |
H A D | Expr8.cxx | 42 using stensor = stensor<2u,double>; in execute() typedef 43 const stensor s1{3.,4.,5.,0.}; in execute() 44 const stensor id = stensor::Id(); in execute() 46 using res = BinaryOperationResult<int&&,const stensor&,OpMult>; in execute() 48 using handler = Expr<stensor,ScalarObjectOperation<double&&,const stensor&,OpMult>>; in execute() 55 TFEL_TESTS_STATIC_ASSERT((is_same<res,stensor>::value)); in execute() 60 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::rhs_type,const stensor&>::value)); in execute() 61 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::rhs_storage_type,const stensor&>::value)); in execute() 62 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::result_type,stensor>::value)); in execute() 73 …TFEL_TESTS_STATIC_ASSERT((isBinaryOperationResultTypeValid<const stensor&,const handler&,OpMinus>:… in execute() [all …]
|
/dports/science/tfel/tfel-3.4.0/tests/Math/ExpressionTemplates/ |
H A D | Expr8.cxx | 42 using stensor = stensor<2u,double>; in execute() typedef 43 const stensor s1{3.,4.,5.,0.}; in execute() 44 const stensor id = stensor::Id(); in execute() 46 using res = BinaryOperationResult<int&&,const stensor&,OpMult>; in execute() 48 using handler = Expr<stensor,ScalarObjectOperation<double&&,const stensor&,OpMult>>; in execute() 55 TFEL_TESTS_STATIC_ASSERT((is_same<res,stensor>::value)); in execute() 60 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::rhs_type,const stensor&>::value)); in execute() 61 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::rhs_storage_type,const stensor&>::value)); in execute() 62 TFEL_TESTS_STATIC_ASSERT((is_same<decltype(expr)::result_type,stensor>::value)); in execute() 73 …TFEL_TESTS_STATIC_ASSERT((isBinaryOperationResultTypeValid<const stensor&,const handler&,OpMinus>:… in execute() [all …]
|
/dports/science/tfel/tfel-3.4.0/include/TFEL/Math/Stensor/Internals/ |
H A D | StensorComputeIsotropicFunctionDerivative.hxx | 119 using stensor = tfel::math::stensor<2u, real>; in exe() typedef 121 stensor n0, n1, n2; in exe() 122 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 192 using stensor = tfel::math::stensor<3u, real>; in exe() typedef 203 stensor n0, n1, n2; in exe() 204 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 220 stensor n0, n1, n2; in exe() 221 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 237 stensor n0, n1, n2; in exe() 238 stensor::computeEigenTensors(n0, n1, n2, m); in exe() [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/include/TFEL/Math/Stensor/Internals/ |
H A D | StensorComputeIsotropicFunctionDerivative.hxx | 119 using stensor = tfel::math::stensor<2u, real>; in exe() typedef 121 stensor n0, n1, n2; in exe() 122 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 192 using stensor = tfel::math::stensor<3u, real>; in exe() typedef 203 stensor n0, n1, n2; in exe() 204 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 220 stensor n0, n1, n2; in exe() 221 stensor::computeEigenTensors(n0, n1, n2, m); in exe() 237 stensor n0, n1, n2; in exe() 238 stensor::computeEigenTensors(n0, n1, n2, m); in exe() [all …]
|
/dports/science/tfel-edf/tfel-3.2.1/tests/Math/st2tot2/ |
H A D | StensorProductDerivative2.cxx | 62 const stensor<N> eel(veel); in execute() 72 const stensor<N> tmp = stensor<N>::Id()+2*eel; in execute() 73 const stensor<N> S = D*eel; in execute() 78 for(typename stensor<N>::size_type i=0;i!=eel.size();++i){ in execute() 79 stensor<N> eel_e(eel); in execute() 81 const stensor<N> tmp_p = stensor<N>::Id()+2*eel_e; in execute() 82 const stensor<N> S_p = D*eel_e; in execute() 85 const stensor<N> tmp_m = stensor<N>::Id()+2*eel_e; in execute() 86 const stensor<N> S_m = D*eel_e; in execute() 93 for(typename stensor<N>::size_type j=0;j!=eel.size();++j){ in execute()
|