'Limit the norm along the given dimension to be \'norm\', where 0
represents the leading dimension and 1 represents the non-leading
dimension. If a target is not provided, self is used as target.'

def norm_limit(self, norm, axis, target=None):

    (m, n) = self.shape
    if (axis == 0):
        if (not target):
            target = self
    elif (axis == 1):
        if (not target):
            target = self
    err_code = _eigenmat.normlimit_by_axis(self.p_mat, target.p_mat, ct.c_int(axis), ct.c_float(norm))
    if err_code:
        raise generate_exception(err_code)
    return target
