44template void MathHelper::zero<LibUtilities::MemoryRegion<double>>(
46template void MathHelper::zero<LibUtilities::MemoryRegion<float>>(
48template void MathHelper::zero<LibUtilities::Field<double, FieldState::Phys>>(
50 const std::string &execSpace);
51template void MathHelper::zero<LibUtilities::Field<float, FieldState::Phys>>(
53 const std::string &execSpace);
54template void MathHelper::zero<LibUtilities::Field<double, FieldState::Coeff>>(
56 const std::string &execSpace);
57template void MathHelper::zero<LibUtilities::Field<float, FieldState::Coeff>>(
59 const std::string &execSpace);
62template void MathHelper::fill<double, LibUtilities::MemoryRegion<double>>(
64 const std::string &execSpace);
65template void MathHelper::fill<float, LibUtilities::MemoryRegion<float>>(
67 const std::string &execSpace);
71 const std::string &execSpace);
75 const std::string &execSpace);
79 const std::string &execSpace);
83 const std::string &execSpace);
86template void MathHelper::fillUniform<LibUtilities::MemoryRegion<double>>(
89template void MathHelper::fillUniform<LibUtilities::MemoryRegion<float>>(
96 const std::string &execSpace);
101 const std::string &execSpace);
106 const std::string &execSpace);
111 const std::string &execSpace);
114template void MathHelper::fillNormal<LibUtilities::MemoryRegion<double>>(
117template void MathHelper::fillNormal<LibUtilities::MemoryRegion<float>>(
124 const std::string &execSpace);
129 const std::string &execSpace);
134 const std::string &execSpace);
139 const std::string &execSpace);
142template void MathHelper::copy<LibUtilities::MemoryRegion<double>>(
145template void MathHelper::copy<LibUtilities::MemoryRegion<float>>(
147 const std::string &execSpace);
148template void MathHelper::copy<LibUtilities::Field<double, FieldState::Phys>>(
151 const std::string &execSpace);
152template void MathHelper::copy<LibUtilities::Field<float, FieldState::Phys>>(
155 const std::string &execSpace);
156template void MathHelper::copy<LibUtilities::Field<double, FieldState::Coeff>>(
159 const std::string &execSpace);
160template void MathHelper::copy<LibUtilities::Field<float, FieldState::Coeff>>(
163 const std::string &execSpace);
166template void MathHelper::abs<LibUtilities::MemoryRegion<double>>(
169template void MathHelper::abs<LibUtilities::MemoryRegion<float>>(
171 const std::string &execSpace);
172template void MathHelper::abs<LibUtilities::Field<double, FieldState::Phys>>(
175 const std::string &execSpace);
176template void MathHelper::abs<LibUtilities::Field<float, FieldState::Phys>>(
179 const std::string &execSpace);
180template void MathHelper::abs<LibUtilities::Field<double, FieldState::Coeff>>(
183 const std::string &execSpace);
184template void MathHelper::abs<LibUtilities::Field<float, FieldState::Coeff>>(
187 const std::string &execSpace);
190template void MathHelper::neg<LibUtilities::MemoryRegion<double>>(
193template void MathHelper::neg<LibUtilities::MemoryRegion<float>>(
195 const std::string &execSpace);
196template void MathHelper::neg<LibUtilities::Field<double, FieldState::Phys>>(
199 const std::string &execSpace);
200template void MathHelper::neg<LibUtilities::Field<float, FieldState::Phys>>(
203 const std::string &execSpace);
204template void MathHelper::neg<LibUtilities::Field<double, FieldState::Coeff>>(
207 const std::string &execSpace);
208template void MathHelper::neg<LibUtilities::Field<float, FieldState::Coeff>>(
211 const std::string &execSpace);
214template void MathHelper::sqrt<LibUtilities::MemoryRegion<double>>(
217template void MathHelper::sqrt<LibUtilities::MemoryRegion<float>>(
219 const std::string &execSpace);
220template void MathHelper::sqrt<LibUtilities::Field<double, FieldState::Phys>>(
223 const std::string &execSpace);
224template void MathHelper::sqrt<LibUtilities::Field<float, FieldState::Phys>>(
227 const std::string &execSpace);
228template void MathHelper::sqrt<LibUtilities::Field<double, FieldState::Coeff>>(
231 const std::string &execSpace);
232template void MathHelper::sqrt<LibUtilities::Field<float, FieldState::Coeff>>(
235 const std::string &execSpace);
238template void MathHelper::add<LibUtilities::MemoryRegion<double>>(
242template void MathHelper::add<LibUtilities::MemoryRegion<float>>(
245template void MathHelper::add<LibUtilities::Field<double, FieldState::Phys>>(
249 const std::string &execSpace);
250template void MathHelper::add<LibUtilities::Field<float, FieldState::Phys>>(
254 const std::string &execSpace);
255template void MathHelper::add<LibUtilities::Field<double, FieldState::Coeff>>(
259 const std::string &execSpace);
260template void MathHelper::add<LibUtilities::Field<float, FieldState::Coeff>>(
264 const std::string &execSpace);
267template void MathHelper::sub<LibUtilities::MemoryRegion<double>>(
271template void MathHelper::sub<LibUtilities::MemoryRegion<float>>(
274template void MathHelper::sub<LibUtilities::Field<double, FieldState::Phys>>(
278 const std::string &execSpace);
279template void MathHelper::sub<LibUtilities::Field<float, FieldState::Phys>>(
283 const std::string &execSpace);
284template void MathHelper::sub<LibUtilities::Field<double, FieldState::Coeff>>(
288 const std::string &execSpace);
289template void MathHelper::sub<LibUtilities::Field<float, FieldState::Coeff>>(
293 const std::string &execSpace);
296template void MathHelper::mul<LibUtilities::MemoryRegion<double>>(
299template void MathHelper::mul<LibUtilities::MemoryRegion<float>>(
302template void MathHelper::mul<LibUtilities::MemoryRegion<double>>(
306template void MathHelper::mul<LibUtilities::MemoryRegion<float>>(
309template void MathHelper::mul<LibUtilities::Field<double, FieldState::Phys>>(
312 const std::string &execSpace);
313template void MathHelper::mul<LibUtilities::Field<float, FieldState::Phys>>(
316 const std::string &execSpace);
317template void MathHelper::mul<LibUtilities::Field<double, FieldState::Coeff>>(
320 const std::string &execSpace);
321template void MathHelper::mul<LibUtilities::Field<float, FieldState::Coeff>>(
324 const std::string &execSpace);
325template void MathHelper::mul<LibUtilities::Field<double, FieldState::Phys>>(
329 const std::string &execSpace);
330template void MathHelper::mul<LibUtilities::Field<float, FieldState::Phys>>(
334 const std::string &execSpace);
335template void MathHelper::mul<LibUtilities::Field<double, FieldState::Coeff>>(
339 const std::string &execSpace);
340template void MathHelper::mul<LibUtilities::Field<float, FieldState::Coeff>>(
344 const std::string &execSpace);
347template void MathHelper::div<LibUtilities::MemoryRegion<double>>(
350template void MathHelper::div<LibUtilities::MemoryRegion<float>>(
353template void MathHelper::div<LibUtilities::MemoryRegion<double>>(
357template void MathHelper::div<LibUtilities::MemoryRegion<float>>(
360template void MathHelper::div<LibUtilities::Field<double, FieldState::Phys>>(
363 const std::string &execSpace);
364template void MathHelper::div<LibUtilities::Field<float, FieldState::Phys>>(
367 const std::string &execSpace);
368template void MathHelper::div<LibUtilities::Field<double, FieldState::Coeff>>(
371 const std::string &execSpace);
372template void MathHelper::div<LibUtilities::Field<float, FieldState::Coeff>>(
375 const std::string &execSpace);
376template void MathHelper::div<LibUtilities::Field<double, FieldState::Phys>>(
380 const std::string &execSpace);
381template void MathHelper::div<LibUtilities::Field<float, FieldState::Phys>>(
385 const std::string &execSpace);
386template void MathHelper::div<LibUtilities::Field<double, FieldState::Coeff>>(
390 const std::string &execSpace);
391template void MathHelper::div<LibUtilities::Field<float, FieldState::Coeff>>(
395 const std::string &execSpace);
398template void MathHelper::daxpy<LibUtilities::MemoryRegion<double>>(
402template void MathHelper::daxpy<LibUtilities::MemoryRegion<float>>(
405 const std::string &execSpace);
406template void MathHelper::daxpy<LibUtilities::Field<double, FieldState::Phys>>(
410 const std::string &execSpace);
411template void MathHelper::daxpy<LibUtilities::Field<float, FieldState::Phys>>(
415 const std::string &execSpace);
416template void MathHelper::daxpy<LibUtilities::Field<double, FieldState::Coeff>>(
420 const std::string &execSpace);
421template void MathHelper::daxpy<LibUtilities::Field<float, FieldState::Coeff>>(
425 const std::string &execSpace);
428template void MathHelper::daxpby<LibUtilities::MemoryRegion<double>>(
432template void MathHelper::daxpby<LibUtilities::MemoryRegion<float>>(
435 const std::string &execSpace);
436template void MathHelper::daxpby<LibUtilities::Field<double, FieldState::Phys>>(
440 const std::string &execSpace);
441template void MathHelper::daxpby<LibUtilities::Field<float, FieldState::Phys>>(
445 const std::string &execSpace);
451 const std::string &execSpace);
452template void MathHelper::daxpby<LibUtilities::Field<float, FieldState::Coeff>>(
456 const std::string &execSpace);
459template void MathHelper::daxpbypz<LibUtilities::MemoryRegion<double>>(
464template void MathHelper::daxpbypz<LibUtilities::MemoryRegion<float>>(
474 const std::string &execSpace);
481 const std::string &execSpace);
488 const std::string &execSpace);
495 const std::string &execSpace);
498template void MathHelper::daxpbypcz<LibUtilities::MemoryRegion<double>>(
503template void MathHelper::daxpbypcz<LibUtilities::MemoryRegion<float>>(
507 const std::string &execSpace);
514 const std::string &execSpace);
521 const std::string &execSpace);
528 const std::string &execSpace);
535 const std::string &execSpace);
540 const std::vector<double> &alpha,
541 const std::vector<LibUtilities::Field<double, FieldState::Phys> *> &x,
543 const std::string &execSpace);
546 const std::vector<float> &alpha,
547 const std::vector<LibUtilities::Field<float, FieldState::Phys> *> &x,
549 const std::string &execSpace);
552 const std::vector<double> &alpha,
553 const std::vector<LibUtilities::Field<double, FieldState::Coeff> *> &x,
555 const std::string &execSpace);
558 const std::vector<float> &alpha,
559 const std::vector<LibUtilities::Field<float, FieldState::Coeff> *> &x,
561 const std::string &execSpace);
564template double MathHelper::reduceSum<LibUtilities::MemoryRegion<double>>(
566template float MathHelper::reduceSum<LibUtilities::MemoryRegion<float>>(
568template double MathHelper::reduceSum<LibUtilities::MemoryRegion<uint8_t>,
572template float MathHelper::reduceSum<LibUtilities::MemoryRegion<uint8_t>,
579 const std::string &execSpace);
583 const std::string &execSpace);
587 const std::string &execSpace);
591 const std::string &execSpace);
597 const std::string &execSpace);
603 const std::string &execSpace);
609 const std::string &execSpace);
615 const std::string &execSpace);
618template double MathHelper::reduceMax<LibUtilities::MemoryRegion<double>>(
620template float MathHelper::reduceMax<LibUtilities::MemoryRegion<float>>(
622template double MathHelper::reduceMax<LibUtilities::MemoryRegion<uint8_t>,
626template float MathHelper::reduceMax<LibUtilities::MemoryRegion<uint8_t>,
633 const std::string &execSpace);
637 const std::string &execSpace);
641 const std::string &execSpace);
645 const std::string &execSpace);
651 const std::string &execSpace);
657 const std::string &execSpace);
663 const std::string &execSpace);
669 const std::string &execSpace);
672template double MathHelper::reduceMin<LibUtilities::MemoryRegion<double>>(
674template float MathHelper::reduceMin<LibUtilities::MemoryRegion<float>>(
676template double MathHelper::reduceMin<LibUtilities::MemoryRegion<uint8_t>,
680template float MathHelper::reduceMin<LibUtilities::MemoryRegion<uint8_t>,
687 const std::string &execSpace);
691 const std::string &execSpace);
695 const std::string &execSpace);
699 const std::string &execSpace);
705 const std::string &execSpace);
711 const std::string &execSpace);
717 const std::string &execSpace);
723 const std::string &execSpace);
726template double MathHelper::ddot<LibUtilities::MemoryRegion<double>>(
729template float MathHelper::ddot<LibUtilities::MemoryRegion<float>>(
731 const std::string &execSpace);
732template double MathHelper::ddot<LibUtilities::MemoryRegion<uint8_t>,
737template float MathHelper::ddot<LibUtilities::MemoryRegion<uint8_t>,
741 const std::string &execSpace);
742template double MathHelper::ddot<LibUtilities::Field<double, FieldState::Phys>>(
745 const std::string &execSpace);
746template float MathHelper::ddot<LibUtilities::Field<float, FieldState::Phys>>(
749 const std::string &execSpace);
754 const std::string &execSpace);
755template float MathHelper::ddot<LibUtilities::Field<float, FieldState::Coeff>>(
758 const std::string &execSpace);
759template double MathHelper::ddot<LibUtilities::Field<uint8_t, FieldState::Phys>,
764 const std::string &execSpace);
765template float MathHelper::ddot<LibUtilities::Field<uint8_t, FieldState::Phys>,
770 const std::string &execSpace);
777 const std::string &execSpace);
778template float MathHelper::ddot<LibUtilities::Field<uint8_t, FieldState::Coeff>,
783 const std::string &execSpace);
791 const std::string &execSpace);
797 const std::string &execSpace);
803 const std::string &execSpace);
809 const std::string &execSpace);
817 const std::string &execSpace);
825 const std::string &execSpace);
833 const std::string &execSpace);
841 const std::string &execSpace);
844template double MathHelper::l1norm<LibUtilities::MemoryRegion<double>>(
846template float MathHelper::l1norm<LibUtilities::MemoryRegion<float>>(
848template double MathHelper::l1norm<LibUtilities::MemoryRegion<uint8_t>,
852template float MathHelper::l1norm<LibUtilities::MemoryRegion<uint8_t>,
859 const std::string &execSpace);
860template float MathHelper::l1norm<LibUtilities::Field<float, FieldState::Phys>>(
862 const std::string &execSpace);
866 const std::string &execSpace);
870 const std::string &execSpace);
876 const std::string &execSpace);
882 const std::string &execSpace);
888 const std::string &execSpace);
894 const std::string &execSpace);
897template double MathHelper::l2norm<LibUtilities::MemoryRegion<double>>(
899template float MathHelper::l2norm<LibUtilities::MemoryRegion<float>>(
901template double MathHelper::l2norm<LibUtilities::MemoryRegion<uint8_t>,
905template float MathHelper::l2norm<LibUtilities::MemoryRegion<uint8_t>,
912 const std::string &execSpace);
913template float MathHelper::l2norm<LibUtilities::Field<float, FieldState::Phys>>(
915 const std::string &execSpace);
919 const std::string &execSpace);
923 const std::string &execSpace);
929 const std::string &execSpace);
935 const std::string &execSpace);
941 const std::string &execSpace);
947 const std::string &execSpace);
950template double MathHelper::linfnorm<LibUtilities::MemoryRegion<double>>(
952template float MathHelper::linfnorm<LibUtilities::MemoryRegion<float>>(
954template double MathHelper::linfnorm<LibUtilities::MemoryRegion<uint8_t>,
958template float MathHelper::linfnorm<LibUtilities::MemoryRegion<uint8_t>,
965 const std::string &execSpace);
969 const std::string &execSpace);
973 const std::string &execSpace);
977 const std::string &execSpace);
983 const std::string &execSpace);
989 const std::string &execSpace);
995 const std::string &execSpace);
1001 const std::string &execSpace);
A Field represents expansion data to be operated on.
A MemoryRegion represents a memory region.
LIB_MATH_EXPORT void daxpbypcz(const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, const typename T::value_type gamma, T &z, T &w, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type l2norm(T &, const std::string &execSpace="")
LIB_MATH_EXPORT void daxpby(const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type reduceMin(T &x, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type reduceMax(T &x, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type l1norm(T &x, const std::string &execSpace="")
LIB_MATH_EXPORT void daxpbypz(const typename T::value_type alpha, T &x, const typename T::value_type beta, T &y, T &z, T &w, const std::string &execSpace="")
LIB_MATH_EXPORT void fillNormal(RandomGenerator &gen, const typename T::value_type mean, const typename T::value_type sigma, T &x, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type linfnorm(T &x, const std::string &execSpace="")
LIB_MATH_EXPORT std::array< typename T::value_type, 2 > ddot2(T &x, T &y, T &z, const std::string &execSpace="")
LIB_MATH_EXPORT void fillUniform(RandomGenerator &gen, const typename T::value_type a, const typename T::value_type b, T &x, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type ddot(T &x, T &y, const std::string &execSpace="")
LIB_MATH_EXPORT T::value_type reduceSum(T &x, const std::string &execSpace="")
LIB_MATH_EXPORT void fill(const TData &val, T &x, const std::string &execSpace="")
LIB_MATH_EXPORT void linearCombination(const std::vector< typename T::value_type > &alpha, const std::vector< T * > &x, T &y, const bool append, const std::string &execSpace="")
Pseudo-random number generator behind Math::fillUniform and Math::fillNormal.
@ beta
Gauss Radau pinned at x=-1,.