A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.arrayfire.org/docs/group__print__func__tostring.htm below:

ArrayFire: toString

Print the array to a string instead of the screen. More...

AFAPI void  toString (char **output, const char *exp, const array &arr, const int precision=4, const bool transpose=true)   AFAPI const char *  toString (const char *exp, const array &arr, const int precision=4, const bool transpose=true)   AFAPI af_err  af_array_to_string (char **output, const char *exp, const af_array arr, const int precision, const bool transpose)  

Print the array to a string instead of the screen.

This function is similar to af::print, except that it prints to a string rather than to screen.

◆ af_array_to_string() AFAPI af_err af_array_to_string ( char **  output, const char *  exp, const af_array  arr, const int  precision, const bool  transpose  )
Parameters
[out] output is the pointer to the c-string that will hold the data. The memory for output is allocated by the function. The user is responsible for deleting the memory. [in] exp is an expression, generally the name of the array [in] arr is the input array [in] precision is the precision length for display [in] transpose determines whether or not to transpose the array before storing it in the string
◆ toString() [1/2] AFAPI void toString ( char **  output, const char *  exp, const arrayarr, const int  precision = 4, const bool  transpose = true  )
Parameters
[out] output is the pointer to the c-string that will hold the data. The memory for output is allocated by the function. The user is responsible for deleting the memory using af::freeHost() or af_free_host(). [in] exp is an expression, generally the name of the array [in] arr is the input array [in] precision is the precision length for display [in] transpose determines whether or not to transpose the array before storing it in the string
◆ toString() [2/2] AFAPI const char * toString ( const char *  exp, const arrayarr, const int  precision = 4, const bool  transpose = true  )
Parameters
[in] exp is an expression, generally the name of the array [in] arr is the input array [in] precision is the precision length for display [in] transpose determines whether or not to transpose the array before storing it in the string
Returns
output is the pointer to the c-string that will hold the data. The memory for output is allocated by the function. The user is responsible for deleting the memory using af::freeHost() or af_free_host().

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4