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

The valvector Constructors

valvector_resize

Resize a valvector

valvector_assign

The valvector Assignment Operator

valvector_size

Size of a valvector

valvector_sum

Sum elements of a valvector

valvector_element

Accessing Elements of a valvector

valvector_unary_op

The valvector Numeric Unary Operators

valvector_binary_op

The valvector Numeric Binary Operators

valvector_compound_op

The valvector Numeric Compound Assignment Operators

valvector_compare_op

The valvector Compare Operators

valvector_output

Outputting a valvector

valvector_unary_math

The valvector Unary Math Functions

valvector_pow

The valvector Pow Function

valvector_azmul

Absolute Zero Multiply of valvectors

valvector_condexp

The valvector Conditional Expressions

valvector_base_require

The valvector Implementation of CppAD Base Type Requirements

valvector_ad_split

Split A AD valvector

valvector_ad_join

Join a Vector of AD valvectors

valvector_ad_sum

Sum The Elements of and AD valvector

valvector_get_started.cpp

Getting Started Using valvector as a CppAD Base Class

valvector_llsq_obj.cpp

Using valvector to Represent Linear Least Squares Objective