ReadArrayXd
Reads a file containing an ArrayXd object.
Function Syntax
This function returns outputArrayXd.
// Function prototype
std::shared_ptr<iolink::ArrayXd> readArrayXd( std::string filePath, std::shared_ptr<iolink::ArrayXd> outputArrayXd = nullptr );
This function returns outputArrayXd.
// Function prototype. read_array_xd(file_path: str = "", output_array_xd: Union[idt.NDArrayFloat, None] = None) -> Union[idt.NDArrayFloat, None]
This function returns outputArrayXd.
// Function prototype. public static IOLink.ArrayXd ReadArrayXd( String filePath = "", IOLink.ArrayXd outputArrayXd = null );
Class Syntax
Parameters
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
filePath |
The path of the ArrayXd to read. | String | "" | ||
outputArrayXd |
The ArrayXd object read in the file. | ArrayXd | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
file_path |
The path of the ArrayXd to read. | string | "" | ||
output_array_xd |
The ArrayXd object read in the file. | arrayXd | nullptr |
Parameter Name | Description | Type | Supported Values | Default Value | |
---|---|---|---|---|---|
filePath |
The path of the ArrayXd to read. | String | "" | ||
outputArrayXd |
The ArrayXd object read in the file. | ArrayXd | nullptr |
Object Examples
ReadArrayXd readArrayXdAlgo; readArrayXdAlgo.setFilePath( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "surfaceMesh.arrayxd" ); readArrayXdAlgo.execute(); std::cout << "outputArrayXd:" << readArrayXdAlgo.outputArrayXd()->shape();
read_array_xd_algo = imagedev.ReadArrayXd() read_array_xd_algo.file_path = imagedev_data.get_object_path("surfaceMesh.arrayxd") read_array_xd_algo.execute() print("output_array_xd:", str(read_array_xd_algo.output_array_xd))
ReadArrayXd readArrayXdAlgo = new ReadArrayXd { filePath = @"Data/objects/surfaceMesh.arrayxd" }; readArrayXdAlgo.Execute(); Console.WriteLine( "outputArrayXd:" + readArrayXdAlgo.outputArrayXd.ToString() );
Function Examples
auto result = readArrayXd( std::string( IMAGEDEVDATA_OBJECTS_FOLDER ) + "surfaceMesh.arrayxd" ); std::cout << "outputArrayXd:" << result->shape();
result = imagedev.read_array_xd(imagedev_data.get_object_path("surfaceMesh.arrayxd")) print("output_array_xd:", str(result))
IOLink.ArrayXd result = Data.ReadArrayXd( @"Data/objects/surfaceMesh.arrayxd" ); Console.WriteLine( "outputArrayXd:" + result.ToString() );