Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9760

how to check for NumericQ arbitrary data structure

From Ted Sariyski <tsariysk@craft-tech.com>
Newsgroups comp.soft-sys.math.mathematica
Subject how to check for NumericQ arbitrary data structure
Date 2012-04-24 09:34 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jn5s3f$nti$1@smc.vnet.net> (permalink)
References <201204201144.HAA21808@smc.vnet.net> <201204210431.AAA29236@smc.vnet.net>

Show all headers | View raw


Hi,
I have a data structure e.g. {a,{b,c},{d,{e,f},{g}}}, which I want to 
check for NumericQ. For vectors and matrices I can use
VectorQ[x,NumericQ] or MatrixQ[x,NumericQ]. Is there a way to check an 
arbitrary data structure that all elements are NumericQ or I have to 
construct a function for each data structure?
Thanks in advance,
--Ted

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

how to check for NumericQ arbitrary data structure Ted Sariyski <tsariysk@craft-tech.com> - 2012-04-24 09:34 +0000

csiph-web