public static void WriteVectorToFile <T>(T[] vector, string fileName) where T : new() { var formattedVector = MyMatrixFormatter.GetFormattedVector(vector); WriteToFile(fileName, formattedVector, vector.Length); }
public static void WriteMatrixToFile <T>(MyMatrix <T> matrix, string fileName) where T : new() { var formattedMatrix = MyMatrixFormatter.GetFormattedMatrix(matrix); WriteToFile(fileName, formattedMatrix, matrix.Rows); }