search for: 320,10

Displaying 20 results from an estimated 26 matches for "320,10".

Did you mean: 32,10
2018 Apr 06
3
Obtain gradient at multiple values for exponential decay model
....0001 } > myNumDeriv(c(100, 250, 350)) I realized that this would not work in the context of your construction. I had earlier made a more symbolic version using R formulae: graphdata<-read.csv(text='t,c 0,100 40,78 80,59 120,38 160,25 200,21 240,16 280,12 320,10 360,9 400,7') graphmodeld<-lm(log(c)~t, graphdata) graphmodelp<-exp(predict(graphmodeld)) plot(c~t, graphdata) lines(graphdata[,1],graphmodelp) myNumDeriv(c(100, 250, 350), graphmodeld ) #---------------------------------------------- 1 2 3 -0.3146...
2018 Apr 07
0
Obtain gradient at multiple values for exponential decay model
...ifferentiation helpful because my functions are typically quite complicated, but was prompted by Steve Ellison's suggestion to try it out in this case: ################# reprex (see reprex package) graphdta <- read.csv( text = "t,c 0,100 40,78 80,59 120,38 160,25 200,21 240,16 280,12 320,10 360,9 400,7 ", header = TRUE ) nd <- c( 100, 250, 300 ) graphmodeld <- lm( log(c) ~ t, data = graphdta ) graphmodelplin <- predict( graphmodeld , newdata = data.frame( t = nd ) ) graphmodelp <- exp(graphmodelplin) graphmodelp...
2020 Aug 03
0
[PATCH v2 10/24] virtio_gpu: correct tags for config space fields
...--- include/uapi/linux/virtio_gpu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h index 0c85914d9369..ccbd174ef321 100644 --- a/include/uapi/linux/virtio_gpu.h +++ b/include/uapi/linux/virtio_gpu.h @@ -320,10 +320,10 @@ struct virtio_gpu_resp_edid { #define VIRTIO_GPU_EVENT_DISPLAY (1 << 0) struct virtio_gpu_config { - __u32 events_read; - __u32 events_clear; - __u32 num_scanouts; - __u32 num_capsets; + __le32 events_read; + __le32 events_clear; + __le32 num_scanouts; + __le32 num_capsets;...
2020 Aug 05
1
[PATCH v3 10/38] virtio_gpu: correct tags for config space fields
...--- include/uapi/linux/virtio_gpu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h index 0c85914d9369..ccbd174ef321 100644 --- a/include/uapi/linux/virtio_gpu.h +++ b/include/uapi/linux/virtio_gpu.h @@ -320,10 +320,10 @@ struct virtio_gpu_resp_edid { #define VIRTIO_GPU_EVENT_DISPLAY (1 << 0) struct virtio_gpu_config { - __u32 events_read; - __u32 events_clear; - __u32 num_scanouts; - __u32 num_capsets; + __le32 events_read; + __le32 events_clear; + __le32 num_scanouts; + __le32 num_capsets;...
2018 Apr 05
2
Obtain gradient at multiple values for exponetial decay model
Readers, Data set: t,c 0,100 40,78 80,59 120,38 160,25 200,21 240,16 280,12 320,10 360,9 400,7 graphdata<-read.csv('~/tmp/data.csv') graphmodeld<-lm(log(graphdata[,2])~graphdata[,1]) graphmodelp<-exp(predict(graphmodeld)) plot(graphdata[,2]~graphdata[,1]) lines(graphdata[,1],graphmodelp) Please what is the function and syntax to obtain gradient values for th...
2002 Aug 09
0
patch to ssh.c for KerberosTgtPassing and readability patches for config files and manpages
...ation Index: sshd_config.5 =================================================================== RCS file: /cvs/openssh/sshd_config.5,v retrieving revision 1.5 diff -u -r1.5 sshd_config.5 --- sshd_config.5 1 Aug 2002 01:28:39 -0000 1.5 +++ sshd_config.5 9 Aug 2002 21:43:30 -0000 @@ -320,10 +320,10 @@ Default is .Dq yes . .It Cm KerberosTgtPassing -Specifies whether a Kerberos TGT may be forwarded to the server. +Specifies whether Kerberos V4/5 TGT's may be forwarded to the server. Default is -.Dq no , -as this only works when the Kerberos KDC is actually an AFS kaserver. +...
2018 Apr 05
0
Obtain gradient at multiple values for exponetial decay model
...h the addition of using the coef function. -- Sent from my phone. Please excuse my brevity. On April 5, 2018 3:44:03 AM PDT, g l <gnulinux at gmx.com> wrote: >Readers, > >Data set: > >t,c >0,100 >40,78 >80,59 >120,38 >160,25 >200,21 >240,16 >280,12 >320,10 >360,9 >400,7 > >graphdata<-read.csv('~/tmp/data.csv') >graphmodeld<-lm(log(graphdata[,2])~graphdata[,1]) >graphmodelp<-exp(predict(graphmodeld)) >plot(graphdata[,2]~graphdata[,1]) >lines(graphdata[,1],graphmodelp) > >Please what is the function and...
2018 Apr 06
0
Obtain gradient at multiple values for exponential decay model
> On Apr 6, 2018, at 3:43 AM, g l <gnulinux at gmx.com> wrote: > >> Sent: Friday, April 06, 2018 at 5:55 AM >> From: "David Winsemius" <dwinsemius at comcast.net> >> >> >> Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See:
2018 Apr 06
2
Obtain gradient at multiple values for exponential decay model
> Sent: Friday, April 06, 2018 at 5:55 AM > From: "David Winsemius" <dwinsemius at comcast.net> > > > Not correct. You already have `predict`. It is capale of using the `newdata` values to do interpolation with the values of the coefficients in the model. See: > > ?predict > The ? details did not mention interpolation explicity; thanks. > The
2020 May 14
0
[PATCH AUTOSEL 4.19 22/31] virtio-blk: handle block_device_operations callbacks after hot unplug
...ruct config_work; + /* + * Tracks references from block_device_operations open/release and + * virtio_driver probe/remove so this object can be freed once no + * longer in use. + */ + refcount_t refs; + /* What host tells us, plus 2 for header & tailer. */ unsigned int sg_elems; @@ -320,10 +336,55 @@ static int virtblk_get_id(struct gendisk *disk, char *id_str) return err; } +static void virtblk_get(struct virtio_blk *vblk) +{ + refcount_inc(&vblk->refs); +} + +static void virtblk_put(struct virtio_blk *vblk) +{ + if (refcount_dec_and_test(&vblk->refs)) { + ida...
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...rdup_until(address, domain); + str_append_maybe_escape(dest, local_part, FALSE); + str_append(dest, domain); + } + + return str_free_without_data(&dest); +} + int lmtp_proxy_add_rcpt(struct lmtp_proxy *proxy, const char *address, const struct lmtp_proxy_rcpt_settings *set) { @@ -301,10 +320,10 @@ rcpt = p_new(proxy->pool, struct lmtp_proxy_recipient, 1); rcpt->idx = array_count(&proxy->rcpt_to); rcpt->conn = conn; - rcpt->address = p_strdup(proxy->pool, address); + rcpt->address = lmtp_proxy_escape_address(proxy->pool, address); array_append(&pr...
2020 Oct 02
0
[libnbd PATCH v2 2/2] info: List available meta-contexts
..., true); /* Allow ?tls-psk-file. */ /* Set optional modes in the handle. */ - if (list_all) + if (!map && !size_only) { nbd_set_opt_mode (nbd, true); - if (!map && !size_only) nbd_set_full_info (nbd, true); + } if (map) nbd_add_meta_context (nbd, map); @@ -320,10 +326,32 @@ main (int argc, char *argv[]) } free (export_list.names); free (export_list.descs); + nbd_opt_abort (nbd); + nbd_shutdown (nbd, 0); nbd_close (nbd); exit (EXIT_SUCCESS); } +static int +collect_context (void *opaque, const char *name) +{ + struct context_list **head...
2019 Aug 30
0
[nbdkit PATCH 9/9] server: Move command validation from protocol.c to backend.c
...lid request: %s: offset and count are out of range: " + "offset=%" PRIu64 " count=%" PRIu32, cmd, offset, count); + return true; + } + return false; +} + void backend_set_handle (struct backend *b, struct connection *conn, void *handle) { @@ -283,6 +320,10 @@ backend_pread (struct backend *b, struct connection *conn, debug ("%s: pread count=%" PRIu32 " offset=%" PRIu64, b->name, count, offset); + if (invalid_range (b, conn, "pread", offset, count)) { + *err = EINVAL; + return -1; + } r = b-...
2010 Apr 19
0
[PATCH 08/12] Btrfs: Introduce global metadata reservation
...kfree(range); break; + default: + ret = -EINVAL; } out: mnt_drop_write(file->f_path.mnt); diff -urp 8/fs/btrfs/transaction.c 9/fs/btrfs/transaction.c --- 8/fs/btrfs/transaction.c 2010-04-18 10:24:51.296946000 +0800 +++ 9/fs/btrfs/transaction.c 2010-04-18 11:43:04.933699092 +0800 @@ -320,10 +320,36 @@ void btrfs_throttle(struct btrfs_root *r mutex_unlock(&root->fs_info->trans_mutex); } +static int should_end_transaction(struct btrfs_trans_handle *trans, + struct btrfs_root *root) +{ + int ret; + ret = btrfs_block_rsv_check(trans, root, + &root->fs_...
2002 Jul 13
0
[PATCH]: scp program improved
...0; i < sizeof(factors) - 1; i++) + if ((c = strchr(optarg, factors[i])) != NULL) + factor *= 1000; + if (c) + (*c) = '\0'; + rate_limit = atoi(optarg) * factor; + break; case 'P': addargs(&args, "-p%s", optarg); break; @@ -320,10 +358,13 @@ remin = remout = -1; /* Command to be executed on remote system using "ssh". */ - (void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s", - verbose_mode ? " -v" : "", - iamrecursive ? " -r" : "", pflag ? " -p"...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
Hi again, I've not heard anything further regarding this bug, so I've had a look at the code. To restate the bug in a more precise way: LMTP in dovecot treats external RFC822 email addresses in the envelope recipient and internal usernames as almost identical/interchangeable. This is incorrect and leads to issues when attempting to use director as an LMTP proxy to proxy to recipients
2019 Jul 02
2
[PATCH v6 11/18] drm/virtio: switch from ttm to gem shmem helpers
...->dev_private; struct virtio_gpu_fpriv *vfpriv = file->driver_priv; struct drm_virtgpu_3d_transfer_from_host *args = data; - struct ttm_operation_ctx ctx = { true, false }; struct drm_gem_object *gobj = NULL; struct virtio_gpu_object *qobj = NULL; struct virtio_gpu_fence *fence; @@ -320,10 +318,6 @@ static int virtio_gpu_transfer_from_host_ioctl(struct drm_device *dev, if (ret) goto out; - ret = ttm_bo_validate(&qobj->tbo, &qobj->placement, &ctx); - if (unlikely(ret)) - goto out_unres; - convert_to_hw_box(&box, &args->box); fence = virtio...
2019 Jul 16
2
[PATCH libnbd] generator: Define new Closure type
** INCOMPLETE ** This is the generator change as discussed on the list already. The Python and OCaml bindings are not yet done. It passes all [C only] tests and valgrind. Note that nbd_add_close_callback is inconsistent with other closure types because it passes the user_data parameter after the function. (This is not caused by the current patch, it was already inconsistent). We decided that
2020 Aug 03
51
[PATCH v2 00/24] virtio: config space endian-ness cleanup
Config space endian-ness is currently a mess: fields are not tagged with the correct endian-ness so it's easy to make mistakes like instanciating config space in native endian-ness. The following patches adding sparse tagging are currently in my tree. Lightly tested. As a follow-up, I plan to add new APIs that handle modern config space in a more efficient way (bypassing the version check).
2007 Dec 21
0
[kvm-devel] [Virtio-for-kvm] [PATCH 1/13] [Mostly resend] virtio additions
...) break; + printk("Device at %i has size %u\n", i, desc_size(d)); add_lguest_device(d); } } diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 5413dbf..aff25b0 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -320,10 +320,8 @@ static int virtnet_close(struct net_device *dev) static int virtnet_probe(struct virtio_device *vdev) { int err; - unsigned int len; struct net_device *dev; struct virtnet_info *vi; - void *token; /* Allocate ourselves a network device with room for our in...