Skip to content
Snippets Groups Projects
Commit 0a652171 authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

add a function

parent cef30d52
No related branches found
No related tags found
No related merge requests found
...@@ -331,6 +331,13 @@ class STensor3 { ...@@ -331,6 +331,13 @@ class STensor3 {
return det; return det;
}; };
void print(const char *) const; void print(const char *) const;
double norm0() const{
double val = 0;
for (int i=0; i<9; i++)
if (fabs(_val[i])>val)
val = fabs(_val[i]);
return val;
};
}; };
// tensor product // tensor product
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment