Displaying 5 results from an estimated 5 matches for "retp".
Did you mean:
ret
2006 Jan 22
1
NAs in optim
Hi,
I am trying to maximize a utility function using optim. I have a problem
with optim, since some of the values in the caw, mom, me and btm matrixes in
the code bellow are missing. Is there a handy way just to skip the missing
values in the loop?
g <- 5
retp <- NULL
object <- function (x)
{
b1 <- x[1]
b2 <- x[2]
b3 <- x[3]
for(i in 1:nrow(ret)){
for(j in 1:ncol(ret)){
retp[i] <- (caw[i,j]+1/24*(b1*mom[i,j] + b2*me[i,j] +
b3*btm[i,j]))*ret[i,j]
}
}
util <- (1+retp)^(1-g)/(1-g)
retu...
2006 Apr 18
0
Use of journal->j_blk_offset
...are familiar with the internals of
ext3.
I notice that the function journal_init_dev() sets the value
journal->j_blk_offset = start
This means that start can be any arbitrary block number on the device.
However, later in the function journal_bmap() it is never actually used.
The value of *retp in journal_bmap() is set to
*retp = blocknr; /* + journal->j_blk_offset */
A comment on the top of journal_bmap() says that the addition can be
included in the above operation if so be the need. Is there any specific
reason (related to performance etc) why it has not been done.
Please let m...
2011 Jun 09
15
[PATCH 00/13] Fix errors found using Coverity static analyzer.
I ran the Coverity static analyzer[1] on libguestfs, and fixed many
errors as a result.
Coverity found some errors in gnulib, but it doesn't seem to be worth
following those up since the version of gnulib we are using is so old.
There are a couple more errors (possibly 1 false-positive) which I'm
going to send in a separate email.
BTW all the errors found by Coverity were in the daemon
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds
some internal APIs for running commands.
The first patch contains the new APIs. The subsequent patches change
various parts of the library over to use it.
Rich.
2010 Aug 04
6
[PATCH -v2 0/3] jbd2 scalability patches
This version fixes three bugs in the 2nd patch of this series that
caused kernel BUG when the system was under race. We weren't accounting
with t_oustanding_credits correctly, and there were race conditions
caused by the fact the I had overlooked the fact that
__jbd2_log_wait_for_space() and jbd2_get_transaction() requires
j_state_lock to be write locked.
Theodore Ts'o (3):
jbd2: Use