.. _ogn_tutorial_simple_abi_compute_vectorized_node:

Tutorial 29 - Node with simple ABI computeVectorized
====================================================

This tutorial demonstrates how to compose nodes that implements a very simple computeVectorized function using directly ABIs.
It shows how to access the data, using the different available methods.

OgnTutorialVectorizedABIPassThrough.cpp
---------------------------------------
The *cpp* file contains the implementation of the node. It takes a floating point input and just copy it to its output,
demonstrating how to handle a vectorized compute. It shows what would be the implementation for a regular `compute` function,
and the different way it could implement a `computeVectorized` function.
- method #1: by indexing attribute retrieval ABI function directly in a loop  
- method #2: by mutating the attribute data handle in a loop  
- method #3: by retrieving the raw data, and working directly with it  

.. literalinclude:: ../../../../../source/extensions/omni.graph.tutorials/tutorials/tutorial29/OgnTutorialVectorizedABIPassthrough.cpp
    :linenos:
    :language: c++
