func CreateSparseMat(sizes []int, type_ int) *SparseMat {
	dims := C.int(len(sizes))
	sizes_c := make([]C.int, len(sizes))
	for i := 0; i < len(sizes); i++ {
		sizes_c[i] = C.int(sizes[i])
	}

	mat := C.cvCreateSparseMat(
		dims, (*C.int)(&sizes_c[0]), C.int(type_),
	)
	return (*SparseMat)(mat)
}
func CreateSparseMat(sizes []int, type_ int) *SparseMat {
	dims := C.int(len(sizes))
	sizes_c := make([]C.int, len(sizes))
	for i := 0; i < len(sizes); i++ {
		sizes_c[i] = C.int(sizes[i])
	}

	mat := C.cvCreateSparseMat(
		dims, (*C.int)(&sizes_c[0]), C.int(type_),
	)
	return (*SparseMat)(mat)
}
func CreateSparseMat ( sizes [ ] int , type_ int ) * SparseMat { dims := C . int ( len ( sizes ) ) sizes_c := make ( [ ] C . int , len ( sizes ) ) for i := 0 ; i < len ( sizes ) ; i ++ { sizes_c [ i ] = C . int ( sizes [ i ] ) } mat := C . cvCreateSparseMat ( dims , ( * C . int ) ( & sizes_c [ 0 ] ) , C . int ( type_ ) , ) return ( * SparseMat ) ( mat ) }
/* Allocates and initializes CvSparseMat header and allocates data */
/ * Allocates and initializes CvSparseMat header and allocates data