Displaying 20 results from an estimated 5000 matches similar to: "Column wise matrix multiplication"
2025 May 20
2
can function sftp_upload return OK even if an error message is received?
On Tue, 13 May 2025, Graziano Stefani (Nokia) via openssh-unix-dev wrote:
> Hi,
>
> With reference to the latest version of the portable OpenSSH, in
> file sftp-client.c, it looks to me there may be a bug in function
> sftp_upload.
>
> My understanding is that, when variable "len" is equal to 0, no more
> SSH_FXP_WRITE messages are sent out and you start draining
2025 May 13
1
can function sftp_upload return OK even if an error message is received?
Hi,
With reference to the latest version of the portable OpenSSH, in file sftp-client.c, it looks to me there may be a bug in function sftp_upload.
My understanding is that, when variable "len" is equal to 0, no more SSH_FXP_WRITE messages are sent out and you start draining the queue of pending responses. Variable "len" is set to 0 either when the upload is interrupted, or
2008 Aug 18
2
matrix row product and cumulative product
I spent a lot of time searching and came up empty handed on the
following query. Is there an equivalent to rowSums that does product or
cumulative product and avoids use of apply or looping? I found a rowProd
in a package but it was a convenience function for apply. As part of a
likelihood calculation called from optim, I?m computing products and
cumulative products of rows of matrices with
2011 Feb 03
3
get caller's name
Hi,
Suppose a function that checks an object:
stop.if.dims <- function(x) {
if (! is.null(dim(x))) {
stop("cannot handle dimensional data")
}
}
This would be used by other functions that can only work with
dimensionless objects. The problem is the error message would need to
include the name of the function that called stop.if.dims, so that the
user knows which function got
2003 Apr 14
0
ADS Support
Hi,
i just compiled and installed samba-3.0-alpha23 !
I have a problem and i can't figured out why ! :)
When i configured the sources, i use :
./configure --with-ads --with-ldap --with-pam_smbpass --with-ldapsam --with-tdbsam --with-winbind
make
make install
all goes ok, except for some warning and compilation error...dues to younh alpha release.
BUT :
1- One :
when i try to use the
2005 Dec 21
2
can't smbmount a Windows share
Client OS: Slackware 10.2
Server OS: Windows 2003 Server sp1
Samba version: 3.0.20
Actually, it will mount, but I have to way of viewing or browsing the
mounted contents.
Here are the commands and their status:
smbmount //192.168.0.1/share /mnt/share -o
ro,username=administrator,password=secret (successful)
ls /mnt/share (fails with access denied message).
So once it's mounted,
2006 Nov 21
2
keeping dim() for array
Hi All,
I noticed the following:
pip = array(1:6, dim = c(3,2))
dim(pip)
[1] 3 2
pup = pip[1,]
dim(pup)
NULL
I bet there is a *good* reason why one row of an array is *dimensionless*, but
it's highly inconvenient for my purpose, i.e. to use apply() after an array goes
through a number of logical steps and is redimensioned, sometimes to one single row.
How do I keep dim(pup) to 1 2?
2012 Jun 08
3
Rose plot (like a windrose)
Dear R Gurus,
I spent some time in looking for help but didn't find a way to do what I
want.
I do have a vector (in Degrees) containing of 360 elements, one element per
degree on a circle.
The data is dimensionless and in the range of -0.2 to 0.5.
An Example:
Wind Dir [degrees], Value
1, 0.1
2 , 0.3
3 , 0.01
.,.
.,.
180,-0.01
181,-0.2
.,.
.,.
.,.
359,.0.3
360,.0.5
Now I want to have
2009 Nov 10
1
What is the equivalent of column.prods() from S in R?
Chambers' book Statistical Models in S mentioned 'column.prods()'. But
I don't find it in R. I'm wondering if there is an equivalent in R?
2009 Aug 19
5
scale or not to scale that is the question - prcomp
Dear all
here is my data called "rglp"
structure(list(vzorek = structure(1:17, .Label = c("179/1/1",
"179/2/1", "180/1", "181/1", "182/1", "183/1", "184/1", "185/1",
"186/1", "187/1", "188/1", "189/1", "190/1", "191/1", "192/1",
2005 Dec 22
2
tcpdump-smb won't work
I've read everything I've found on tcpdump-smb, and still can't get it
to work right.
I downloaded the binary from samba.org, and executed the command like so:
(The command belowis directly from the README.smb that comes with
tcpdump-3.4a5.tar.gz)
./tcpdump -i eth0 port 139 host 192.168.0.1
tcpdump: parse error
How do I use it to get the decoded smb output?
BTW: I also
2008 Oct 30
2
Adding PDU support to NUT
I've recently been working a bit on adding PDU
(http://en.wikipedia.org/wiki/Power_distribution_unit) support in NUT.
Some of you might have seen the Powerman thread, which also deals with
adding more PDUs support:
http://powerman.sourceforge.net/supported.html
The result is that we now have support for 2 Eaton | Powerware ePDUs
(Managed and Monitored iirc, check http://www.epdu.com).
I plan
2017 Apr 01
3
mean(x) != mean(rev(x)) different with x <- c(NA, NaN) for some builds
In R 3.3.3, I observe the following on Ubuntu 16.04 (when building
from source as well as for the sudo apt r-base build):
> x <- c(NA, NaN)
> mean(x)
[1] NA
> mean(rev(x))
[1] NaN
> rowMeans(matrix(x, nrow = 1, ncol = 2))
[1] NA
> rowMeans(matrix(rev(x), nrow = 1, ncol = 2))
[1] NaN
> .rowMeans(x, m = 1, n = 2)
[1] NA
> .rowMeans(rev(x), m = 1, n = 2)
[1] NaN
>
2009 Feb 06
1
Operations on difftime (abs, /, c)
Since both comparison and negation are well-defined for time differences, I
wonder why abs and division are not defined for class difftime. This
behavior is clearly documented on the man page: "limited arithmetic is
available on 'difftime' objects"; but why? Both are natural, semantically
sound, and useful operations and I see no obvious reason that they should
give an error:
2009 Feb 06
1
Operations on difftime (abs, /, c)
Since both comparison and negation are well-defined for time differences, I
wonder why abs and division are not defined for class difftime. This
behavior is clearly documented on the man page: "limited arithmetic is
available on 'difftime' objects"; but why? Both are natural, semantically
sound, and useful operations and I see no obvious reason that they should
give an error:
2007 Mar 01
2
Row-wise two sample T-test on subsets of a matrix
Hello all,
I am trying to run a two sample t-test on a matrix which is a
196002*22 matrix. I want to run the t-test, row-wise, with the
first 11 columns being a part of the first group and columns
12-22 being a part of the second group.
I tried running something like (temp.matrix being my 196002*22
matrix)
t.test(temp.matrix[,1:11],temp.matrix[,12:22],paired=TRUE)
or somthing like
2005 Nov 10
2
error in rowSums:'x' must be numeric
Dear All,
It's Eszter again from Hungary. I could not solve my problem form
yesterday, so I still have to ask your help.
I have a binary dataset of vegetation samples and species as a comma
separated file. I would like to calculate the Jaccard distance of the
dataset. I have the following error message:
Error in rowSums(x, prod(dn), p, na.rm) : 'x' must be numeric
In addition:
2005 Oct 21
1
Not able to see OCFS disk on both nodes
I have been trying to get OCFS2 set up on 2 linux boxes that I have so I
can install RAC.
What I want to do:
Server 1 I have a 200G drive I would like to share with server 2.
Install OCFS2 and run RAC using these two servers.
What I have been able to do:
I have been able to install OCFS2 successfully on both nodes.
Define a partition on Server 1 disk and format it using OCFS2.
Mount
2005 Nov 23
2
vector of permutated products
Given an x-vector with, say, 3 elements, I would like to compute the
following vector of permutated products
(1-x1)*(1-x2)*(1-x3)
(1-x1)*(1-x2)*x3
(1-x1)*x2*(1-x3)
x1*(1-x2)*(1-x3)
(1-x1)*x2*x3
x1*(1-x2)*x3
x1*x2*(1-x3)
x1*x2*x3
Now, I already have the correctly sorted matrix of permutations! So, the
input looks something like:
#input
x<-c(0.3,0.1,0.2)
Nx<-length(x)
Ncomb<-2^Nx
2006 Sep 22
4
Creating Movies with R
Dear All,
I'd like to know if it is possible to create animations with R.
To be specific, I attach a code I am using for my research to plot
some analytical results in 3D using the lattice package. It is not
necessary to go through the code.
Simply, it plots some 3D density profiles at two different times
selected by the user.
I wonder if it is possible to use the data generated for different