
Data.Packed.Static.Shapes  Portability  portable  Stability  experimental  Maintainer  Reiner Pope <reiner.pope@gmail.com> 



Description 
Shapebased functionality, common for matrices and vectors


Synopsis 



Documentation 




class ShapedContainer a where  Source 

 Associated Types  type Unwrapped a :: * > *  Source 
 Lesstyped, hmatrix representation

   standard 'unknown' shape. For vectors, Unknown; for matrices, (Unknown,Unknown).


  Methods   Convert to hmatrix representation
   Convert from hmatrix representation
  unsafeReshape :: a s t > a s' t  Source 
 Coerce the static shape. Unsafe; the user
of this function has an obligation to prove that
the object's dynamic shape is the same as that
represented by s'.

  Instances  


atShape :: a s t > s > a s t  Source 

For type hints.
> constant (5::Double) atShape d4
[$vec 5.0, 5.0, 5.0, 5.0 ] :: Vector D4 Double Implementation:
atShape = const.



For type hints.
> constant (5::Double) atShape shapeOf [$vec1]
[$vec 5.0 ] Implementation:
shapeOf _ = undefined 


Changes the static shape to the UnknownShape.
Dynamic representation is unchanged.



unsafeWrap = unsafeReshape . wrapU.


Produced by Haddock version 2.4.2 