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; }
public static Matrix Cosh(Matrix m) { return m.MClone().Cosh(); }
public static Matrix Sech(Matrix m) { return m.MClone().Sech(); }
public static Matrix Tanh(Matrix m) { return m.MClone().Tanh(); }
public static Matrix Exp(Matrix m) { return m.MClone().Exp(); }
public static Matrix HeaviSide(Matrix m, double a, double fill) { return m.MClone().HeaviSide(a, fill); }
public static Matrix HeaviSide(Matrix m) { return m.MClone().HeaviSide(); }
public static Matrix Positive(Matrix m) { return m.MClone().Positive(); }