Free

Changes the size of a matrix or vector to zero and free associated data buffer.

void matrix::Free();
 
void vector::Free();

Return Value

Returns nothing.

Note

The matrix (or vector) is processed in place. No copies are created.

Example

   matrixcf matrix_c=matrixcf::Zeros(5,4);
   Print(matrix_c);
   matrix_c.Free();
   Print(matrix_c);
   
   vector vector_c=vector::Zeros(10);
   Print(vector_c);
   vector_c.Free();
   Print(vector_c);
 
 
   /*
   [[(0,0),(0,0),(0,0),(0,0)]
    [(0,0),(0,0),(0,0),(0,0)]
    [(0,0),(0,0),(0,0),(0,0)]
    [(0,0),(0,0),(0,0),(0,0)]
    [(0,0),(0,0),(0,0),(0,0)]]
   []
   [0,0,0,0,0,0,0,0,0,0]
   []
   */