Пример #1
0
 public static int write_file(double[] data, int num_rows, int num_cols, string file_name, string file_mode)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.write_file(data, num_rows, num_cols, file_name, file_mode));
     }
     else
     {
         return(DataHandlerLibrary32.write_file(data, num_rows, num_cols, file_name, file_mode));
     }
 }
Пример #2
0
        public static int write_file(double[] data, int num_rows, int num_cols, string file_name, string file_mode)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.write_file(data, num_rows, num_cols, file_name, file_mode));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.write_file(data, num_rows, num_cols, file_name, file_mode));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.write_file(data, num_rows, num_cols, file_name, file_mode));

            case LibraryEnvironment.MacOS:
                return(DataHandlerLibraryMac.write_file(data, num_rows, num_cols, file_name, file_mode));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }