@@ -99,8 +99,8 @@ pub struct Array {
9999}
100100
101101macro_rules! is_func {
102- ( $fn_name: ident, $ffi_fn: ident) => (
103- /// Checks if the Array is of specific format/data type.
102+ ( $doc_str : expr , $ fn_name: ident, $ffi_fn: ident) => (
103+ # [ doc=$doc_str ]
104104 pub fn $fn_name( & self ) -> bool {
105105 unsafe {
106106 let mut ret_val: i32 = 0 ;
@@ -296,20 +296,20 @@ impl Array {
296296 }
297297 }
298298
299- is_func ! ( is_empty, af_is_empty) ;
300- is_func ! ( is_scalar, af_is_scalar) ;
301- is_func ! ( is_row, af_is_row) ;
302- is_func ! ( is_column, af_is_column) ;
303- is_func ! ( is_vector, af_is_vector) ;
304- is_func ! ( is_complex, af_is_complex) ;
305- is_func ! ( is_double, af_is_double) ;
306- is_func ! ( is_single, af_is_single) ;
307- is_func ! ( is_real, af_is_real) ;
308- is_func ! ( is_floating, af_is_floating) ;
309- is_func ! ( is_integer, af_is_integer) ;
310- is_func ! ( is_bool, af_is_bool) ;
311- is_func ! ( is_linear, af_is_linear) ;
312- is_func ! ( is_owner, af_is_owner) ;
299+ is_func ! ( "Check if Array is empty" , is_empty, af_is_empty) ;
300+ is_func ! ( "Check if Array is scalar" , is_scalar, af_is_scalar) ;
301+ is_func ! ( "Check if Array is a row" , is_row, af_is_row) ;
302+ is_func ! ( "Check if Array is a column" , is_column, af_is_column) ;
303+ is_func ! ( "Check if Array is a vector" , is_vector, af_is_vector) ;
304+ is_func ! ( "Check if Array is of complex type" , is_complex, af_is_complex) ;
305+ is_func ! ( "Check if Array's numerical type is of double precision" , is_double, af_is_double) ;
306+ is_func ! ( "Check if Array's numerical type is of single precision" , is_single, af_is_single) ;
307+ is_func ! ( "Check if Array is of real type" , is_real, af_is_real) ;
308+ is_func ! ( "Check if Array is of single precision" , is_floating, af_is_floating) ;
309+ is_func ! ( "Check if Array is of integral type" , is_integer, af_is_integer) ;
310+ is_func ! ( "Check if Array is of boolean type" , is_bool, af_is_bool) ;
311+ is_func ! ( "Check if Array's memory layout is continuous and one dimensional" , is_linear, af_is_linear) ;
312+ is_func ! ( "Check if Array's memory is owned by it and not a view of another Array" , is_owner, af_is_owner) ;
313313
314314 /// Cast the Array data type to `target_type`
315315 pub fn cast < T : HasAfEnum > ( & self ) -> Array {
0 commit comments