Class constructor with specified vector size.
- Parameters:
-
n | : number of entries |
clear | : flag if true then This function allocates memory for a matrix of size new_rows rows by new_cols columns and initializes all the elements of the matrix to zero (does a calloc), if false then creates a matrix of size new_rows by new_cols, returns a pointer to a gsl matrix struct (does an alloc). |
If clear is not specified then default is clear = true.