identifying inputvalues

Hey,
a lot of the functions in the CUBLAS library need a lot of input values. do you guys have any advice how to find out properties of an arbitrary matrix/vector? like dimensions, # of ku, kl, etc.

thanks :)