search for: c_h

Displaying 6 results from an estimated 6 matches for "c_h".

Did you mean: _ch
1998 May 29
0
aov design questions
...o the original contrasts, but it isn't easy with higher-way anova models. It looks easy in VR2 p 197-204 (BTW I have kroenecker and ginv functions if anyone wants them) but I don't get it to work out nicely. V&R show the contrast transformation as: alpha_T = ginv(C_T) %*% C_H %*% alpha_H where C_T is the contrast matrix for treatment contrasts, and C_H for Helmert contrasts. The alpha's contain only the treatment contrast effects, not the mean. This would leave the intercept estimate unchanged (not right). For single factors it works to stick a col.ve...
2020 Mar 17
0
[PATCH libnbd] Add outline framework for Go language bindings (golang).
..."syscall\" +) + +/* Handle. */ +type Libnbd struct { + h *C.struct_nbd_handle +} + +/* Convert handle to string (just for debugging). */ +func (h *Libnbd) String () string { + return \"&Libnbd{}\" +} + +/* Create a new handle. */ +func Create () (*Libnbd, error) { + c_h, err := C.nbd_create () + if c_h == nil { + return nil, err + } + h := &Libnbd{h : c_h} + // Finalizers aren't guaranteed to run, but try having one anyway ... + runtime.SetFinalizer (h, (*Libnbd).Close) + return h, nil + +} + +/* All functions return ([result,] Lib...
2020 Mar 17
5
[PATCH libnbd v2 0/3] Unfinished golang bindings.
These bindings get as far as running very simple connections. However there are many missing parts still: * No callbacks. * No functions which handle buffers (pread/pwrite!) This is posted just for general early interest, not even for review. Rich.
2020 Mar 17
0
[PATCH libnbd v2 2/3] Add outline framework for Go language bindings (golang).
...o } +} + +func closed_handle_error (op string) *LibnbdError { + return &LibnbdError{ Op : op, Errmsg : \"handle is closed\", + Errno : syscall.Errno (0) } +} + +/* Create a new handle. */ +func Create () (*Libnbd, error) { + c_err := C.struct_error{} + c_h := C._nbd_create_wrapper (&c_err) + if c_h == nil { + err := get_error (\"create\", c_err) + C.free_error (&c_err) + return nil, err + } + h := &Libnbd{h : c_h} + // Finalizers aren't guaranteed to run, but try having one anyway ... + ru...
2020 Mar 24
1
[PATCH libnbd v3] Add Go language bindings (golang) (RHBZ#1814538).
This feature is roughly finished now, although it needs a few more tests and some examples. It's pretty much up to par with all the other bindings, but it lacks a completely safe AIO buffer. It won't stop you from freeing the buffer too early) because golang's GC inexplicably lacks a way to declare a root from C. I can probably do it with a global variable and ref counting on the
2020 Mar 25
3
[PATCH libnbd v4] Add Go language bindings (golang) (RHBZ#1814538).
Now runs a complete set of tests, notably including the AIO test. File descriptors are passed in and out as plain ints (instead of *os.File) for a couple of reasons: (1) We have to pass the plain int to syscall.Select. (2) Turning an fd into an os.File causes golang to set the blocking flag which is deeply unhelpful. Rich.