Skip to content

Instantly share code, notes, and snippets.

@mariusz
Created January 19, 2009 19:49
Show Gist options
  • Save mariusz/49136 to your computer and use it in GitHub Desktop.
Save mariusz/49136 to your computer and use it in GitHub Desktop.
public double[][] MatrixH
{
get
{
if (matrixH != null)
{
return (double[][])matrixH;
}
double[][] he = new double[3][];
for (int i = 0; i < 3; i++)
he[i] = new double[3];
if (this.Dimension == 0.0)
return null;
he[0][0] = this.getHe(1, 2, 1, 2, 2, 1, 2, 1);
he[0][1] = this.getHe(1, 2, 2, 0, 2, 1, 0, 2);
he[0][2] = this.getHe(1, 2, 0, 1, 2, 1, 1, 0);
he[1][0] = this.getHe(2, 0, 1, 2, 0, 2, 2, 1);
he[1][1] = this.getHe(2, 0, 2, 0, 0, 2, 0, 2);
he[1][2] = this.getHe(2, 0, 0, 1, 0, 2, 1, 0);
he[2][0] = this.getHe(0, 1, 1, 2, 1, 0, 2, 1);
he[2][1] = this.getHe(0, 1, 2, 0, 1, 0, 0, 2);
he[2][2] = this.getHe(0, 1, 0, 1, 1, 0, 1, 0);
matrixH = he;
return he;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment