Displaying 20 results from an estimated 2000 matches similar to: "reshape cast to a sparse matrix?"
2008 Oct 29
1
How to set read.table variables to vectors?
The summary stats for the xin and yin variables below are correct. However,
if I use plot(xin,yin), an exception is thrown saying that "object xin is
not found."
Also, it is apparent that I can't successfully replace the x and y vectors
with values from xin and yin.
The four plots on one panel are showing but the range of x and y is only
[0,1], and therefore, it seems like an
2012 Oct 30
1
[LLVMdev] Any plan to add MIN/MAX isd node?
Hi Duncan,
Yes, exactly. However, we need define Opcode MIN/MAX
Into ISDOpcodes.h. Do you like to add those two definitions
Into the tree?
Thanks,
Yin
-----Original Message-----
From: Duncan Sands [mailto:duncan.sands at gmail.com] On Behalf Of Duncan Sands
Sent: Tuesday, October 30, 2012 12:10 PM
To: Yin Ma
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Any plan to
2013 Nov 07
0
[LLVMdev] Should remove calling NULL pointer or not
On Thu, Nov 7, 2013 at 11:02 AM, Yin Ma <yinma at codeaurora.org> wrote:
> Hi John,
>
>
>
> It seems the dereferencing a NULL pointer is undefined behavior but
>
> Calling a function through a null pointer seems o.k.
>
What is the well defined behavior of calling a null function pointer?
>
>
> If so , for this place, we need comment out the check.
>
2013 Nov 07
2
[LLVMdev] Should remove calling NULL pointer or not
Hi John,
It seems the dereferencing a NULL pointer is undefined behavior but
Calling a function through a null pointer seems o.k.
If so , for this place, we need comment out the check.
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#232
look at Notes from the October 2003 meeting.
Yin
From: John Criswell [mailto:criswell at illinois.edu]
Sent: Wednesday,
2018 May 09
1
Is there any relationship between IR instruction and execution time
Hi Yin,
MCA does support the –mcpu and –mtriple options. We have one arm test in llvm/test/tools/llvm-mca/ARM for a cortex-9, which is an Out of Order chip.
Hope that helps!
-Matt
From: Yin Liu <yinliu.tiger at gmail.com>
Sent: Tuesday, May 8, 2018 2:49 PM
To: Davis, Matthew <Matthew.Davis at sony.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Is there any relationship
2012 Oct 30
0
[LLVMdev] Any plan to add MIN/MAX isd node?
Hi Yin,
> To use select, usually, there is a compare before select.
> Presence of comparison will disable some opportunities to
> optimize some code. Select and Compare is not associative
> neither.
at the IR level LLVM already has pattern matching helpers for
identifying min/max idioms, here is part of a transform using
this, from InstructionSimplify.cpp:
// Signed variants
2016 Jan 29
2
[cfe-dev] Proposal: Enable BUILD_SHARED_LIBS=ON by default for debug build.
Hi Yin,
I second David's words. I use shared libs myself on debug builds, but
static builds with gold on a local disk is pretty feasible. Before I
used gold, I had to have 16GB of RAM on my laptop, now I need less
than 8GB for static builds.
On 28 January 2016 at 23:58, Yin Ma via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> It is O.K. I just hope BUILD_SHARED_LIBS=ON is tested
2018 May 08
0
Is there any relationship between IR instruction and execution time
Hi Matt,
Thanks you so much for the reply!
I've tried the llvm-mca, it is helpful.
I was wondering whether the llvm-mca support the assembly code for the ARM?
I cross-compile the test file for ARM like that: clang test.c -O2 -target
arm-linux-gnueabihf -static -S -o test.s
If I want to check the performance using llvm-mca, is there any option of
"-mcpu" for ARM ?
Thanks,
Yin
2012 Oct 30
2
[LLVMdev] Any plan to add MIN/MAX isd node?
Hi Duncan,
To use select, usually, there is a compare before select.
Presence of comparison will disable some opportunities to
optimize some code. Select and Compare is not associative
neither.
Thanks,
Yin
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Duncan Sands
Sent: Tuesday, October 30, 2012
2016 Apr 19
2
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
Using the Matrix package, how can I create a row-oriented sparse
Matrix from scratch populated with some data? By default a
column-oriented one is created and I'm aware of the note that the
package is optimized for column-oriented ones, but I'm only interested
in using it for holding my sparse row-oriented data and doing basic
subsetting by rows (even using drop=FALSE).
Here is what I
2013 Nov 07
0
[LLVMdev] Should remove calling NULL pointer or not
On 11/6/13 6:36 PM, Yin Ma wrote:
>
> Hi,
>
> For a small case, that calls NULL pointer function. LLVM explicitly
> converts
>
> It to a store because it thinks it is not reachable like calling
> undefvalue.
>
> In InstCombineCalls.cpp:930
>
> I think it is not a right approach because calling null pointer function
>
> Will segfault the program.
2006 Dec 19
1
preserving sparse matrices (Matrix)
Hi,
I have sparse (tridiagonal) matrices, and I use the Matrix package for
handling them. For certain computations, I need to either set the
first row to zero, or double the last row. I find that neither
operation preserves sparsity, eg
> m <- Diagonal(5)
> m
5 x 5 diagonal matrix of class "ddiMatrix"
[,1] [,2] [,3] [,4] [,5]
[1,] 1 . . . .
[2,] . 1
2018 May 08
2
Is there any relationship between IR instruction and execution time
Hi Yin,
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Yin Liu via llvm-dev
> Hello,
>
> As is known to all, there is a relationship between program's instructions and its execution time. In other words, we can estimate the execution time based on the number of program > instructions.
>
> I'm curious about what the relationship between IR
2016 Jan 28
2
[cfe-dev] Proposal: Enable BUILD_SHARED_LIBS=ON by default for debug build.
Hi David,
I assume you have a powerful machine. Our drive space is on network mounted
machined by IT department. The machine is default Ubuntu setup with 8 cores.
Shared build is showing huge advantage due to size reduction. I will try those two
debug options to see how it works.
Thanks,
Yin
From: David Blaikie [mailto:dblaikie at gmail.com]
Sent: Thursday, January 28, 2016
2016 Apr 20
0
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
>>>>> Henrik Bengtsson <henrik.bengtsson at gmail.com>
>>>>> on Tue, 19 Apr 2016 14:04:11 -0700 writes:
> Using the Matrix package, how can I create a row-oriented sparse
> Matrix from scratch populated with some data? By default a
> column-oriented one is created and I'm aware of the note that the
> package is optimized for
2013 Mar 14
0
[LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
----- Original Message -----
> From: "Yin Ma" <yinma at codeaurora.org>
> To: "Andrew Trick" <atrick at apple.com>
> Cc: llvmdev at cs.uiuc.edu
> Sent: Thursday, March 14, 2013 4:21:50 PM
> Subject: Re: [LLVMdev] Suggestion About Adding Target Dependent Decision in LSR Please
>
>
>
>
>
> Hi Andy,
>
>
>
> Actually,
2009 Jan 20
1
Creating a Sparse Matrix from a Sparse Vector
Hello,
I am working with a sparse matrix that is approx. 13,900 by 14,100. My
goal is to select a row out of the matrix and create a new matrix with that
row repeated 13,900 times without having to do any looping. Example:
Starting Matrix:
exampleMatrix
3 x 4 sparse Matrix of class "dgCMatrix"
[1,] 1 . . .
[2,] . 1 . 0.5
[3,] . . 1 ..
New Matrix:..
newExampleMatrix
3 x 4 sparse
2016 Jan 28
4
[cfe-dev] Proposal: Enable BUILD_SHARED_LIBS=ON by default for debug build.
On Thu, Jan 28, 2016 at 3:06 PM, Jonathan Roelofs <jonathan at codesourcery.com
> wrote:
>
>
> On 1/28/16 4:00 PM, Yin Ma via cfe-dev wrote:
>
>> Hi David,
>>
>> I assume you have a powerful machine. Our drive space is on network
>> mounted
>>
>> machined by IT department. The machine is default Ubuntu setup with 8
>> cores.
>>
2020 Jul 21
2
trivial typo in ?Matrix::sparse.model.matrix.Rd
? "form" -> "from". Diff against latest SVN:
Index: sparse.model.matrix.Rd
===================================================================
--- sparse.model.matrix.Rd??? (revision 3336)
+++ sparse.model.matrix.Rd??? (working copy)
@@ -4,7 +4,7 @@
?\alias{fac2sparse}
?\alias{fac2Sparse}
?\description{Construct a sparse model or \dQuote{design} matrix,
-? form a formula
2009 May 13
2
Optimization algorithm to be applied to S4 classes - specifically sparse matrices
Hello.
I am trying to optimize a set of parameters using /optim/ in which the
actual function to be minimized contains matrix multiplication and is of
the form:
SUM ((A%*%X - B)^2)
where A is a matrix and X and B are vectors, with X as parameter vector.
This has worked well so far. Recently, I was given a data set A of size
360440 x 1173, which could not be handled as a normal matrix. I