read_funct_1dReadFunct1dReadFunct1dread_funct_1dread_funct_1d
Short description
read_funct_1dReadFunct1dReadFunct1dread_funct_1dread_funct_1d — Read a function from a file.
Signature
read_funct_1d( filename.read FileName, out function_1d Function )void ReadFunct1d( const HTuple& FileName, HTuple* Function )static void HOperatorSet.ReadFunct1d( HTuple fileName, out HTuple function )def read_funct_1d( file_name: str ) -> Sequence[Union[float, int]]
def read_funct_1d_s( file_name: str ) -> Union[float, int]Herror read_funct_1d( const char* FileName, double* Function )
Herror T_read_funct_1d( const Htuple FileName, Htuple* Function )
void HFunction1D::ReadFunct1d( const HString& FileName )
void HFunction1D::ReadFunct1d( const char* FileName )
void HFunction1D::ReadFunct1d( const wchar_t* FileName ) (Windows only)
void HFunction1D.ReadFunct1d( string fileName )
Description
The operator read_funct_1dReadFunct1d reads the contents of
FileNamefileNamefile_name and converts it into the function
Functionfunctionfunction. The file has be generated by
write_funct_1dWriteFunct1d.
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters
FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)
Name of the file to be read.
Functionfunctionfunction (output_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)
Function from the file.
Result
If the parameters are correct the operator read_funct_1dReadFunct1d
returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.
Combinations with other operators
Combinations
Alternatives
fread_stringFreadString, read_tupleReadTuple
See also
write_funct_1dWriteFunct1d, write_imageWriteImage, write_regionWriteRegion, open_fileOpenFile
Module
Foundation