Mercurial > repos > public > sbplib
annotate skewPart.m @ 970:23d9ca6755be feature/poroelastic
Add getBoundaryQuadrature in Elastic2dVariable. Rename get_boundary_operator -> getBoundaryOperator. Add operators in getBoundaryOperator, with full size so that they work with multiblock.DiffOp.getBoundaryOperator.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 25 Dec 2018 07:23:38 +0100 |
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 |