LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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: