Peano 4
Loading...
Searching...
No Matches
PeanoTextPatchFileWriter_VertexDataWriter.cpph
Go to the documentation of this file.
1
2template<typename T>
4 for (int i=0; i<_numberOfUnknowns; i++) {
5 if ( std::isnan(values[i]) ) {
6 _out << " nan";
7 }
8 else {
9 if ( std::abs(values[i]) < std::numeric_limits<T>::min() ) values[i] = 0.0;
10 if (tarch::la::equals(values[i],0.0)) {
11 _out << " 0";
12 }
13 else {
14 _out << " " << values[i];
15 }
16 }
18 }
20}
And from this we can write down f$ nabla phi_i nabla phi_i dx but since we are constructing matrix let s investigate the f$ our matrix elements will nabla phi_i dx f By this will be a sparse as these basis functions are chosen to not overlap with each other almost everywhere In other they have only local support We can read off the right hand side values
bool equals(const Matrix< Rows, Cols, Scalar > &lhs, const Matrix< Rows, Cols, Scalar > &rhs, const Scalar &tolerance=NUMERICAL_ZERO_DIFFERENCE)
Compares to matrices on equality by means of a numerical accuracy.