Let $x\in \mathbb{R}^{n}$, $Y\in \mathbb{R}^{mxn}$.
We can then define:
$row_{i}(Y)=$ $i^{th}$ row of $Y$
$column_{i}(Y)=$ $i^{th}$ column of $Y$
$x_{i}=i^{th}$ element of $x$
$sum(x)=$ sum of the element of $x$
$card(x)=$ number of non-zero element of $x$.
My Goal is to devise a method to determine if it is possible to construct a matrix $k\in \mathbb{R}_{\geq 0}^{mxn}$ given some $a\in \mathbb{R}^{n}$, $b, c\in\mathbb{R}^{m}$ for some $m, n \in \mathbb{N}_{>0}$ where $sum(a)=sum(b)$
s.t. for all $ i, j \in \mathbb{N}_{\geq0}$ with $0<i<m$ and $0<j<n$:
$\bullet$ $sum(row_{i}(K))=b_{i}$
$\bullet$ $sum(column_{j}(K))=a_{j}$
$\bullet$ $card(row_{i}(K))=c_{i}$
Any suggestions?