Mercurial > repos > public > sbplib
annotate skewPart.m @ 884:7d4f57725192 feature/poroelastic
Add a getBoundaryOperator method in multiblock.DiffOp that uses the the diffop get_boundary_operator method rather than its properties. Werpers might not like this.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 02 Nov 2018 10:47:03 -0700 |
parents | f8072bb8d1d1 |
children |
rev | line source |
---|---|
574
f8072bb8d1d1
Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
1 % Returns the skew of A |
f8072bb8d1d1
Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
2 function S = skewPart(A, tol) |
f8072bb8d1d1
Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
3 S = 1/2*(A - A'); |
f8072bb8d1d1
Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff
changeset
|
4 end |