MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
Python.Runtime.DoubleType Class Reference

The DoubleType represents a clr double type. More...

Inheritance diagram for Python.Runtime.DoubleType:
Python.Runtime.PyClrTypeBase

Public Member Functions

 DoubleType ()
 The constructor. More...
 
override object ToClr (PyObject pyObj)
 Converts a PyObject to a float. More...
 
override PyObject ToPython (object clrObj)
 Converts a double to a PyObject. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Python.Runtime.PyClrTypeBase
 PyClrTypeBase (string pyType, Type clrType)
 The constructor. More...
 
 PyClrTypeBase (PyObject pyType, Type clrType)
 The constructor. More...
 
- Properties inherited from Python.Runtime.PyClrTypeBase
PyObject PythonType [get]
 Returns the Python type. More...
 
Type ClrType [get]
 Returns the clr type. More...
 

Detailed Description

The DoubleType represents a clr double type.

Open-source public code originally shared from:

See also
PyConverter by Wenguang Yang, 2018

Definition at line 501 of file PyConverter.cs.

Constructor & Destructor Documentation

◆ DoubleType()

Python.Runtime.DoubleType.DoubleType ( )

The constructor.

Definition at line 506 of file PyConverter.cs.

Member Function Documentation

◆ ToClr()

override object Python.Runtime.DoubleType.ToClr ( PyObject  pyObj)
virtual

Converts a PyObject to a float.

Parameters
pyObjSpecifies the Python object to convert.
Returns
A clr double is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 516 of file PyConverter.cs.

◆ ToPython()

override PyObject Python.Runtime.DoubleType.ToPython ( object  clrObj)
virtual

Converts a double to a PyObject.

Parameters
clrObjSpecifies the double to convert.
Returns
A PyObject representing the double is returned.

Implements Python.Runtime.PyClrTypeBase.

Definition at line 526 of file PyConverter.cs.


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