Displaying 20 results from an estimated 25 matches for "mask1".
Did you mean:
mask
2024 Aug 16
1
allequal diff
? Fri, 16 Aug 2024 11:32:58 +0200
<sibylle.stoeckli at gmx.ch> ?????:
> # values and mask r1
> r1 <- getValues(r1)
> mask1 <- is.na(r1)
> # Do the same for r2
> r2 <- getValues(r2_resampled)
> mask2 <- is.na(r2)
>
> # Combine the masks
> all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
Let's consider a more tangible example:
# The vectors `x` and `y` start out equal
x <...
2024 Aug 16
1
allequal diff
Cool thanks
# values and mask r1
r1 <- getValues(r1)
mask1 <- is.na(r1)
# Do the same for r2
r2 <- getValues(r2_resampled)
mask2 <- is.na(r2)
# Combine the masks
all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
output
> all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
[1] "'is.NA' value mismatch: 389 in...
2024 Aug 18
2
allequal diff
...y, August 16, 2024 11:45 AM
To: sibylle.stoeckli at gmx.ch
Cc: 'SIBYLLE ST?CKLI via R-help' <r-help at r-project.org>
Subject: Re: [R] allequal diff
? Fri, 16 Aug 2024 11:32:58 +0200
<sibylle.stoeckli at gmx.ch> ?????:
> # values and mask r1
> r1 <- getValues(r1)
> mask1 <- is.na(r1)
> # Do the same for r2
> r2 <- getValues(r2_resampled)
> mask2 <- is.na(r2)
>
> # Combine the masks
> all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
Let's consider a more tangible example:
# The vectors `x` and `y` start out equal x <...
2009 Feb 11
1
[LLVMdev] Prevent node from being combined
...mes if a
vector_shuffle can only return LHS or RHS, it's removed/combined so that I
cannot match vector_shuffle in the instruction selector.
If the vector_shuffle is combined, I have to write the instruction selector
like these:
def SUBvv: MyInst<(ins REG:$src0, imm:$mask0, REG:$src1, imm:$mask1),
[sub (vector_shuffle REG:$src0, REG:$src0, imm:$mask0),
(vector_shuffle REG:$src1, REG:$src1, imm:$mask1)]
def SUBrv: MyInst<(ins REG:$src0, REG:$src1, imm:$mask1),
[sub REG:$src0,
(vector_shuffle REG:$src1, REG:$src1, imm:$mask1)]
def SUBvr:...
2024 Aug 18
2
allequal diff
...eckli at gmx.ch
> Cc: 'SIBYLLE ST?CKLI via R-help' <r-help at r-project.org>
> Subject: Re: [R] allequal diff
>
> ? Fri, 16 Aug 2024 11:32:58 +0200
> <sibylle.stoeckli at gmx.ch> ?????:
>
> > # values and mask r1
> > r1 <- getValues(r1)
> > mask1 <- is.na(r1)
> > # Do the same for r2
> > r2 <- getValues(r2_resampled)
> > mask2 <- is.na(r2)
> >
> > # Combine the masks
> > all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
>
> Let's consider a more tangible example:
>
> #...
2024 Aug 18
1
allequal diff
...;SIBYLLE ST?CKLI via R-help' <r-help at r-project.org>
>> Subject: Re: [R] allequal diff
>>
>> ? Fri, 16 Aug 2024 11:32:58 +0200
>> <sibylle.stoeckli at gmx.ch> ?????:
>>
>>> # values and mask r1
>>> r1 <- getValues(r1)
>>> mask1 <- is.na(r1)
>>> # Do the same for r2
>>> r2 <- getValues(r2_resampled)
>>> mask2 <- is.na(r2)
>>>
>>> # Combine the masks
>>> all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
>> Let's consider a more tangible exa...
2024 Aug 18
1
allequal diff
...elp at r-project.org>
> >> Subject: Re: [R] allequal diff
> >>
> >> ? Fri, 16 Aug 2024 11:32:58 +0200
> >> <sibylle.stoeckli at gmx.ch> ?????:
> >>
> >>> # values and mask r1
> >>> r1 <- getValues(r1)
> >>> mask1 <- is.na(r1)
> >>> # Do the same for r2
> >>> r2 <- getValues(r2_resampled)
> >>> mask2 <- is.na(r2)
> >>>
> >>> # Combine the masks
> >>> all.equal(r1[!(mask1 & mask2)], r2[!(mask1 & mask2)])
> >> Let...
2024 Aug 16
1
allequal diff
? Fri, 16 Aug 2024 10:35:35 +0200
<sibylle.stoeckli at gmx.ch> ?????:
> what do you mean by use is.na() in getValues(). So I need to call
> getValues a second time?
Not necessarily, but it's one of the options. I was thinking along the
lines of:
values1 <- getValues(r1)
mask1 <- is.na(values1)
# Do the same for r2
# Combine the masks
all.equal(values1[!combined_mask], values2[!combined_mask])
Unlike compareRaster(), this assumes that the coordinate grid of r1 and
r2 is already the same and that only some of the values may differ.
> I suppose you mean to first pr...
2000 Aug 24
2
hosts allow/deny question
Hi all,
I would like to do something like this at Samba level:
hosts allow = subnet1/mask1 subnet2/mask2 etc
hosts deny = *
But this doesn't seem to work (machine that are not in subnet1 and
not in subnet2 still have access)
I think the * is not understood by Samba, I tried ALL, this didn't
work either. I'm gonna check the samba source code but if I could
get an expert ans...
2013 May 16
0
[LLVMdev] Combining physical registers
...vered by
> /// SubB.
> unsigned getCoveringLanes() const { return CoveringLanes; }
Yes, this would solve my problem. I'm assuming that if I have
subregisters Sub0..SubN (where Sub0 could be 0, i.e. the register
itself), and corresponding masks Mask0..MaskN, and
Mask0 & ~((Mask1|Mask2|..|MaskN) & Covering) == 0,
this will imply that the subregisters Sub1..SubN cover Sub0.
Thanks,
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
2006 Jun 24
2
data frame search
Hi,
I want to make a data frame which contains the positions of some searched values in another data frame.
Like:
Dataframe 1:
1 2 3 4 1 2 3 4
2 3 4 1 2 3 4 2
4 1 2 3 2 3 4 1
Let's say I searched on "4", then Dataframe 2 should contain:
x y
1 4
1 8
2 3
2 7
3 1
3 7
I have written a routine, but it seems to me that it isn't that perfect:
x<- 0
2007 Jun 11
1
Thoughts on arrays and generic functions
...anyone?
Cheers,
Derek
define clusterconf($members, $clustername, $clusterno,
$vips, $vipmasks, $loprinic, $hiprinic, $primarynic) {
$hostlist = array2string($members) # <-- Custom fn - join(" ")
$vip1 = array_elt($members, 0) # <-- Custom fn - return element
$mask1 = array_elt($vipmasks, 0)
file { llthosts:
owner => root,
group => root,
mode => 0644,
content => template("llthosts_conf"),
path => "/etc/llthosts"
}
file { llttab:
owner => root,
group =>...
2012 Apr 05
1
[PATCH] remove unnecesary typedef in bitwriter.c
...its && bw->bits + msbits + lsbits <= FLAC__BITS_PER_WORD) { /* i.e. if the whole thing fits in the current uint32_t */
+ /* ^^^ if bw->bits is 0 then we may have filled the buffer and have no free uint32_t to work in */
bw->bits = bw->bits + msbits + lsbits;
uval |= mask1; /* set stop bit */
uval &= mask2; /* mask off unused top bits */
@@ -557,8 +556,8 @@ FLAC__bool FLAC__bitwriter_write_rice_signed_block(FLAC__BitWriter *bw, const FL
}
else {
#elif 1 /*@@@@@@ OPT: try this version with MSVC6 to see if better, not much difference for gcc-4 */
- if(b...
2015 Dec 28
1
[PATCH 3] for bitwriter.c
...ce).
3) Asserts like
FLAC__ASSERT(parameter < sizeof(unsigned)*8)
were changed to
FLAC__ASSERT(parameter < 32)
I don't understand why sizeof is better here. Also, bitreader.c already uses
asserts like "FLAC__ASSERT(parameter <= 31)".
4) Fixed the calculation of mask1 and mask2. The current code is incorrect
if FLAC__WORD_ALL_ONES is not 32-bit, so better to replace it with the
proper 32-bit constant.
5) In FLAC__bitwriter_write_rice_signed_block() the new variable total_bits
was added (just as in FLAC__bitwriter_write_rice_signed()). The code was
simplified....
2005 Oct 18
0
Two differente networks at the same ethernet pci adapter
Hello all,
I need to put an IP alias to the same ethernet card, like this:
eth0 - IP1/MASK1/BROADCAST1
eth0:1 - IP2/MASK2/BROADCAST2
In this box I will have another card that conects to a LAN netowork. I
need this two alias in eth0 becouse I have two routes do take, but it seens
to do not work. This is the script I am using (this scripts works fine when
I have two ethernet cards...
2013 May 16
1
[LLVMdev] Combining physical registers
On May 16, 2013, at 8:13 AM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote:
> The function TII::canCombineSubRegIndices has been gone for a while now, and I was wondering if there is a target-independent way of determining if a certain set of physical registers "adds up" to a larger register. For example, on X86, AL and AH together form AX. On Hexagon, R0 and R1 are
2005 Jul 23
3
Multiple ISP Provider on one interface
The problem is that I have only 2 ethernet adapters in my linux router,
one of this adapter pluged to the LAN and the other is pluged to a HUB
who have 2 routers DSL. Each DSL routers have an static ip and the
solution that I found was creating an eth0 and eth0:1 but with this
option I have any way to use the eth0:1 adapte...
Any one knows a solution for this ?
Regards.
2013 May 16
2
[LLVMdev] Combining physical registers
The function TII::canCombineSubRegIndices has been gone for a while now,
and I was wondering if there is a target-independent way of determining
if a certain set of physical registers "adds up" to a larger register.
For example, on X86, AL and AH together form AX. On Hexagon, R0 and R1
are D0.
The context here is an attempt to coalesce multiple loads/stores into
fewer loads/stores
2024 Aug 16
2
allequal diff
Many thanks Ivan
Use is.na() on getValues() outputs, combine the two masks using the | operator to get a mask of values that are missing in either raster, then negate the mask to choose the non-missing values:
all.equal(getValues(r1)[!mask], getValues(r2)[!mask])
--> what do you mean by use is.na() in getValues(). So I need to call getValues a second time? I suppose you mean to first
2011 Dec 02
5
[LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
...lue(J, K);
> + } else {
> + Type *IType = I->getType();
> + Type *VType = getVecType(IType);
> +
> + if (IType->isVectorTy()) {
> + unsigned numElem = cast<VectorType>(IType)->getNumElements();
> + std::vector<Constant*> Mask1(numElem), Mask2(numElem);
> + for (unsigned v = 0; v< numElem; ++v) {
> + Mask1[v] = ConstantInt::get(Type::getInt32Ty(Context), v);
> + Mask2[v] = ConstantInt::get(Type::getInt32Ty(Context), numElem+v);
> + }
> +
> + K1 = new S...