Displaying 20 results from an estimated 5000 matches similar to: "array indexes in C"
2009 Apr 27
2
[cucumber] Setting a constant in step definition
On Mon, Apr 27, 2009 at 7:00 AM, Andrew Premdas <apremdas at gmail.com> wrote:
> Currently I have a very simple constants implementation being loaded as a
> Rails initialiser
>
> module MVOR
> ? module Postage
> ??? THRESHOLD = BigDecimal.new(''6.99'')
> ??? RATE = BigDecimal.new(''30.00'')
> ? end
> end
>
>
> My scenarios
2011 Jul 09
8
Show your CentOS Support
hi guys,
I have about 80 CentOS T-Shirts, ranging from Medium to 3XL in size.
These are the grey T-shirts we can see Ralph, Garry and the guys from
hostdime modeling for us at:
http://www.karan.org/pics/centos/images/002-IMG_2571.JPG
If you would like one, please send me an email on kbsingh at the
centos.org domain, and let me know your address and what size you would
want, I would be happy
2015 Jun 16
3
FXS Solutions for modems and other non jitter tolerant devices
In the past we have used Adtran Atlas 550's to break out FXS ports for
devices like modems. The great thing about the 550 is that internally it
is all TDM so there is absolutely zero latency.
We are able to use ATA's for faxes and analog phones but devices that use
modems, they fail 99.99% of the time when using an ATA.
We tried to migrate to TA908 devices; they have FXS ports built
2010 Oct 27
3
[LLVMdev] Scalar Evolution not canonalizing division?
Hi,
I am just found a scalar evolution function that does not seem canonical
to me.
The C code I used to produce it is:
long foo (long n, long m) {
long i, j;
long A[n][m];
for (i = 0; i < n; ++i)
for (j = 0; j < m; ++j)
A[i][j] = 1;
return A[42][42];
}
This produces after applying -mem2reg the attached LLVM-IR.
For the store to the array A in the loop I get
2011 May 20
1
DocumentTermMatrix - text minig
Hi All,
I have a Data.frame that looks like that one below. I would like to do some text mining on it to possibly find some patterns between Opis, ACklasifikacija and Vodja. I looked over a tm package which loks promissing, more specifically DocumentTermMatrix or TermDocumentMatrix. But I can not figure out how to change my data from data.frame to Corpus or VCorpus.
Globina
2003 Apr 23
1
Setting up Xemacs + Sweave
Dear list,
I have tried to setup my Xemacs for use with Sweave, which I indend to learn.
I have followed the instructions in the Sweave FAQ, that is to say, I put
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list
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
2019 Mar 13
2
Scalable Vector Types in IR - Next Steps?
Disclaimer: I’m only speaking for myself, not Apple.
This is really disappointing. Resorting to multi-versioned fixed length vectorization isn’t a solution that’s competitive with the native VLA support, so it doesn’t look like a credible alternative suggestion (at least not without elaborating it on the mailing list). Without a practical alternative, it’s essentially saying “no” to a whole class
2003 Apr 17
1
Testing for whole numbers
Is there a way in R to test if a given number is an integer, ie a
whole number? I am not referring to the data type of a number, but to
its value.
That is to say, is.whole(pi-pi+2) would be TRUE, whereas is.whole(4/3)
would be false. At the moment I am using
is.whole <- function(a) { floor(a)==a }
which is OK for real numbers, but not for complex ones (a+bi would be
a whole number if both a
2006 Feb 09
1
Re: Help on Vicidial
Here is another log from the * server CLI, I reall hope some one can help me
out on this one. thanks
|SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and
server_ip='127.0.0.1' and
campaign_id = '' and call_time < "" and lead_id != '';|
-- VDAD get agent: |0|update of vla table: |127.0.0.1
|UPDATE vicidial_live_agents set
2003 Oct 01
3
fitting Markov chains
I need to find a computationally simple process for the movement of
interest rates. In this simplified model, an interest rate can have
3--5 possible values, and its movement is characterized by a matrix of
transition probabilities (ie, it is a Markov process).
I would like to estimate this process from a given set of data.
For example, let the interest rate time series be:
7 3 8 2 5 9 6
2018 Mar 13
2
[PATCH v2] drm/nouveau/secboot: remove VLA usage
In preparation to enabling -Wvla, remove VLA. In this particular
case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local
variable cmdline_size. Also, remove cmdline_size as it is not
actually useful anymore.
The use of stack Variable Length Arrays needs to be avoided, as they
can be a vector for stack exhaustion, which can be both a runtime bug
or a security flaw. Also, in general, as
2008 Apr 20
0
[LLVMdev] Global variable-length array
On Apr 19, 2008, at 22:45, Talin wrote:
> Suppose I have a global variable which points to a constant,
> variable length array.
This is somewhat contradictory. Do you want an 'vla *g;' in C? If so,
your global will be of type %vla** (you'll load a pointer to the array
from the global). Its initializer would be a bitcast of a global which
has some type similar to %vla.
2018 Mar 16
2
[PATCH v2] drm/nouveau/secboot: remove VLA usage
On 14 March 2018 at 21:08, Thierry Reding <thierry.reding at gmail.com> wrote:
> On Tue, Mar 13, 2018 at 11:24:11AM -0500, Gustavo A. R. Silva wrote:
>> In preparation to enabling -Wvla, remove VLA. In this particular
>> case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local
>> variable cmdline_size. Also, remove cmdline_size as it is not
>> actually
2006 Oct 27
1
making uniroot a bit more robust?
Hi,
I wonder if it would make sense to make uniroot detect zeros at the
endpoints, eg
if f(lower)==0, return lower as the root, else
if f(upper)==0, return upper as the root, else
stop if f(upper)*f(lower) > 0 (currently it stops if >=), else
proceed to the algorithm proper.
Currently I am using a wrapper function to implement this, and I found
it useful. But I didn't want to send a
2019 Mar 13
4
Scalable Vector Types in IR - Next Steps?
On Wed, 13 Mar 2019 at 13:57, Graham Hunter <Graham.Hunter at arm.com> wrote:
> I did ask them to post their arguments on the list, but I guess they've been busy for the last month (or forgot about it).
Who is "them" and who will write up a proposal / RFC on the use of
intrinsics for both lowering and vectorisation?
It goes without saying that those discussions should have
2008 Apr 20
4
[LLVMdev] Global variable-length array
Question about "Pascal-style" arrays as mentioned in the reference guide.
Suppose I have a global variable which points to a constant, variable
length array.
The question is, how can I assign an array of type "{ i32, [5 x float]}"
to a global of type "{ i32, [0 x float]}"? From my experimentation, it
appears you can't bitcast or call GEP on a constant
2003 Aug 25
2
Data calls through *
I have a Pitney Bowes (USPS Postage) machine that connects
via a USB modem to fill it.
It connects but soon disconnects. It works fine through a standard
analog phone line not connected to asterisk. I also
have the 'd' option on the Dial command.
exten => _1NXXNXXXXXX,1,Dial,Zap/47/BYEXTENSION||d
Any ideas?
John
2018 May 23
2
[PATCH v2] drm/nouveau/secboot: remove VLA usage
On Thu, Apr 26, 2018 at 4:25 PM, Kees Cook <keescook at chromium.org> wrote:
> On Thu, Mar 15, 2018 at 7:05 PM, Ben Skeggs <skeggsb at gmail.com> wrote:
>> On 14 March 2018 at 21:08, Thierry Reding <thierry.reding at gmail.com> wrote:
>>> On Tue, Mar 13, 2018 at 11:24:11AM -0500, Gustavo A. R. Silva wrote:
>>>> In preparation to enabling -Wvla,
2007 Jul 03
2
dovecot + winbind problem
Hi!
I'm having some problem with our setup. I have a linux server
authenticating from a win2k3 domain controller via winbind and pam. When
i try to log in I receive the following error messages:
Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access
Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' OK
Jul 3 10:26:10 zeusz pam_winbind[20375]: user