I'm guessing you have worked with R, because the example you give uses NA 
as if it were an integer.  Julia does not have NA that way (there is 
special class of Nullable types that either are valued with e.g. an Int or 
else isnull .. probably you do not need that right now).
Would using floating point values and using the floating point NaN 
(not-a-number, a special floating point value) where you have NA work, or 
is this NA more like 'dont care', where replacing them with 0s would work?



On Friday, August 19, 2016 at 8:31:21 AM UTC-4, Ahmed Mazari wrote:
>
> Hello,
>
> l have the number of columns equals the number of rows . and the the 
> diagonal is esqual to zero .  How can l build this matrix  ?
> #mat
> #     [,1] [,2] [,3] [,4]
> #[1,]   0   NA   NA   NA
> #[2,]    1   0   NA   NA
> #[3,]    2    4   0   NA
> #[4,]    3    5    6   0
>
>
> thank you
>

Reply via email to