Hi All,
I am writing an ado that also involves a simple mata function. The mata calls the stata matrices correctly but returns an error when I try to generate a new matrix as an element-wise multiplication of two matrices.
For reference
mata :
real matrix est_costx(string x1,, string b, string A1)
{
x1 = st_matrix("x1")
b = st_matrix("b")
A1 = st_matrix("A1")
a = A1 :* x1
}
end
where x1 b and A1 are column vectors
Thanks
I am writing an ado that also involves a simple mata function. The mata calls the stata matrices correctly but returns an error when I try to generate a new matrix as an element-wise multiplication of two matrices.
For reference
mata :
real matrix est_costx(string x1,, string b, string A1)
{
x1 = st_matrix("x1")
b = st_matrix("b")
A1 = st_matrix("A1")
a = A1 :* x1
}
end
where x1 b and A1 are column vectors
Thanks
Comment