-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master: example: valvector: move includes inside displayed code.
- Loading branch information
Showing
9 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/split_join.hpp> | ||
# include <cppad/cppad.hpp> | ||
/* | ||
{xrst_begin valvector_ad_join.cpp} | ||
|
@@ -19,6 +17,8 @@ Example and Test of Joining a valvector | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/split_join.hpp> | ||
# include <cppad/cppad.hpp> | ||
bool ad_join(void) | ||
{ // ok | ||
bool ok = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/split_join.hpp> | ||
# include <cppad/cppad.hpp> | ||
/* | ||
{xrst_begin valvector_ad_split.cpp} | ||
|
@@ -19,6 +17,8 @@ Example and Test of Splitting a valvector | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/split_join.hpp> | ||
# include <cppad/cppad.hpp> | ||
bool ad_split(void) | ||
{ // ok | ||
bool ok = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/sum.hpp> | ||
# include <cppad/cppad.hpp> | ||
/* | ||
{xrst_begin valvector_ad_sum.cpp} | ||
|
@@ -19,6 +17,8 @@ Example and Test of Summing a valvector | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/sum.hpp> | ||
# include <cppad/cppad.hpp> | ||
bool ad_sum(void) | ||
{ // ok | ||
bool ok = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/class.hpp> | ||
/* | ||
{xrst_begin valvector_base_require.cpp} | ||
|
@@ -25,6 +24,7 @@ Source Code | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/class.hpp> | ||
// | ||
// base_require | ||
bool base_require(void) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/class.hpp> | ||
# include <cppad/cppad.hpp> | ||
/* | ||
{xrst_begin valvector_get_started.cpp} | ||
|
@@ -19,6 +17,8 @@ Getting Started Using valvector as a CppAD Base Class | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/class.hpp> | ||
# include <cppad/cppad.hpp> | ||
bool get_started(void) | ||
{ // ok | ||
bool ok = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,6 @@ | |
// SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
// SPDX-FileContributor: 2024 Bradley M. Bell | ||
// --------------------------------------------------------------------------- | ||
# include <cppad/example/valvector/sum.hpp> | ||
# include <cppad/example/valvector/class.hpp> | ||
# include <cppad/cppad.hpp> | ||
/* | ||
{xrst_begin valvector_llsq_obj.cpp} | ||
|
@@ -20,6 +17,9 @@ Using valvector to Represent Linear Least Squares Objective | |
------------------------------------------------------------------------------- | ||
*/ | ||
// BEGIN C++ | ||
# include <cppad/example/valvector/sum.hpp> | ||
# include <cppad/example/valvector/class.hpp> | ||
# include <cppad/cppad.hpp> | ||
bool llsq_obj(void) | ||
{ // ok | ||
bool ok = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters