Convert a Matrix into a Sample

Hi !
I have to convert a Matrix into a Sample. So I wrote:

import openturns as ot
matrix = ot.Matrix([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
sample = ot.Sample(matrix)  # Fails !

but this produces:

TypeError: InvalidArgumentException : Not a sequence object

As a workaround, I used:

import numpy as np
sample = ot.Sample(np.array(matrix))

but this looks like a bug to me. Is there something wrong in my script?
Regards,
Michaël