Skip to content

Commit aa3d326

Browse files
committed
Add license header
1 parent 36c96ab commit aa3d326

10 files changed

+60
-0
lines changed

src/Nonlinear/ReverseAD/Coloring/Coloring.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
module Coloring
28

39
import DataStructures

src/Nonlinear/ReverseAD/ReverseAD.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
module ReverseAD
28

39
import ForwardDiff

src/Nonlinear/ReverseAD/forward_over_reverse.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
const TAG = :ReverseAD
28

39
"""

src/Nonlinear/ReverseAD/graph_tools.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
"""
28
_replace_moi_variables(
39
nodes::Vector{Nonlinear.Node},

src/Nonlinear/ReverseAD/mathoptinterface_api.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
function MOI.features_available(d::NLPEvaluator)
28
# Check if we have any user-defined multivariate operators, in which case we
39
# need to disable hessians. The result of features_available depends on this.

src/Nonlinear/ReverseAD/precompile.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
function _precompile_()
28
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
39
Base.precompile(

src/Nonlinear/ReverseAD/reverse_mode.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
"""
28
_reverse_mode(d::NLPEvaluator, x)
39

src/Nonlinear/ReverseAD/types.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
mutable struct _SubexpressionStorage
28
nodes::Vector{Nonlinear.Node}
39
adj::SparseArrays.SparseMatrixCSC{Bool,Int}

src/Nonlinear/ReverseAD/utils.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
"""
28
_UnsafeVectorView(offset, len, ptr)
39

test/Nonlinear/ReverseAD.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2017: Miles Lubin and contributors
2+
# Copyright (c) 2017: Google Inc.
3+
#
4+
# Use of this source code is governed by an MIT-style license that can be found
5+
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
6+
17
module TestReverseAD
28

39
using Test

0 commit comments

Comments
 (0)