# Path: src/matlab2cpp/rules/armadillo.py
# def configure_arg(node, index):
# def scalar_assign(node):
# def include(node):


from ..rules import armadillo as arma
            return

        elif len(node) == 2 and node[0].cls == "Int" and node[0].value == "1":
            node_ = node[1]

        else:
            return
    else:
        node_ = node[0]


    arg, dim = arma.configure_arg(node_, 0)

    if dim == 0:
        node.dim = 0

def mat(node):
    # Single argument
    if len(node) == 1:

        arg, dim = arma.configure_arg(node[0], 0)

        # scalar begets scalar
        if dim == 0:
            node.dim = 0

    # Double argument
    elif len(node) == 2:

        arg0, dim0 = arma.configure_arg(node[0], 0)

# Path: src/matlab2cpp/rules/armadillo.py
# def configure_arg(node, index):
# def scalar_assign(node):
# def include(node):


# Path: src/matlab2cpp/configure/armadillo.py
from ..rules import armadillo as arma

            return

        elif len(node) == 2 and node[0].cls == "Int" and node[0].value == "1":
            node_ = node[1]

        else:
            return
    else:
        node_ = node[0]


    arg, dim = arma.configure_arg(node_, 0)

    if dim == 0:
        node.dim = 0

def mat(node):
    # Single argument
    if len(node) == 1:

        arg, dim = arma.configure_arg(node[0], 0)

        # scalar begets scalar
        if dim == 0:
            node.dim = 0

    # Double argument
    elif len(node) == 2:

        arg0, dim0 = arma.configure_arg(node[0], 0)

        arg1, dim1 = arma.configure_arg(node[1], 1)