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_1dReadFunct1dReadFunct1dReadFunct1dread_funct_1d reads the contents of FileNameFileNameFileNameFileNamefileNamefile_name and converts it into the function FunctionFunctionFunctionFunctionfunctionfunction. The file has be generated by write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1dwrite_funct_1d.

Execution Information

Parameters

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

Name of the file to be read.

FunctionFunctionFunctionFunctionfunctionfunction (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_1dReadFunct1dReadFunct1dReadFunct1dread_funct_1d returns the value TRUE. Otherwise an exception is raised.

Alternatives

fread_stringfread_stringFreadStringFreadStringFreadStringfread_string, read_tupleread_tupleReadTupleReadTupleReadTupleread_tuple

See also

write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1dwrite_funct_1d, write_imagewrite_imageWriteImageWriteImageWriteImagewrite_image, write_regionwrite_regionWriteRegionWriteRegionWriteRegionwrite_region, open_fileopen_fileOpenFileOpenFileOpenFileopen_file

Module

Foundation