Mercurial > repos > public > sbplib
annotate skewPart.m @ 1045:dc1bcbef2a86 feature/getBoundaryOp
Remove ability to get several boundary ops at the same time from a few of the schemes
While it can be handy the code for the getBoundaryOp methods get needlessly cluttered
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 22 Jan 2019 17:12:22 +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 |