Skip to content

write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1dT_write_funct_1d🔗

Short description🔗

write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1dT_write_funct_1d — Write a function to a file.

Signature🔗

write_funct_1d( function_1d Function, filename.write FileName )void WriteFunct1d( const HTuple& Function, const HTuple& FileName )static void HOperatorSet.WriteFunct1d( HTuple function, HTuple fileName )def write_funct_1d( function: Sequence[Union[float, int]], file_name: str ) -> None

Herror T_write_funct_1d( 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)

void HFunction1D.WriteFunct1d( string fileName )

Description🔗

The operator write_funct_1dWriteFunct1d writes the contents of Functionfunctionfunction 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_1dReadFunct1d. There is no specific extension for this kind of file.

Execution information🔗

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🔗

Functionfunctionfunction (input_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Function to be written.

FileNamefileNamefile_name (input_control) filename.write → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Name of the file to be written.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_funct_1d_pairsCreateFunct1dPairs, create_funct_1d_arrayCreateFunct1dArray

Alternatives

write_tupleWriteTuple, fwrite_stringFwriteString

See also

read_funct_1dReadFunct1d, write_imageWriteImage, write_regionWriteRegion, open_fileOpenFile

Module🔗

Foundation