Generalized functions for n_assets