Ejemplo n.º 1
0
 public static int read_file(double[] data, int[] num_rows, int[] num_cols, string file_name, int max_elements)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(DataHandlerLibrary64.read_file(data, num_rows, num_cols, file_name, max_elements));
     }
     else
     {
         return(DataHandlerLibrary32.read_file(data, num_rows, num_cols, file_name, max_elements));
     }
 }
Ejemplo n.º 2
0
        public static int read_file(double[] data, int[] num_rows, int[] num_cols, string file_name, int max_elements)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(DataHandlerLibrary64.read_file(data, num_rows, num_cols, file_name, max_elements));

            case LibraryEnvironment.x86:
                return(DataHandlerLibrary32.read_file(data, num_rows, num_cols, file_name, max_elements));

            case LibraryEnvironment.Linux:
                return(DataHandlerLibraryLinux.read_file(data, num_rows, num_cols, file_name, max_elements));

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

            return((int)CustomExitCodes.GENERAL_ERROR);
        }