Prints dimensions of the array. More...

void _printdims (const char *str, const array exp)
 Display expression and its dimensions. More...
 
#define printdims(exp)   _printdims(#exp, exp)
 Show the expression and print its dimensions. More...
 

Detailed Description

Prints dimensions of the array.

This function will print the dimensions of the array along with a user defined string.

Macro Definition Documentation

#define printdims (   exp)    _printdims(#exp, exp)

Show the expression and print its dimensions.

array A = randu(5, 3);

produces

A dims=[5 3]

Function Documentation

void af::_printdims ( const char *  str,
const array  exp 
)

Display expression and its dimensions.