LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst.gdb.afw.printers.GdbOptionParser.EigenVectorPrinter Class Reference
Inheritance diagram for lsst.gdb.afw.printers.GdbOptionParser.EigenVectorPrinter:

Public Member Functions

def __init__
 
def to_string
 

Public Attributes

 val
 

Detailed Description

Definition at line 164 of file printers.py.

Constructor & Destructor Documentation

def lsst.gdb.afw.printers.GdbOptionParser.EigenVectorPrinter.__init__ (   self,
  val 
)

Member Function Documentation

def lsst.gdb.afw.printers.GdbOptionParser.EigenVectorPrinter.to_string (   self)

Definition at line 170 of file printers.py.

171  def to_string(self):
172  m_storage = self.val["m_storage"]
173 
174  try:
175  n = m_storage["n"]
176  except gdb.error: # only available for dynamic Matrices
177  try:
178  n = m_storage.type.template_argument(1)
179  except RuntimeError:
180  # should get dimens from template, but that's gdb bug #11060
181  size = m_storage["m_data"]["array"].type.sizeof
182  size0 = m_storage["m_data"]["array"].dereference().type.sizeof
183  n = math.sqrt(size/size0)
184 
185  return "{%d}" % (n)
class PrintEigenCommand(gdb.Command):

Member Data Documentation

lsst.gdb.afw.printers.GdbOptionParser.EigenVectorPrinter.val

Definition at line 168 of file printers.py.


The documentation for this class was generated from the following file: