Skip to content

Commit

Permalink
move files from utils/ to utility/
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed Oct 29, 2024
1 parent 6b5e0d0 commit 4dd8ed9
Show file tree
Hide file tree
Showing 339 changed files with 439 additions and 439 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "nmtools/array/random_engine.hpp"

#include "nmtools/array/index/ndenumerate.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"
#include "nmtools/platform/jni.hpp"

namespace nm = nmtools;
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino/manip/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "nmtools/array/view/mutable_flatten.hpp"
#include "nmtools/array/array/flatten.hpp"

#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"
#include "nmtools/utils/apply_to_string.hpp"

#include <Arduino.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino/ufuncs/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "nmtools/array/array/sum.hpp"
#include "nmtools/array/array/matmul.hpp"
#include "nmtools/array/array/mean.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <Arduino.h>

Expand Down
2 changes: 1 addition & 1 deletion examples/mbed/manip/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "nmtools/array/view/mutable_flatten.hpp"
#include "nmtools/array/array/flatten.hpp"

#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

namespace nm = nmtools;
namespace view = nm::view;
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed/ufuncs/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "nmtools/array/ndarray/fixed.hpp"

#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

namespace nm = nmtools;
namespace na = nm::array;
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/broadcast_to.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/broadcast_to.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/expand_dims.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/expand_dims.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/flatten.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/flatten.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/repeat.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/repeat.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/reshape.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/reshape.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/squeeze.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/squeeze.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/tile.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "nmtools/array/view/tile.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"

#include <iostream>
#include <array>
Expand Down
2 changes: 1 addition & 1 deletion examples/nmtools/array/src/transpose.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "nmtools/array/view/transpose.hpp"
#include "nmtools/array/utility/cast.hpp"
#include "nmtools/array/ndarray.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"
#include "nmtools/array/cast.hpp"

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/eval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "nmtools/array/ndarray.hpp"

#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"
#include "nmtools/utility/at.hpp"
#include "nmtools/utility/apply_resize.hpp"
#include "nmtools/utility/shape.hpp"
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/eval/sycl/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/eval/kernel_helper.hpp"
#include "nmtools/exception.hpp"
#include "nmtools/utils/to_string.hpp"
#include "nmtools/utility/to_string.hpp"
#include "nmtools/utility/as_static.hpp"
#include "nmtools/utl/vector.hpp"

Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/functional/compute_graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ namespace nmtools::functional
}; // get_compute_graph_t
} // namespace nmtools::functional

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utils/to_string/common_types.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/utility/to_string/common_types.hpp"

#if NMTOOLS_HAS_STRING

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/functional/expand.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_FUNCTIONAL_EXPAND_HPP
#define NMTOOLS_ARRAY_FUNCTIONAL_EXPAND_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/view/expand.hpp"

Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/functional/functor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "nmtools/utility/ct_map.hpp"
#include "nmtools/utility/ct_digraph.hpp"
#include "nmtools/utility/tuple_slice.hpp"
#include "nmtools/utils/isequal/isequal.hpp"
#include "nmtools/utils/isclose/isclose.hpp"
#include "nmtools/utility/isequal/isequal.hpp"
#include "nmtools/utility/isclose/isclose.hpp"
#include "nmtools/utility/fwd.hpp"
#include "nmtools/utility/unwrap.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/functional/indexing.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_FUNCTIONAL_INDEXING_HPP
#define NMTOOLS_ARRAY_FUNCTIONAL_INDEXING_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/view/indexing.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/functional/ufunc/accumulate.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_ACCUMULATE_HPP
#define NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_ACCUMULATE_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/view/ufunc.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/functional/ufunc/outer.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_OUTER_HPP
#define NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_OUTER_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/view/ufunc.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/functional/ufunc/reduce.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_REDUCE_HPP
#define NMTOOLS_ARRAY_FUNCTIONAL_UFUNC_REDUCE_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/array/view/ufunc.hpp"

Expand Down
6 changes: 3 additions & 3 deletions include/nmtools/array/functional/ufunc/ufunc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#include "nmtools/array/view/ufunc/ufunc.hpp"
#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/array/functional/functor.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utils/to_string/common_types.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/utility/to_string/common_types.hpp"
#include "nmtools/array/functional/indexing.hpp"

#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"

namespace nmtools::functional::fun
{
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/index/contains.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "nmtools/meta.hpp"
#include "nmtools/utility/shape.hpp"
#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"

namespace nmtools::index
{
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/index/expand_dims.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "nmtools/meta.hpp"
#include "nmtools/utility/shape.hpp"
#include "nmtools/utility/at.hpp"
#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"
#include "nmtools/array/ndarray/hybrid.hpp"
#include "nmtools/array/index/contains.hpp"
#include "nmtools/array/index/normalize_axis.hpp"
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/ndarray/dynamic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ namespace nmtools::meta
} // namespace nmtools::meta

#include "nmtools/utility/shape.hpp"
#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"

namespace nmtools::array
{
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/ndarray/fixed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ namespace nmtools::meta

#include "nmtools/array/view/flatten.hpp" // view::flatten
#include "nmtools/array/view/mutable_flatten.hpp" // view::mutable_flatten
#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"
#include "nmtools/utility/shape.hpp"

namespace nmtools::array
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/ndarray/hybrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ namespace nmtools::meta
} // namespace nmtools::meta

#include "nmtools/utility/shape.hpp"
#include "nmtools/utils/isequal.hpp"
#include "nmtools/utility/isequal.hpp"

namespace nmtools::array
{
Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/celu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_CELU_HPP

#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/math.hpp"

namespace nmtools::view::fun
Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/elu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_ELU_HPP

#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/math.hpp"

namespace nmtools::view::fun
Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/hardshrink.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATION_HARDSHRINK_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATION_HARDSHRINK_HPP

#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/hardswish.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_HARDSWISH_HPP

#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"

namespace nmtools::view::fun
{
Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/hardtanh.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_HARDTANH_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_HARDTANH_HPP

#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/leaky_relu.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_LEAKY_RELU_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_LEAKY_RELU_HPP

#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/log_sigmoid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_LOG_SIGMOID_HPP

#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/math.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/mish.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_MISH_HPP

#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/activations/softplus.hpp"
#include "nmtools/math.hpp"

Expand Down
4 changes: 2 additions & 2 deletions include/nmtools/array/view/activations/prelu.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_PRELU_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_PRELU_HPP

#include "nmtools/utils/isclose.hpp"
#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/isclose.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/relu.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_RELU_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_RELU_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/relu6.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_RELU6_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_RELU6_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"

namespace nmtools::view::fun
Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/selu.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SELU_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SELU_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/math.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/sigmoid.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SIGMOID_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SIGMOID_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/math.hpp"

Expand Down
2 changes: 1 addition & 1 deletion include/nmtools/array/view/activations/silu.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SILU_HPP
#define NMTOOLS_ARRAY_VIEW_ACTIVATIONS_SILU_HPP

#include "nmtools/utils/to_string/to_string.hpp"
#include "nmtools/utility/to_string/to_string.hpp"
#include "nmtools/array/view/ufunc.hpp"
#include "nmtools/array/view/activations/sigmoid.hpp"

Expand Down
Loading

0 comments on commit 4dd8ed9

Please sign in to comment.