[next][previous][up][top][index]
search for:

dim Module -- calculate the dimension

Synopsis:

  • Function: dim -- calculate the dimension
  • Input:
  • an instance of class Module.
  • Output:
  • an instance of class ZZ.
  • Code:

         -- ../../../Macaulay2/m2/modules2.m2:391-394
         dim Module := M -> (
              c := codim M;
              if c === infinity then -1 else dim ring M - c
              )

    [next][previous][up][top][index]
    search for: