\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
valvector
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
Name |
Title |
---|---|
valvector_ctor |
|
valvector_resize |
|
valvector_assign |
|
valvector_size |
|
valvector_sum |
|
valvector_element |
|
valvector_unary_op |
|
valvector_binary_op |
|
valvector_compound_op |
|
valvector_compare_op |
|
valvector_output |
|
valvector_unary_math |
|
valvector_pow |
|
valvector_azmul |
|
valvector_condexp |
|
valvector_base_require |
The valvector Implementation of CppAD Base Type Requirements |
valvector_ad_split |
|
valvector_ad_join |
|
valvector_ad_sum |
|
valvector_get_started.cpp |
|
valvector_llsq_obj.cpp |