Displaying 3 results from an estimated 3 matches for "mzero".
Did you mean:
zero
2020 Aug 06
4
[RFC] Zeroing Caller Saved Regs
...d as a
side-channel or speculation path.
The option will be "opt-in" for each target. Targets that don't
support the flag should probably emit a warning or error.
Our proposal for the feature is modeled off of H. J. Lu's
description[1] (copied with some modifications):
```
Add -mzero-caller-saved-regs=[skip|used-gpr|all-gpr|used|all]
command-line option and zero_caller_saved_regs function attributes:
* Don't zero caller-saved registers upon function return (default):
-mzero-caller-saved-regs=skip
zero_caller_saved_regs("skip")
* Zero used caller-saved i...
2011 Feb 24
3
problem in for loop
...and I found the problem is the
following.
Does anyone have some idea why I got the following R result? Since mone
is equal to 3, why
mu1 only have 2 components?
library(MASS)
> p0 <- seq(0.1, 0.9,by=0.1)
> m <- 10
>
>
> p0 <- p0[7]
>
> ## data generation
>
> mzero <- p0*m
> mone <- m-mzero
> mu1 <- rnorm(mone, 0,1)
> mu <- c(rep(0,mzero), mu1)
>
> var <- diag(m)
> zv <- mvrnorm(n, mu, var)
Error in mvrnorm(n, mu, var) : incompatible arguments
> mone
[1] 3
> mu1
[1] -0.08802108 0.77904786
[[alternative HTML version...
2010 Feb 11
1
histogam plots
...plot for several
plots, instead of specifying
them for each plot.
The following is my code for generalizing the matrix and draw the
histogram.
############gen is the function to generate the dta
gen <- function(m, rho) {
library(MASS)
set.seed(103)
theta <- 0
theta1 <- 2
pi0 <- 0.9
mzero <- pi0*m
mean <- c(rep(theta, mzero), rep(theta1,m-mzero))
J <- rep(1, m)
var <- function(rho) {(1-rho)*diag(m)+ rho*J%*%t(J)}
t <- mvrnorm(1, mean, var(rho))
return(t)
}
####### w is the matrix. A histgram is drawn for each of the rows.
n <- 1000
r <- s...