Displaying 14 results from an estimated 14 matches for "funcit".
Did you mean:
funci
2012 Jun 29
2
turning R expressions into functions?
...which uses system.time
to determine which of a given list of R expressions executes
fastest. To work around the limited resolution of system.time,
I want to convert the given expressions into functions which
execute the given expressions a fixed number of times.
My current attempt is as follows:
FuncIt <- function(k, expr) {
k <- as.numeric(k)
expr <- eval.parent(substitute(expr))
eval(substitute(function() { for (funcit.i in 1:k) { expr } }))
}
This works, but seems not very robust.
My question: is there a better way of doing this?
Here are some experiments.
1) good: If I r...
2009 Nov 02
2
How to execute a funcition which name is stored in a string?
Hi, everybody
Is there any way to execute a function, which name is stored in a string.
such as:
a <- "ls()"
foo(a) ## same as ls() itself.
Or, to execute a R command, which is stored in a string
such as:
a <- "m1 <- matrix(1:9,3,3)"
foo(a) ## same as the assignment itself
2009 Jun 25
0
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
On Thu, Jun 25, 2009 at 12:32 AM, ihusar<ihusar at fit.vutbr.cz> wrote:
> //now i need to create an instruction that represents a call to a intrinsic
> Function* FIntr = Intrinsic::getDeclaration(&M, Intrinsic::regread_i32);
>
> // here it fails: void llvm::CallInst::init(llvm::Value*):
> //Assertion
2009 Jun 24
3
[LLVMdev] Replacing instruction in LLVM IR by an intrinsics
Hi everyone,
I am trying to write a pass, that finds some instructions and replaces them with my intrinsics,
but I am having problem understanding, how this should be done.
Let's say I have this instruction:
%tmp14 = load i32* getelementptr ([32 x i32]* @gpregs, i32 0, i64 28)
and i need to read the load's operands and replace it by let's say:
%tmp14 = call i32
2006 May 03
4
default values
...primary key,
c1 text default f1(),
...
cN text default fN()
);
But if I use de lines
@element = Element.new
@element.save
the values that element take are the nextval in the id field and nules in
all the other fields.
How can I get the defaults?
(but without rewriting the funcitions f1,...,fN in the rails aplication,
of course)
Thaks
--
Daniel H
2013 Sep 20
0
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
Hi, Akira,
I found you maintain mips MipsSchedule.td. does it correct? in
MipsSchedule.td, every InstrItinData only uses one InstrStage. there's no
ByPass info out there.
are you sure this reflects the real R4xxx/R5xxx processors.
why IILoad uses funcition unit ALU?
InstrItinData<IILoad , [InstrStage<3, [ALU]>]>
for my previous question, I have new input after reading the code.
pre-RA-sched is derived from ScheduleDAGSNodes, but post-RA-sched and
mi-sched are both derived from ScheduleDAGInstrs.that means pre-RA-sched
sc...
2008 Sep 05
5
PPTP Client Behind a Shorewall Firewall
Hi all, I´m running a server that frecuently needs to open a pptp
session with a remote server outside my Company. This server is running
behind a Shorewall firewall and I don´t find information in Shorewall
web page because there is no information in the link
http://www.shorewall.net/PPTP.htm#ClientsBehind
Nowadays I can connect this server with the remote one but te session is
closed after
2013 Sep 20
2
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
Akira,
Thanks you for response.
I understand Post-RA schedule make uses of scoreboardHazardRecognizer. But
I found mips codes are good enough by default. basically, I can not easily
eyeball any bubbles.
I don't understand how they can do that without post-RA-sched.
pre-ra-scheduler eg. (SelectionDAG/ScheduleDAGRRList.cpp) has little
information and they can only schedule node in topology
2008 Sep 23
0
additional parameters in function called by tapply
...al3)
b) calculation of the average of several years of the sums
for step a I use tapply with the following call
indices <- (list(year,spatial2,parameter)
resultspatial <- tapply(value,indices,sum)
for step b I use apply with the result of a and a function block_average
block_average <- funcition(value,year,number_of_years_to_average) with the parameters value and years as vectors and number_of_years as integer.
When I'm trying to skip the spatial aggregation, i.e. just do the block_averaging over years, I have the problem (AFIU the man page), that I can't provide the years vect...
2004 Aug 25
3
integrate function
Is possible to integrate this diferential equation:
dN/dt = Nr(1-(N/K))
in R using the integrate() function?
Or any other diferential equation?
If yes, how?
If no, anybody know any software on linux that make this?
Inte
Ronaldo
--
O problema de ter os dois p??s bem firmes no ch??o ?? que voc?? n??o vai conseguir
tirar as cal??as.
--An??nimo
--
|> // | \\
2013 Sep 25
1
[LLVMdev] Does Mips resolve hazard in pre-ra-sched or post-ra-sched?
...wrote:
> Hi, Akira,
>
> I found you maintain mips MipsSchedule.td. does it correct? in
> MipsSchedule.td, every InstrItinData only uses one InstrStage. there's no
> ByPass info out there.
> are you sure this reflects the real R4xxx/R5xxx processors.
>
> why IILoad uses funcition unit ALU?
> InstrItinData<IILoad , [InstrStage<3, [ALU]>]>
>
>
This means IILoad instructions use resource ALU for three cycles. I don't
remember why only two functional units (ALU and IMULDIV) are defined and
used in this .td file, but this would be incorre...
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
On Wed, 2024-10-02 at 14:54 +0200, Thomas Hellstr?m wrote:
> On Wed, 2024-10-02 at 14:45 +0200, Christian K?nig wrote:
> > Am 02.10.24 um 14:24 schrieb Thomas Hellstr?m:
> > > The ttm_device_init funcition uses multiple bool arguments. That
> > > means
> > > readability in the caller becomes poor, and all callers need to
> > > change if
> > > yet another bool is added.
> > >
> > > Instead use a struct with multiple single-bit flags. This
>...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
On Fri, Oct 04, 2024 at 04:28:29PM +0200, Thomas Hellstr?m wrote:
> On Wed, 2024-10-02 at 14:54 +0200, Thomas Hellstr?m wrote:
> > On Wed, 2024-10-02 at 14:45 +0200, Christian K?nig wrote:
> > > Am 02.10.24 um 14:24 schrieb Thomas Hellstr?m:
> > > > The ttm_device_init funcition uses multiple bool arguments. That
> > > > means
> > > > readability in the caller becomes poor, and all callers need to
> > > > change if
> > > > yet another bool is added.
> > > >
> > > > Instead use a struct with multipl...
2024 Oct 02
2
[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM
Some graphics APIs differentiate between out-of-graphics-memory and
out-of-host-memory (system memory). Add a device init flag to
have -ENOSPC propagated from the resource managers instead of being
converted to -ENOMEM, to aid driver stacks in determining what
error code to return or whether corrective action can be taken at
the driver level.
The first patch deals with a ttm_device_init()