Or is any progress going on now?
The JIT in MATLAB or Java seems to be very effective.
--
http://mail.python.org/mailman/listinfo/python-list
> Think on the bright side:
>
> you have to type ":" at the beginning of loop and conditional blocks,
> but you don't have to type "end" at the end... you are still saving
> two strokes...
> ;-))
No, there no profits:
instead of 'end' I must type , ':' and backspace in the end of
block - so 3 key
I don't know to which forum should I post the message
I hope someone related to the Python kernel development will read &
consider the idea
I'm (a former? meanwhile not sure) MATLAB user & it's very annoing
typing each time for example
while i:
print i
...
instead of
while i
print i
Thx
but is there any simpleir way, if using not class, but just struct (or
something like that, MATLAB equivalent for that one)?
I'm thinking of rewriting some optimization solvers (non-smooth,
constrained, with (sub)gradients or patterns provided by user) to
Python and I don't know currently is it
Thx
but is there any simpleir way, if using not class, but just struct (or
something like that, MATLAB equivalent for that one)?
I'm thinking of rewriting some optimization solvers (non-smooth,
constrained, with (sub)gradients or patterns provided by user) to
Python and I don't know currently is it
I have
class A:
def __init__(self, objFun, x0):
#(I want to have self.primal.f = objFun)
#both
self.primal.f = objFun
#and
self.primal = None
self.primal.f = objFun
yields error
what should I do?
Thx
--
http://mail.python.org/mailman/listinfo/pytho
Ok, thx
But can I somehow determing how many outputs does caller func require?
for example:
MATLAB:
function [objFunVal firstDerive secondDerive] = simpleObjFun(x)
objFunVal = x^3;
if nargout>1
firstDerive = 3*x^2;
end
if nargout>2
secondDerive = 6*x;
end
So if caller wants only
[objFunVal firstDe
Thank you in advance for your response.
Dmitrey
--
http://mail.python.org/mailman/listinfo/python-list