Displaying 14 results from an estimated 14 matches for "is_array".
2019 Nov 14
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...next April.
I can't seem to find the previous thread, so would you mind being a
bit more explicit here? Do you mean adding "array" to the implicit
class? Or adding it to the explicit class? Or adding it to inherits?
i.e. which of the following results are you proposing to change?
is_array <- function(x) UseMethod("is_array")
is_array.array <- function(x) TRUE
is_array.default <- function(x) FALSE
x <- matrix()
is_array(x)
#> [1] FALSE
x <- matrix()
inherits(x, "array")
#> [1] FALSE
class(x)
#> [1] "matrix"
It would be nice to m...
2019 Nov 14
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...n TRUE
(instead of FALSE at the moment) and S3 dispatch pick up the foo.array
method when foo(matrix()) is called and there is no foo.matrix method.
> Or adding it to the explicit class? Or adding it to inherits?
> i.e. which of the following results are you proposing to change?
>
> is_array <- function(x) UseMethod("is_array")
> is_array.array <- function(x) TRUE
> is_array.default <- function(x) FALSE
>
> x <- matrix()
> is_array(x)
> #> [1] FALSE
> x <- matrix()
> inherits(x, "array")
> #> [1] FALSE
> class(x)
&...
2013 Jul 11
1
Easy way to debug code
....
<code>
# $server = ''server1.testing.com,server2.testing.com''
$server = [ ''server1.testing.com'',''server2.testing.com'' ]
$fu = $server ? {
'''' => ''server3.testing.com'',
default => is_array($server) ? {
false => $server ? {
* default => split($server, '','')*
},
default => $server[0],
}
}
$bar = is_array($fu) ? {
false => $fu,
true => $fu[0],
}
</code>
Why can''t I just split($server, '...
2008 Jul 02
12
Module interaction and dependencies in Puppet (SNMP in particular)
...module) means I need to
add stuff like:
dlmod cmaX /usr/lib<%= arch %>/libcmaX<%= arch %>.so
<% if rwcommunities.length > 0 %> <%% Only parse if we have ips %>
# Read/write communities
<% rwcommunities.each do |community, ip| %>
<% if ip.is_array %> <%% One community, many IPs %>
<% ip.each do |embip| %>
rwcommunity <%= community %> <%= embip %>
<% end %>
<% else %> <%% One community, one IP %>
rwcommunity <%= comm...
2019 Nov 02
6
head.matrix can return 1000s of columns -- limit to n or add new argument?
Thanks Martin and Peter,
I agree that we can be careful and narrow and still see a nice improvement
in behavior. While Herve's point is valid and I understand his frustration,
I think staying within the matrix vs c(matrix, array) space is the right
scope for this work in terms of fiddling with inheritance.
As another point, I don't know off the top of my head of any other classes
which
2019 Nov 15
5
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...ethod when foo(matrix()) is called and there is no foo.matrix method.
Thank you, Herv?! That's exactly the plan.
>> Or adding it to the explicit class? Or adding it to inherits?
>> i.e. which of the following results are you proposing to change?
>>
>> is_array <- function(x) UseMethod("is_array")
>> is_array.array <- function(x) TRUE
>> is_array.default <- function(x) FALSE
>>
>> x <- matrix()
>> is_array(x)
>> #> [1] FALSE
>> x <- matrix()
>> inh...
2004 Sep 18
2
Asterisk as an outbound call machine?
Hi All...
I have a need to phone a large number of people and collect information
from them. I know Asterisk has a nice IVR system, but can it be used to
initiate a call to people listed in a database or text file?
Don't worry, this is not an annoying marketing thing.
Thanks...
2015 Feb 10
4
[PATCH 1/4] php: fix invalid memory access with OptString
OptString maps to a "s!" argument, which makes zend_parse_parameters not
touch the variables (char* and length) when NULL is passed as parameter.
Hence, set both to NULL/0, and check for non-NULL char* variable before
checking its length.
---
generator/php.ml | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/generator/php.ml b/generator/php.ml
index
2019 Jul 22
3
Fwd: bugpoint can't automatically select a safe interpreter!
...DivergenceAnalysis(llvm::Function&,
llvm::DominatorTree const&, llvm::PostDominatorTree const&,
llvm::LoopInfo const&, llvm::TargetTransformInfo const&)
/home/jayfoad2/git/llvm-project/llvm/lib/Analysis/DivergenceAnalysis.cpp:446:1
#14 0x0000000004c162c5
std::enable_if<!(std::is_array<llvm::GPUDivergenceAnalysis>::value),
std::unique_ptr<llvm::GPUDivergenceAnalysis,
std::default_delete<llvm::GPUDivergenceAnalysis> > >::type
llvm::make_unique<llvm::GPUDivergenceAnalysis, llvm::Function&,
llvm::DominatorTree&, llvm::PostDominatorTree&, llvm::Loo...
2014 Mar 21
0
Wine release 1.7.15
...t SchRpcRegisterTask.
schedsvc: Implement SchRpcRetrieveTask.
taskschd: Implement ITaskService::get_HighestVersion.
schedsvc: Mark service as auto-start once a task is registered.
schedsvc: Replace external trace statements by internal versions.
widl: Move is_ptr() and is_array() to header.h and make them inline.
widl: Unify indentation of comments.
widl: Move is_void(), is_declptr() and is_conformant_array() to header.h and make them inline.
ntdll/tests: Always wait until the operation completes if returned status is STATUS_PENDING.
Eriks Dobelis (1):...
2014 Jun 13
0
Wine release 1.7.20
...lugin.c.
mshtml: Added function object default value getter implementation.
vbscript: Added support for exponential form of numeric literals.
ntdll: Removed no longer used defines.
jscript: Properly handle NULL pvarResult in ParseScriptText.
vbscript: Always initialize is_array value (valgrind).
jscript: Added accessing not existing property on IDispatchEx tests.
Julian R?ger (1):
po: Update German translation.
Marcus Meissner (2):
jsproxy: Avoid potential NULL dereference (Coverity).
msxml3: Removed unused allocation (Coverity).
Michael M?ller...
2013 Aug 06
7
Puppet first run timing out
...defined content as ''{md5}8d3ebca805dc6edb88b6b7a13d404787''
> Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/lstrip.rb]/ensure: defined content as ''{md5}210b103f78622e099f91cc2956b6f741''
> Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/is_array.rb]/ensure: defined content as ''{md5}875ca4356cb0d7a10606fb146b4a3d11''
> Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/min.rb]/ensure: defined content as ''{md5}35f1e50e7f9ff6d5b04e48952d4e13bd''
> Notice: /File[/var/lib/puppet/lib/puppet/parser/f...
2015 May 24
19
[RFC PATCH 00/11] Implement ARB_cull_distance
This patch series adds the needed support for this extension to the various
parts of mesa to finally enable it for nvc0.
Dave Airlie (1):
glsl: lower cull_distance into cull_distance_mesa
Tobias Klausmann (10):
glapi: add GL_ARB_cull_distance
mesa/main: add support for GL_ARB_cull_distance
mesa/prog: Add varyings for arb_cull_distance
mesa/st: add support for GL_ARB_cull_distance
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...= first;
bool parsed_gs = false;
if (t[0] == 'g' && t[1] == 's')
{
t += 2;
parsed_gs = true;
}
if (t[0] == 'n' && (t[1] == 'w' || t[1] == 'a'))
{
bool is_array = t[1] == 'a';
t += 2;
if (t == last)
return first;
bool has_expr_list = false;
bool first_expr = true;
while (*t != '_')
{
const char* t1 = parse_expression(t, last, db);...