search for: matrixa

Displaying 10 results from an estimated 10 matches for "matrixa".

Did you mean: matrix
2017 Mar 20
1
Fwd: Possible memory problems with mallloc when called with .C()
...); } double superior(double x, double i, double m){ double op1 = r_abs(x-(i)/(m)); double op2 = r_abs(x-(i-1)/(m)); return max(op1,op2); } double termino1, termino2, f, g, t, h1, h2, l=1.0, m=n-k; unsigned long int i, j, filas; double **matrixA, **matrixB; matrixA = (double **) malloc((k+1)*sizeof(double *)); matrixB = (double **) malloc((k+1)*sizeof(double *)); for (i=0; i <= k; i++) { matrixA[i] = (double *) malloc(n*sizeof(double)); matrixB[i] = (double *) malloc(n*sizeof(double)); for (j...
2007 Dec 31
1
help with matrix
Hi, dear all: I am a beginner. I appreciate any help or hint from you. I am trying to do calculation with matrices. I have 3 matrices. One is matrixA, 2nd is matrixB, and last is matrixC. Here is matrixA: 1.8511.40.0831.001 0.8771.30.1161.33 1.9021.21.1020.302 0.8640.1261.110.252 1.8230.2161.0020.307 Next is matrixB: 0.8761.770.1930.328 0.8911.0090.2381.004 0.8641.1150.2760.22 0.8871.3060.1660.239 0.8521.0011.0080.251 Last is m...
2009 Jul 20
3
Write in file matrices of sifferent size
Hi list, How to save a list content into a text file? Please consider example below, I have two numeric matrices that I bundle into a list & give each list element a name Example: > matrixA <- matrix(0,5,4) > matrixB <- matrix(1,7,13) > matrixList <- list(matrixA,matrixB) > names <- c("Matrix A","Matrix B") > names <- names(matrixList) How could I get the list in a txt as below: " Matrix A (Matrix A element 1,1), (Matrix A e...
2005 Jul 20
2
Combining two matrices
...number of observations: matrix A matrix B 217 x 89 16063 x 89 I want to creat one matrix C that has both matrices adjacent to one another, where matrix A is duplicated many times to create the same row number for matrix B, i.e. 16063. matrixA matrix B matrixA matrixA so matrix C will be 16063 x 178 I've tried cbind() and merge() with no success..
2009 Nov 25
1
help writing for loop
...arate matrix (matrix.B) of x values (where x has a length of 1500). I want to solve for y 100 times using each set of the parameter estimates in matrix.A once. At present my code looks like this and it only performs the first iteration. For (i in 1:length(matrix.A)) { y <- matrix.A$a[[i]] + matrixA$b[[i]] * matrix.B$x + matrixA$c[[i]] * matrix.B$x^2) I have not been able to figure out how to loop through the rows of parameter estimates in matrix.A. I am new to writing loops, so any assistance would be much appreciated. Regards, Jessica Schedlbauer
2006 May 22
2
Matrix in 3D
Dear R Users, Is it possible to add another (third) index to matrix (as in MATLAB). For some analysis e.g. finite mixture models is necessary. Simple example i<-3 matrix[, , i]<-matrixA[, ,i]%*%matrixB[, , i] I would appreciate any help Rob
2005 Oct 24
0
error messages in matrix multiplication
...below (a) or syntax (b) remain unsuccessful. With (a) I obtain the message - Warning message: Error in A %*% B : non-conformable arguments With (b) I obtain the message - Warning message:NAs produced by integer overflow in: sum(A * A) * sum(B * B) : (a) Matrix testA <-read.table("c:\\matrixA.txt",header=T) testB <-read.table("c:\\matrixB.txt",header=T) A<-as.matrix(testA) B<-as.matrix(testB) cosineDissimilarity <- sum(A%*%B)/sqrt(sum(A%*%A)*sum(B%*%B)) (b) pointwise testA <-read.table("c:\\matrixA.txt",header=T) testB <-read.table("...
2008 Apr 13
0
[Fwd: Re: Assigning to multiple variables]
...ction that returns 2 or more values (such as dim as > applied to a matrix), can we assign these 2 or more values to an equal > number of differently named variables in one line? For example, is > there any way to do something like this: > > [NumberRows NumberColumns] <- dim(MatrixA) In that case R returns an object (a vector) with two values where the first is the number of rows and the second is the number of columns. Almost everything in R are objects. So: > d <- dim(attitude) > rows <- d[1] > rows [1] 30 Tom
2013 Nov 19
7
Quadrified GTX 480 VT-d passthrough. CUDA 5.5 in Linux partial success
...hat without having to patch Xen or reboot the entire machine =) It doesn''t seem to matter what CUDA app I''m running, here is matrixMul for example: matrixMul# ./matrixMul [Matrix Multiply Using CUDA] - Starting... GPU Device 0: "Quadro 6000" with compute capability 2.0 MatrixA(320,320), MatrixB(640,320) Computing result using CUDA Kernel... done Performance= 227.22 GFlop/s, Time= 0.577 msec, Size= 131072000 Ops, WorkgroupSize= 1024 threads/block Checking computed result for correctness: Result = PASS Note: For peak performance, please refer to the matrixMulCUBLAS exampl...
2013 Nov 18
0
Quadrified GTX 480 VT-d passthrough. CUDA 5.5 in Linux partial success!
...hat without having to patch Xen or reboot the entire machine =) It doesn''t seem to matter what CUDA app I''m running, here is matrixMul for example: matrixMul# ./matrixMul [Matrix Multiply Using CUDA] - Starting... GPU Device 0: "Quadro 6000" with compute capability 2.0 MatrixA(320,320), MatrixB(640,320) Computing result using CUDA Kernel... done Performance= 227.22 GFlop/s, Time= 0.577 msec, Size= 131072000 Ops, WorkgroupSize= 1024 threads/block Checking computed result for correctness: Result = PASS Note: For peak performance, please refer to the matrixMulCUBLAS exampl...