annotate skewPart.m @ 1037:2d7ba44340d0 feature/burgers1d

Pass scheme specific parameters as cell array. This will enabale constructDiffOps to be more general. In addition, allow for schemes returning function handles as diffOps, which is currently how non-linear schemes such as Burgers1d are implemented.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 18 Jan 2019 09:02:02 +0100
parents f8072bb8d1d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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