You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is continuation of #4 with several related questions
How this should be done without sci syntax extensions?
For multiplication we should use alg.mul but which should be used for sums?
Also: with and without sci syntax extensions, how to exponentiate (math.exp) all elements in a matrix?
How to get matrix transposed without sci syntax?
Related to that, (while I was trying to self answer the above question) I found an error with sci-lang in the script:
local function __aexpr_1(__x1)
local __r1 = __array_alloc(__x1, __dim_elw_1(__x1))
for __i = 0, __r1._n - 1 do
__r1._p[__i] = ` __x1._p[__i]
end
return __r1
end
local alg = require("sci.alg")
local A = alg.mat(4, 7)
local B = __aexpr_1(A)
Output:
c:\scilua\luajit.exe: c:\scilua\lua\sci-lang\__bin\scilua.lua:77: [string "local __alg = require("sci.alg").__..."]:7: unexpected symbol near '`'
The program, after performing several muladdv, suddenly stops (perhaps bad memory access?) without any error message or assert. Which could be the reason?
This is continuation of #4 with several related questions
How this should be done without sci syntax extensions?
For multiplication we should use alg.mul but which should be used for sums?
Also: with and without sci syntax extensions, how to exponentiate (math.exp) all elements in a matrix?
How to get matrix transposed without sci syntax?
Related to that, (while I was trying to self answer the above question) I found an error with sci-lang in the script:
with error:
Of course it can be done as in:
but I had the impression that using OpenBlas was for using functions from the library to multiply, transpose or sum matrixes?
The text was updated successfully, but these errors were encountered: