write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d (Operator)

Name

write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d — Write a function to a file.

Signature

write_funct_1d( : : Function, FileName : )

Herror T_write_funct_1d(const Htuple Function, const Htuple FileName)

void WriteFunct1d(const HTuple& Function, const HTuple& FileName)

void HFunction1D::WriteFunct1d(const HString& FileName) const

void HFunction1D::WriteFunct1d(const char* FileName) const

void HFunction1D::WriteFunct1d(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteFunct1d(HTuple function, HTuple fileName)

void HFunction1D.WriteFunct1d(string fileName)

def write_funct_1d(function: Sequence[Union[float, int]], file_name: str) -> None

Description

The operator write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1dwrite_funct_1d writes the contents of FunctionFunctionFunctionFunctionfunctionfunction to a file. The data is written in an ASCII format. Therefore, the file can be exchanged between different architectures (see also Tuple / String Operations). The data can be read by the operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1dread_funct_1d. There is no specific extension for this kind of file.

Execution Information

Parameters

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

Function to be written.

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

Name of the file to be written.

Result

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

Possible Predecessors

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array

Alternatives

write_tuplewrite_tupleWriteTupleWriteTupleWriteTuplewrite_tuple, fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteStringfwrite_string

See also

read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1dread_funct_1d, write_imagewrite_imageWriteImageWriteImageWriteImagewrite_image, write_regionwrite_regionWriteRegionWriteRegionWriteRegionwrite_region, open_fileopen_fileOpenFileOpenFileOpenFileopen_file

Module

Foundation