valvector

View page source

valvector: An Example Machine Learning Base Class

This CppAD Base class preforms numerical operations on vectors; e.g., only one CppAD operation represents the element-by-element addition of two vectors. This is similar to the Pytorch Tensors or Jax Numpy Arrays.

scalar_type

The type valvector::scalar_type is the type corresponding to each element of a valvector . We use scalar_type to denote this type.

Getting Started

The file valvector_get_started.cpp is an example that computes derivatives using valvector as the base class.

Other Examples

The file valvector.cpp tests that all of the valvector examples git the expected results.

Operations