Displaying 20 results from an estimated 361 matches for "getvalue".
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 g...
2016 Feb 07
3
Assignment in environment
Dear all,
I have a function "fn" with its own environment, i.e.
env <- environment(fn)
and env is not .GlobalEnv. And another function
getValue <- function(x) environment(x)$mylist
which returns the list object "mylist" which is in "env". If I want to
modify "mylist", I could write
'getValue<-' <- function(x, value) { environment(x)$mylist <- value}
which gives not the desired result, e...
2008 Aug 26
8
[Bug 17307] New: sfwdec-mozilla plugin stops playing sounds
...zilla plugins stops playing sound after ~10 seconds. I'm using
pulseaudio and my ~/.asoundrc looks like this:
pcm.!default { type pulse }
ctl.!default { type pulse }
The output my browser gives me is this:
$ epiphany -p http://gnomecoder.wordpress.com/2008/08/26/luz-at-play/
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1 (1)
** Message: GetValue variable 2 (2)
** Message: GetValue variable 1...
2024 Aug 16
1
allequal diff
? Fri, 16 Aug 2024 07:19:38 +0200
SIBYLLE ST?CKLI via R-help <r-help at r-project.org> ?????:
> Is it possible to consider na.rm=TRUE?
> > all.equal(getValues(r1), getValues(r2_resampled), tolerance = 0)
>
> [1] "'is.NA' value mismatch: 9544032 in current 66532795 in target"
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...
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])
Unl...
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...=============================
--- utils/TableGen/CodeGenDAGPatterns.cpp (revision 8028)
+++ utils/TableGen/CodeGenDAGPatterns.cpp (working copy)
@@ -685,10 +685,17 @@
// Make sure that the value is representable for this type.
if (Size < 32) {
int Val = (II->getValue() << (32-Size)) >> (32-Size);
- if (Val != II->getValue())
- TP.error("Sign-extended integer value '" +
itostr(II->getValue())+
- "' is out of range for type '" +
- getEnumName(getT...
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 misma...
2010 Jan 05
0
[LLVMdev] [llvm-commits] [llvm] r92458 - in /llvm/trunk: lib/Target/README.txt lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/or.ll
...return ReplaceInstUsesWith(I, B);
>> }
>> }
>> - V1 = 0; V2 = 0; V3 = 0;
>> +
>> + // ((V | N) & C1) | (V & C2) --> (V|N) & (C1|C2)
>> + // iff (C1&C2) == 0 and (N&~C1) == 0
>> + if ((C1->getValue() & C2->getValue()) == 0) {
>> + if (match(A, m_Or(m_Value(V1), m_Value(V2))) &&
>> + ((V1 == B && MaskedValueIsZero(V2, ~C1->getValue())) || // (V|N)
>> + (V2 == B && MaskedValueIsZero(V1, ~C1->getValue())))) /...
2024 Aug 16
1
allequal diff
Dear Ben
Many thanks.
I see that a second challenge are NA values. Is it possible to consider na.rm=TRUE?
> r2_resampled <- resample(r2, r1)
> compareRaster(r1, r2_resampled)
[1] TRUE
>
> all.equal(getValues(r1), getValues(r2_resampled), tolerance = 0)
[1] "'is.NA' value mismatch: 9544032 in current 66532795 in target"
Kind regards
Sibylle
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Ben Bolker
Sent: Friday, August 16, 202...
2013 Oct 31
1
an rpy2, R cgi type question
...ackages import SignatureTranslatedAnonymousPackage as
STAP
with open("bz2.R","r") as f:
string=''.join(f.readlines())
etest = STAP(string,"etest")
etest.etest(500)
# Create instance of FieldStorage
form = cgi.FieldStorage()
# Get data from fields
if form.getvalue('subject'):
subject = form.getvalue('subject')
else:
subject = "Not set"
if form.getvalue('func1'):
func1 = form.getvalue('func1')
else:
func1 = "Not entered"
print "Content-type:text/html\r\n\r\n"
print "<html&...
2009 Apr 13
1
[LLVMdev] Porting LLVM backend is no fun yet
Dan Gohman wrote:
> There certainly are wishlist items for TableGen and TableGen-based
> instruction descriptions, though I don't know of an official list.
> Offhand,
> a few things that come to mind are the ability to handle nodes with
> multiple results,
Is there an official workaround, BTW?
- Volodya
2008 Sep 12
3
[LLVMdev] Difficulty with reusing DAG nodes.
...ToISelQueue(Op1);
AddToISelQueue(Op2);
unsigned Op;
Op = (Opcode == ISD::UMUL_LOHI ? Nios2::MULxu : Nios2::MULx);
SDNode *Hi = CurDAG->getTargetNode(Op, MVT::Flag, Op1, Op2);
SDNode *Lo = CurDAG->getTargetNode(Nios2::MUL, MVT::Flag, Op1, Op2);
if (!N.getValue(0).use_empty())
ReplaceUses(N.getValue(0), SDValue(Lo,0));
if (!N.getValue(1).use_empty())
ReplaceUses(N.getValue(1), SDValue(Hi,0));
return NULL;
}
The code generator complains:
nios2-elf-ecc:
/home/rich/llvm-trunk-new/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp...
2011 Dec 20
4
[LLVMdev] Proposal for -filetype=obj full big endian support
...he effort was started, but never completed.
The proposal is to extend the MCDataFragment class to include a container
of offset/size that one can traverse generating each element in the correct
endianess:
// Pseudo code
for (iterator it = begin(), ie = end(); it != ie; ++it) {
switch (it.getValueSize()) {
default:
assert(0 && "Invalid size!");
case 1: OW->Write8 (uint8_t (it.getValue())); break;
case 2: OW->Write16(uint16_t(it.getValue())); break;
case 4: OW->Write32(uint32_t(it.getValue())); break;
case 8: OW->Write64(uint...
2009 Jan 23
4
getValue() in a Controller problem, help please.
Hello there,
I''m trying to do something like:
render :update do |page|
page[:client_list].replace_html render(:partial => ''client_list'',
:object => @clients_list)
name = page[:name].getValue();
end
but I''m not getting the value, or somehow use $("name").getValue()
inside of the controller.
How can I do that?
tks,
David Sousa
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are...
2011 Nov 19
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...-236,7 +241,9 @@
> BasePointer = dyn_cast<SCEVUnknown>(SE->getPointerBase(AccessFunction));
>
> if (!BasePointer)
> + {
> INVALID(AffFunc, "No base pointer");
> + }
This change is unneeded and unrelated.
>
> BaseValue = BasePointer->getValue();
>
> @@ -245,8 +252,9 @@
>
> AccessFunction = SE->getMinusSCEV(AccessFunction, BasePointer);
>
> - if (!isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue))
> + if (!isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue)&& !All...
2011 Jul 13
2
[LLVMdev] overflow check
...ant> (C) && isa<Constant>(V)) {
ConstantInt *CV = dyn_cast<ConstantInt>(V);
ConstantInt *CB = dyn_cast<ConstantInt>(B);
ConstantInt *CC = dyn_cast<ConstantInt>(C);
if (CV && CB && CC) {
const APInt &VVal = CV->getValue();
const APInt &BVal = CB->getValue();
const APInt &CVal = CC->getValue();
******
But isn't APInt considered to represent unsigned integers ? Is there another
way of doing this ?
Thanks in advance,
Pranav
2016 Feb 07
1
Assignment in environment
> On 07 Feb 2016, at 14:46 , Duncan Murdoch <murdoch.duncan at gmail.com> wrot8[e:
>
[snippage]
>
> but in fact, this doesn't work:
>
> getValue(fn)[[1]] <- 3
> Error in getValue(fn)[[1]] <- 3 : could not find function "getValue"
>
> I suspect this is a parser problem.
Umm, no...
The canonical semantics are that
foo(x)[[....]] <- bar
is internally converted to
*tmp* <- foo(x)
*tmp*[[....]] <- bar
x &...
2005 Aug 19
0
Form.Element.getValue for checkboxes and radios?
I notice that Form.Element.getValue() takes a single element or id and
returns the element name and value. How does one handle getting the
values of checkboxes and/or radios which share the same control name,
save getting them one at a time?
<fieldset>
<legend>Medical History</legend>
<input name=&qu...
2005 May 03
2
[LLVMdev] VC++ build broken
...tant *Div(const ConstantClass *V1, const ConstantClass *V2) {
if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY);
if (V2->isNullValue()) return 0;
BuiltinType R = (BuiltinType)V1->getValue() /
(BuiltinType)V2->getValue();
return ConstantClass::get(*Ty, R);
}
does not compile with VC++. The symbol INFINITY is undefined, nor is
there an equivalent I can find.
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...> --- utils/TableGen/CodeGenDAGPatterns.cpp (revision 8028)
> +++ utils/TableGen/CodeGenDAGPatterns.cpp (working copy)
> @@ -685,10 +685,17 @@
> // Make sure that the value is representable for this type.
> if (Size < 32) {
> int Val = (II->getValue() << (32-Size)) >> (32-Size);
> - if (Val != II->getValue())
> - TP.error("Sign-extended integer value '" +
> itostr(II->getValue())+
> - "' is out of range for type '" +
> -...