17 const int REALdim = 3;
23 typedef FADREAL_ FADREAL;
39 phiOut.
Redim(nphi, 1);
40 dphiOut.
Redim(nder, nphi);
43 for(i = 0; i < nphi; i++)
45 phiOut(i,0) = in[i].val();
46 for(j = 0; j < nder; j++)
48 dphiOut(j,i) = in[i].dx(j);
54 static REAL
val(
const int number)
58 static REAL
val(
const int64_t number)
62 static REAL
val(
const float number)
66 static REAL
val(
const double number)
70 static REAL
val(
const long double number)
74 static REAL
val(
const std::complex<float> number)
76 return (REAL)number.real();
78 static REAL
val(
const std::complex<double> number)
80 return (REAL)number.real();
82 static REAL
val(
const std::complex<long double> number)
84 return (REAL)number.real();
88 static REAL
val(
const T number)
94 static bool IsZero(
const T & a ){
104 #endif // End of _AUTODIFF define bool IsZero(long double a)
Returns if the value a is close Zero as the allowable tolerance.
Templated vector implementation.
This class implements a simple vector storage scheme for a templated class T. Utility.
REAL val(STATE &number)
Returns value of the variable.
int64_t size() const
Returns the number of elements of the vector.
Contains TPZMatrixclass which implements full matrix (using column major representation).
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
int64_t NElements() const
Returns the number of elements of the vector.
Contains the declaration of TPZFlopCounter class and TPZCounter struct.