python/pycubool/matrix.py
def empty(cls, shape):
        """
        Creates empty matrix of specified `shape`.

        :param shape: Pair with two values with rows and cols count of the matrix
        :return: Created empty matrix
        """

        hnd = ctypes.c_void_p(0)

        nrows = shape[0]
        ncols = shape[1]

        status = wrapper.loaded_dll.cuBool_Matrix_New(
            ctypes.byref(hnd), ctypes.c_uint(nrows), ctypes.c_uint(ncols)
        )

        bridge.check(status)

        return Matrix(hnd)

        Creates empty matrix of specified `shape`.

        :param shape: Pair with two values with rows and cols count of the matrix
        :return: Created empty matrix
        
Creates empty matrix of specified `shape`.
Creates empty matrix of specified ` shape ` .
def empty(cls, shape):
        hnd = ctypes.c_void_p(0)
        nrows = shape[0]
        ncols = shape[1]
        status = wrapper.loaded_dll.cuBool_Matrix_New(
            ctypes.byref(hnd), ctypes.c_uint(nrows), ctypes.c_uint(ncols)
        )
        bridge.check(status)
        return Matrix(hnd)
def empty ( cls , shape ) : hnd = ctypes . c_void_p ( 0 ) nrows = shape [ 0 ] ncols = shape [ 1 ] status = wrapper . loaded_dll . cuBool_Matrix_New ( ctypes . byref ( hnd ) , ctypes . c_uint ( nrows ) , ctypes . c_uint ( ncols ) ) bridge . check ( status ) return Matrix ( hnd )
Creates empty matrix of specified `shape`.
Creates empty matrix of specified ` shape ` .
"""
        Creates empty matrix of specified `shape`.

        :param shape: Pair with two values with rows and cols count of the matrix
        :return: Created empty matrix
        """
Created empty matrix
Created empty matrix
cls
shape
Pair with two values with rows and cols count of the matrix
Pair with two values with rows and cols count of the matrix