Displaying 20 results from an estimated 10000 matches similar to: "For Loop Syntax"
2009 Apr 24
2
Array
Hi there,
Just wondering if anyone has any tips for using arrays?
I am trying to convert the following SAS code to R:
data A2;
set A1;
by subject_id;
retain BX1-BX10 i;
array b(1:10) BX1-BX10 ;
if first.subject_id then do ;
do j=1 to 10;
b(j) = .;
end;
i=1;
end;
b(i) = BX;
i = i+1;
if last.subject_id then
2009 Apr 23
3
Running Edit() or Fix() on Linux Machine
Hi all,
As I am new to using R on a Linux machine I have another question if
that's ok.
I am trying to use the fix() or edit() function on this Linux machine
but I get the following error message:
Error in dataentry(datalist, modes) : invalid device
In addition: Warning message:
In edit.data.frame(get(subx,envir=parent),title = subx, ...) :
Unable to create fontset
2009 Apr 23
3
Running Scripting on Linux Machine
Hi all,
I am new to using R on a Linux machine & I have a few questions on
set-up. If anyone has experience in this area any advice would be
greatly appreciated.
- When I open R I have the option to do the following:
o 'Run in Terminal'
o 'Display'
o 'Cancel'
o 'Run'
- My only option to open a window such as we find in
2009 Apr 22
1
Count Code
Hi there,
I am interested in converting SAS code to R & I wondered if anyone had
any quick R code/tips for the following piece of test SAS code?
Any feedback greatly appreciated.
data A1;
set A1;
count + 1;
by subject_id;
if first.subject_id then count = 1;
run;
[[alternative HTML version deleted]]
2015 Feb 23
2
[PATCH 1/2] nv50/ir: add fp64 support on G200 (NVA0)
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Untested beyond compiling a few shaders to see if they look like they
might work. nvdisasm agrees with envydis's decoding of these things.
Will definitely get ahold of a G200 to run tests on before pushing this.
.../drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp | 94 ++++++++++++++++++---
2015 Feb 23
2
[Mesa-dev] [PATCH 2/2] nvc0/ir: improve precision of double RCP/RSQ results
Does this give correct results for special floats (0, infs)?
We tried to improve (for single floats) x86 rcp in llvmpipe with
newton-raphson, but unfortunately not being able to give correct results
for these two cases (without even more additional code) meant it got all
disabled in the end (you can still see that code in the driver) since
the problems are at least as bad as those due to bad
2017 Dec 20
2
[PATCH] gm107/ir: use lane 0 for manual textureGrad handling
This is parallel to the pre-SM50 change which does this. Adjusts the
shuffles / quadops to make the values correct relative to lane 0, and
then splat the results to all lanes for the final move into the target
register.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Entirely untested beyond compilation. Should check
bin/tex-miplevel-selection textureGrad Cube
2019 Oct 14
1
[PATCH] gm107/ir: fix loading z offset for layered 3d image bindings
Unfortuantely we don't know if a particular load is a real 2d image (as
would be a cube face or 2d array element), or a layer of a 3d image.
Since we pass in the TIC reference, the instruction's type has to match
what's in the TIC (experimentally). In order to properly support
bindless images, this also can't be done by looking at the current
bindings and generating appropriate
2014 May 18
1
[PATCH 1/2] nv50/ir: fix s32 x s32 -> high s32 multiply logic
Retrieving the high 32 bits of a signed multiply is rather annoying. It
appears that the simplest way to do this is to compute the absolute
value of the arguments, and perform a u32 x u32 -> u64 operation. If the
arguments' signs differ, then negate the result. Since there is no u64
support in the cvt instruction, we have the perform the 2's complement
negation "by hand".
2016 Mar 02
2
EH failures in MCJIT
After re-cmaking and rebuilding everything from scratch, I'm seeing
failures in MCJIT. It this something known or expected? I build
LLVM/clang with pre-packaged clang-3.7.0, with "-stdlib=libc++".
Example failure:
/w/bld/org/./bin/lli -remote-mcjit
-mcjit-remote-process=/w/bld/org/./bin/lli-child-target
/w/src/llvm.org/test/ExecutionEngine/MCJIT/remote/eh.ll
--
Exit Code:
2014 Mar 27
3
[LLVMdev] Lots of regtest failures on PPC64/Linux
On Mar 26, 2014, at 6:56 PM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote:
> On 3/26/2014 11:39 AM, İsmail Dönmez wrote:
>>
>> make check-all but yes make check would suffice. Thanks!
>
> I see two reported failures:
>
>
> FAIL: LLVM :: BugPoint/compile-custom.ll (459 of 9992)
> ******************** TEST 'LLVM ::
2007 Sep 26
1
Repeated tests against baseline
I came across a post by Karl Knoblick regarding the modeling of longitudinal data (see https://stat.ethz.ch/pipermail/r-help/2007-May/132137.html). I am often asked by physicians to perform what Karl refers to in his post as option 1: to perform paired t-tests against baseline at each follow up time point (30 days, 90 days, 6 months, etc.). Unlike Karl's example, however, many of the trials
2016 Sep 30
2
[PATCH] nv50/ir: constant fold OP_SPLIT
On 28.09.2016 02:01, Ilia Mirkin wrote:
> On Tue, Sep 27, 2016 at 7:25 PM, Tobias Klausmann
> <tobias.johannes.klausmann at mni.thm.de> wrote:
>> Split the source immediate value into two new values and create OP_MOV
>> instructions the two newly created values.
>>
>> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
>> ---
2016 Sep 27
2
[PATCH] nv50/ir: constant fold OP_SPLIT
Split the source immediate value into two new values and create OP_MOV
instructions the two newly created values.
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
.../drivers/nouveau/codegen/nv50_ir_peephole.cpp | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp
2013 Oct 22
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
For example, I execute the following command sequences:
H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
#.globl _sqrt
.global sqrt
#.type sqrt, at function
#_sqrt:
sqrt: fldl 4(%esp)
fsqrt
fstsw %ax
sub $12,%esp
fld %st(0)
fstpt (%esp)
mov (%esp),%ecx
and $0x7ff,%ecx
cmp $0x400,%ecx
jnz 1f
and $0x200,%eax
2016 Mar 03
2
EH failures in MCJIT
Hi Lang,
I am on Ubuntu 14.04.
I am building ToT: llvm, clang, polly, lld, compiler-rt, libcxx, libcxxabi.
The build compiler is: clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04
The failures show up during "make check-all".
My cmake command was:
cmake -G 'Unix Makefiles'
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/w/c/org
-DLLVM_TARGETS_TO_BUILD:STRING=all
2014 Aug 08
2
[PATCH 1/3] nvc0/ir: add base tex offset for fermi indirect tex case
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
.../drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
index f010767..4a9e48f 100644
---
2013 Oct 22
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
I don't think we should attempt to mangle symbols declared in assembly
source files. If you're writing assembly, you will need to handle ABI
portability, including the _ prefix on win32 x86.
clang will run the C preprocessor for you if you use the .S file suffix
(case matters).
On Tue, Oct 22, 2013 at 7:08 AM, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>wrote:
> For example, I
2016 Feb 25
2
asan link failure when configuring with -DBUILD_SHARED_LIBS=ON
I'm getting this link failure when running ninja check on Linux. I'm
configuring with shared libraries enabled, so I'm not sure why asan is
looking for .a archives.
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_BUILD_TESTS=ON
-DCLANG_INCLUDE_DOCS=ON -DBUILD_SHARED_LIBS=ON ../llvm
$ ninja check-all
FAILED: cd [..]bld/projects/compiler-rt/lib/asan/tests &&
2015 Jan 10
2
[PATCH v2] nv50/ir: Handle OP_CVT when folding constant expressions
Folding for conversions: F32->(U{16/32}, S{16/32}) and (U{16/32}, {S16/32})->F32
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
V2: beat me, whip me, split out F64
.../drivers/nouveau/codegen/nv50_ir_peephole.cpp | 81 ++++++++++++++++++++++
1 file changed, 81 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp