Given a graph

with a distinguished vertex

, the critical group of

is the cokernel of their reduced Laplacian matrix

.
In this article we generalize the concept of the critical group to the cokernel
of any matrix with entries in a commutative ring with identity.
In this article we find diagonal matrices that are equivalent to some matrices that
generalize the reduced Laplacian matrix of the path, the cycle, and the complete graph
over an arbitrary commutative ring with identity.
We are mainly interested in those cases when the base ring is the ring of integers and some subrings of matrices.
Using these equivalent diagonal matrices we calculate the critical group of the

-cones of the

-duplications of the path, the cycle, and the complete graph.
Also, as byproduct, we calculate the critical group of another matrices, as the

-cones of the

-duplication of the bipartite complete graph with

vertices in each partition and
the bipartite complete graph with

vertices minus a matching.