[Date Index]
[Thread Index]
[Author Index]
Re: how to build pattern for a square matrix of reals?
*To*: mathgroup at smc.vnet.net
*Subject*: [mg98418] Re: how to build pattern for a square matrix of reals?
*From*: sagrailo at gmail.com
*Date*: Thu, 9 Apr 2009 05:55:54 -0400 (EDT)
*References*: <grhp95$mj7$1@smc.vnet.net>
Sorry, I still have some related issues: if I have say two vectors
(lists) as function arguments, how to build pattern that will verify
that the length of the second vector is equal to the size of the first
vector? Also, how to check that specific element of some vector have
specific value? I tried something like:
Foo[v1:{_Real..}/;Length[Dimensions[v1]]==1&&v1[[1]]==0,v2:
{_Real..}/;Length[Dimensions[v2]]==1&&Dimensions[v2][[1]]==Dimensions
[v1][[1]]]:="OK"
but it doesn't work...
Thanks.
Prev by Date:
**Re: how to build pattern for a square matrix of reals?**
Next by Date:
**Re: how to build pattern for a square matrix of reals?**
Previous by thread:
**Re: how to build pattern for a square matrix of reals?**
Next by thread:
**Re: how to build pattern for a square matrix of reals?**
| |