quantnn/generic/__init__.py
def concatenate(module, arrays, dimension):
    """
    Concatenate array along given dimension.

    Args:
        module: Module object corresponding to the arrays.
        arrays: List of arrays to concatenate.
        dimension: Index of the dimensions along which to concatenate.

    Return:
        The array resulting from concatenating the given arrays along
        the given dimension.
    """
    _import_modules()
    if module in [np, ma, jnp]:
        return module.concatenate(arrays, dimension)
    elif module == torch:
        return module.cat(arrays, dimension)
    elif module == tf:
        return tf.concat(arrays, axis=dimension)
    return UnknownModuleException(f"Module {module.__name__} not supported.")

    Concatenate array along given dimension.

    Args:
        module: Module object corresponding to the arrays.
        arrays: List of arrays to concatenate.
        dimension: Index of the dimensions along which to concatenate.

    Return:
        The array resulting from concatenating the given arrays along
        the given dimension.
    
Concatenate array along given dimension.
Concatenate array along given dimension .
def concatenate(module, arrays, dimension):
    _import_modules()
    if module in [np, ma, jnp]:
        return module.concatenate(arrays, dimension)
    elif module == torch:
        return module.cat(arrays, dimension)
    elif module == tf:
        return tf.concat(arrays, axis=dimension)
    return UnknownModuleException(f"Module {module.__name__} not supported.")
def concatenate ( module , arrays , dimension ) : _import_modules ( ) if module in [ np , ma , jnp ] : return module . concatenate ( arrays , dimension ) elif module == torch : return module . cat ( arrays , dimension ) elif module == tf : return tf . concat ( arrays , axis = dimension ) return UnknownModuleException ( f"Module {module.__name__} not supported." )
Concatenate array along given dimension.
Concatenate array along given dimension .
"""
    Concatenate array along given dimension.

    Args:
        module: Module object corresponding to the arrays.
        arrays: List of arrays to concatenate.
        dimension: Index of the dimensions along which to concatenate.

    Return:
        The array resulting from concatenating the given arrays along
        the given dimension.
    """
module
Module object corresponding to the arrays.
Module object corresponding to the arrays .
arrays
List of arrays to concatenate.
List of arrays to concatenate .
dimension
Index of the dimensions along which to concatenate.
Index of the dimensions along which to concatenate .