similar to: Initializing vector and matrices

Displaying 20 results from an estimated 4000 matches similar to: "Initializing vector and matrices"

2024 Feb 29
1
[EXT] Initializing vector and matrices
Hello Eik: Thanks. I do not need to sample. Essentially, I have a do loop which produces 24 vectors of length of some length (say k=300) and 24 matrices of 300x300. Then, I simply need to? take the averages of these 24 vectors and matrices: x=(x1+x2+...+x24)/k y=(y1+y2+...+y24)/k I am just looking for ways to do this in a do loop, which requires initialization (to 0's) of x and y. My
2024 Feb 28
1
[EXT] Initializing vector and matrices
Hi Steven, It's not entirely clear what you actually want to achieve in the end. As soon as you "know" x1, and assuming that the different "xi" do not differ in length in the real application, you know the length of the target vector. Instead of the loop, you can use 'Reduce' without having to initialize a starting vector. # generate sample vectors, put them in
2011 May 09
2
Vectorizing a function: what does it mean?
Dear all, I would really appreciate if somebody can help me to understand what does the phrase "Vectorize your function" mean? And what is the job of Vectorize() function in doing that? I have read many threads where experts suggest to Vectorize the function, which will speed up entire calculation (and more elegant ofcourse.) I used to think that vectorizing function means, to create a
2024 Feb 06
2
Advice debugging M1Mac check errors
On 04/02/2024 19:41, Holger Hoefling wrote: > Hi, > > I wanted to ask if people have good advice on how to debug M1Mac package > check errors when you don?t have a Mac? Is a cloud machine the best option > or is there something else? I presumed this was about a CRAN package, possibly hdf5r which has a R-devel-only warning from the Apple clang compiler. And that is not a
2024 Feb 29
2
Initializing vector and matrices
You could declare a matrix much larger than you intend to use. This works with a few megabytes of data. It is not very efficient, so scaling up may become a problem. m22 <- matrix(NA, 1:600000, ncol=6) It does not work to add a new column to the matrix, as in you get an error if you try m22[ , 7] but convert to data frame and add a column m23 <- data.frame(m22) m23$x7 <- 12 The only
2010 Jan 16
1
CentOS 5 and webex wrf files?
Anyone have experience playing back a Webex wrf file on their CentOS 5.x system? I have a newly installed CentOS 5.4 i386 system and want to play such a file, but the Webex.com web site says it only supports Windows and MacOS for playback. Any other options next to creating a VM of Windows (I'm not buying a Mac for this). Thanks. Scott
2008 Apr 04
4
Arbitrary Precision Numbers
Hi (If you're wondering, this is a Project Euler question :)) If I wanted to calculate the sum of the digits in the decimal representation of 2^1000, what would be a good way to go about that? I've tried the following methods: # Calculate the sum of digits in the decimal representation of 2^n # Only works for smaller values of n bsum <- function(n) { s <- 0 e <-
2014 Dec 07
2
[RFC PATCH v2] cover: armv7: celt_pitch_xcorr: Introduce ARM neon intrinsics
Hi, Optimizes celt_pitch_xcorr for floating point. Changes from RFCv1: - Rebased on top of commit aad281878: Fix celt_pitch_xcorr_c signature. which got rid of ugly code around CELT_PITCH_XCORR_IMPL passing of "arch" parameter. - Unified with --enable-intrinsics used by x86 - Modified algorithm to be more in-line with algorithm in celt_pitch_xcorr_arm.s Viswanath Puttagunta
2019 May 30
3
Loop Optimization Working Group
Dear LLVM community, we would like to form a working group that focuses on loop optimizations and the loop optimization pipeline in LLVM. This working group would meet at a regular cadence (weekly or bi-weekly depending on people's schedules) and discuss topics relevant to loop optimizations. These topics would include: - Implementation of current loop optimizations - Proposals for
2011 Apr 27
2
ROCR for combination of markers
Dear list   I have 5 markers that can be used to detect an infection in combination. Could you please advise me how to use functions in ROCR/ other package to produce the ROC curve for a combination of markers?   I have used the following to get ROC statistics for each marker. pred <- prediction(y$marker1, y$infectn) perf <-performance(pred,"tpr","fpr")
2014 Nov 10
2
Webinar Gratuíto, Como evitar fraudes em telefonia
A SipPulse acaba de liberar o TFPS (www.tfps.co), solu??o para combate a fraudes de fomento de tr?fego internacional em telefonia. O sistema ? capaz de detectar 99.99% das tentaivas de fraude em tempo real. Durante o Webinar, abordaremos como proteger servidores Asterisk e Elastix/FreePBX de fraudes, medidas basicas como configura??o de firewall e remo??o de servi?os desnecess?rios e em seguida
2014 Dec 07
3
[RFC PATCH v2] cover: armv7: celt_pitch_xcorr: Introduce ARM neon intrinsics
From: Viswanath Puttagunta <viswanath.puttagunta at linaro.org> Hi, Optimizes celt_pitch_xcorr for floating point. Changes from RFCv1: - Rebased on top of commit aad281878: Fix celt_pitch_xcorr_c signature. which got rid of ugly code around CELT_PITCH_XCORR_IMPL passing of "arch" parameter. - Unified with --enable-intrinsics used by x86 - Modified algorithm to be more
2006 Jun 26
1
NLS and fitting of x-values?
I collected eggs laid by Springtails everyday over 28 days after swich to isotopically enriched diet. The eggs were pooled at day 7, 14, and 28 (+ day 0 = initial value) and analyzed for isotopes. After the diet switch the isotopic values of the adults and eggs change towards those of the new diet. Here are the d13C values (y) of the eggs: x y 0 -22.2 0 -22.2 0 -22.2 0 -22.0 7
2020 May 05
2
[GSoC] Unify ways to move code or check if code is safe to be moved
Hello, I am super excited about my proposal being accepted. I would like to thank Whitney for her help during the application phase. I did schedule some tasks for community bonding period. I have started looking into analysis pass for code motion checks. I will keep you updated with the progress. Best, Rithik Sharma -------------- next part -------------- An HTML attachment was scrubbed... URL:
2016 May 26
2
Adapting and open-sourcing PGI's Fortran frontend for LLVM
> On May 26, 2016, at 1:57 PM, Neely, Rob via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Chad, et al, > > In addition to Doug’s excellent technical update, I’ll note that we are > starting to have some discussions on the DOE side with PGI about > establishing a more formal review team made up of some key LLVM > stakeholders to help smooth the way for a broader
2009 May 23
0
[LLVMdev] Building LLVM with cmake on FreeBSD (was: Re: Arm port)
[snip] > Just to clarify things: have you *tried* to build LLVM with the > makefiles generated by cmake on your BSD system? Just checked that the makefiles generated by cmake work with `make' on FreeBSD 7.2 x86. The build fails while building `opt' because libdl is missing. -- Óscar
2019 Jul 17
3
Loop Opt WG Meeting Minutes for July 17, 2019
Hi all, Apparently some people had trouble joining today. I also had trouble using the attendee ID provided by webex. I've canceled the meeting series and will be scheduling a new one with an updated link. Please remember to update your calendars with the new invite. My apologies to those who couldn't join today, and to everyone for the churn. Today's Meeting Minutes:
2017 Dec 20
1
outlining (highlighting) pixels in ggplot2
I apprecaite the guidance Eik, that works great! I'm also wondering if you have any pointers for how I might stretch the color scale so that the max and min values are the same? Right now, the min is -0.064 and the max is something closer to 0.04. As you can see in what I sent, I tried adding: zmax1 = max(abs(m1)) ggplot(..., autoscale = FALSE, zmin = -1 * zmax1, zmax = zmax1) + ... to
2018 Feb 22
1
Calculate LC50
Dear All: good morning I need helps with the calculation of the *LC50* from the data below x<-c(0,0.3,0.7,1,4,10) y<-c(100,86,65,51.3,19.2,7.4) yxreg<-lm(y~x) any help will be highly appreciated. with many thanks abou ______________________ *AbouEl-Makarim Aboueissa, PhD* *Professor of Statistics* *Department of Mathematics and Statistics* *University of Southern Maine*
2008 Oct 09
1
plot-parameter pch without influence when plotting a data-frame
Hello, I'm plotting a data-frame and use plot(......., pch=...) as well as setting pch with par(pch=...) but always get the default symbol (circle) for the plots. Does pch have no effect, when plotting a complete data-frame, instead of certain values/vectors? How to change the behaviour? Do I have to change the print-function? TIA, Oliver