Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

how to build pattern for a square matrix of reals?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98379] how to build pattern for a square matrix of reals?
  • From: sagrailo at gmail.com
  • Date: Wed, 8 Apr 2009 05:03:43 -0400 (EDT)

As in subject: how to build a pattern that will specify that given
argument of a function has to be square matrix of reals?  Tried with
following for "square matrix" part:
  f[x_?MatrixQ[#] && Dimensions[#][[1]] == Dimensions[#][[2]]
&] := ...
but it doesn't seem to be working...

Thanks.


  • Prev by Date: ListContourPlot3D
  • Next by Date: Re: Is there a BNF for Mathematica?
  • Previous by thread: Re: ListContourPlot3D
  • Next by thread: Re: how to build pattern for a square matrix of reals?