read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d (Operator)

Name

read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d — Read a function from a file.

Signature

read_funct_1d( : : FileName : Function)

Herror read_funct_1d(const char* FileName, double* Function)

Herror T_read_funct_1d(const Htuple FileName, Htuple* Function)

void ReadFunct1d(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)

static void HOperatorSet.ReadFunct1d(HTuple fileName, out HTuple function)

void HFunction1D.ReadFunct1d(string fileName)

def read_funct_1d(file_name: str) -> Sequence[Union[float, int]]

def read_funct_1d_s(file_name: str) -> Union[float, int]

Description

The operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d reads the contents of FileNameFileNameFileNamefileNamefile_name and converts it into the function FunctionFunctionFunctionfunctionfunction. The file has be generated by write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d.

Execution Information

Parameters

FileNameFileNameFileNamefileNamefile_name (input_control)  filename.read HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the file to be read.

FunctionFunctionFunctionfunctionfunction (output_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Function from the file.

Result

If the parameters are correct the operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d returns the value 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

Alternatives

fread_stringfread_stringFreadStringFreadStringfread_string, read_tupleread_tupleReadTupleReadTupleread_tuple

See also

write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d, write_imagewrite_imageWriteImageWriteImagewrite_image, write_regionwrite_regionWriteRegionWriteRegionwrite_region, open_fileopen_fileOpenFileOpenFileopen_file

Module

Foundation