.. _method-sampling-sample_type-low_discrepancy-digital_net-m_max:

"""""
m_max
"""""


log2 of the maximum number of points in the digital net



.. toctree::
   :hidden:
   :maxdepth: 1



**Specification**

- *Alias:* None

- *Arguments:* INTEGER

- *Default:* 0


**Description**


Use this option to set the maximum number of points that this digital net can generate. 
The total number of points that can be generated will be ``2^m_max``.
This keyword must be specified when using the :dakkw:`method-sampling-sample_type-low_discrepancy-digital_net-generating_matrices-inline` or :dakkw:`method-sampling-sample_type-low_discrepancy-digital_net-generating_matrices-file` options to specify generating matrices. It cannot be specified when :dakkw:`method-sampling-sample_type-low_discrepancy-digital_net-generating_matrices-predefined` generating matrices are chosen.




**Examples**



.. code-block::

    environment
      tabular_data
        tabular_data_file = 'samples.dat'
        freeform

    method
      sampling
        samples 32
        sample_type
          low_discrepancy
            digital_net
              generating_matrices inline 
                1 2 4 8 16
                # this encodes the generating matrix
                # 1 0 0 0 0
                # 0 1 0 0 0
                # 0 0 1 0 0 
                # 0 0 0 1 0
                # 0 0 0 0 1
                1 3 5 15 17
                # this encodes the generating matrix
                # 1 1 1 1 1
                # 0 1 0 1 0
                # 0 0 1 1 0
                # 0 0 0 1 0
                # 0 0 0 0 1
              m_max 5
              t_max 5
              no_scrambling
              no_digital_shift

    variables
      uniform_uncertain = 2
        lower_bounds 0.0 0.0
        upper_bounds 1.0 1.0

    interface
      analysis_drivers = 'genz'
      analysis_components = 'cp1'
      direct

    responses
      response_functions = 1
      no_gradients
      no_hessians



