func (matrix *XGDMatrix) NumCol() (uint32, error) {
	var count C.bst_ulong
	if err := checkError(C.XGDMatrixNumCol(matrix.handle, &count)); err != nil {
		return 0, err
	}
	return uint32(count), nil
}
NumCol get number of cols.
package core
import "C"
import (
	"errors"
	"reflect"
	"runtime"
	"unsafe"
)
var ErrNotSuccessful = errors.New("not succesfull")
type XGDMatrix struct {
	handle C.DMatrixHandle
	cols   int
	rows   int
}
func (matrix *XGDMatrix) NumRow() (uint32, error) {
	var count C.bst_ulong
	if err := checkError(C.XGDMatrixNumRow(matrix.handle, &count)); err != nil {
		return 0, err
	}
	return uint32(count), nil
}