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

The FloatType represents a clr float type. More...

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

Public Member Functions

 FloatType ()
 The constructor. More...
 
override object ToClr (PyObject pyObj)
 Converts a PyObject to a float. More...
 
override PyObject ToPython (object clrObj)
 Converts a float 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 FloatType represents a clr float type.

Open-source public code originally shared from:

See also
PyConverter by Wenguang Yang, 2018

Definition at line 463 of file PyConverter.cs.

Constructor & Destructor Documentation

◆ FloatType()

Python.Runtime.FloatType.FloatType ( )

The constructor.

Definition at line 468 of file PyConverter.cs.

Member Function Documentation

◆ ToClr()

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

Converts a PyObject to a float.

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

Implements Python.Runtime.PyClrTypeBase.

Definition at line 478 of file PyConverter.cs.

◆ ToPython()

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

Converts a float to a PyObject.

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

Implements Python.Runtime.PyClrTypeBase.

Definition at line 488 of file PyConverter.cs.


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