find the dimension of g. There are any references about find the dimension of g in here. you can look below.