Example #1
0
 public static Matrix TransposeOf(Matrix m)
 {
     if ((m.r != 1) && (m.c != 1))
     {
         double[] destinationArray = new double[m.r * m.c];
         for (int i = 0; i < m.c; i++)
         {
             Array.Copy(m[false, new int[] { i }].data, 0, destinationArray, i * m.r, m.r);
         }
         return new Matrix(m.c, m.r, destinationArray, false, m.noiseLevel);
     }
     Matrix matrix = m.MClone();
     matrix.r = m.c;
     matrix.c = m.r;
     return matrix;
 }
Example #2
0
 public static Matrix Cosh(Matrix m)
 {
     return m.MClone().Cosh();
 }
Example #3
0
 public static Matrix Sech(Matrix m)
 {
     return m.MClone().Sech();
 }
Example #4
0
 public static Matrix Tanh(Matrix m)
 {
     return m.MClone().Tanh();
 }
Example #5
0
 public static Matrix Exp(Matrix m)
 {
     return m.MClone().Exp();
 }
Example #6
0
 public static Matrix HeaviSide(Matrix m, double a, double fill)
 {
     return m.MClone().HeaviSide(a, fill);
 }
Example #7
0
 public static Matrix HeaviSide(Matrix m)
 {
     return m.MClone().HeaviSide();
 }
Example #8
0
 public static Matrix Positive(Matrix m)
 {
     return m.MClone().Positive();
 }