33 for(
int i = 0; i < axes.
Rows(); i++){
34 for(
int j = 0; j < axes.
Rows(); j++) {
37 for(
int k = 0; k < axes.
Cols(); k++){
47 PZError <<
"\nError at " << __PRETTY_FUNCTION__;
63 for (
int r=0; r<axes.Rows(); r++) {
64 for (
int c=0; c<axes.Cols(); c++) {
65 axes(r,c) = axesv.
GetVal(r,c);
113 int dim = gradx.
Cols();
119 detjac = gradx(0,0)*gradx(1,1) - gradx(0,1)*gradx(1,0);
122 detjac = gradx(0,0)*gradx(1,1)*gradx(2,2) + gradx(0,1)*gradx(1,2)*gradx(2,0) + gradx(0,2)*gradx(1,0)*gradx(2,1) - gradx(0,2)*gradx(1,1)*gradx(2,0) - gradx(0,0)*gradx(1,2)*gradx(2,1) - gradx(0,1)*gradx(1,0)*gradx(2,2);
136 for (
int i=0; i<3; i++) {
137 for (
int j=0; j<nc; j++) {
138 for (
int k=0; k<nc; k++) {
139 gradx(i,j) += axes(k,i)*jac(k,j);
148 axes(0,0) =
sqrt(2.)/2.;
150 axes(0,2) =
sqrt(2.)/2.;
158 dudaxes.
Print(
"dudaxes=",std::cout);
160 dudx.
Print(
"dudx=",std::cout);
162 dudaxes.
Print(
"dudaxes=",std::cout);
bool IsZero(long double a)
Returns if the value a is close Zero as the allowable tolerance.
int Zero() override
Makes Zero all the elements.
Contains TPZMatrixclass which implements full matrix (using column major representation).
#define DebugStop()
Returns a message to user put a breakpoint in.
int64_t Rows() const
Returns number of rows.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ sqrt
Full matrix class. Matrix.
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
virtual void Multiply(const TPZFMatrix< TVar > &A, TPZFMatrix< TVar > &res, int opt=0) const
It mutiplies itself by TPZMatrix<TVar>A putting the result in res.
int64_t Cols() const
Returns number of cols.
virtual void Print(std::ostream &out) const
int Resize(const int64_t newRows, const int64_t wCols) override
Redimension a matrix, but maintain your elements.
const TVar & GetVal(const int64_t row, const int64_t col) const override
Get values without bounds checking This method is faster than "Get" if DEBUG is defined.
void Transpose(TPZMatrix< TVar > *const T) const override
It makes *T the transpose of current matrix.
Non abstract class which implements full matrices with preallocated storage with (N+1) entries...
#define PZError
Defines the output device to error messages and the DebugStop() function.