Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update changelog and copyright headers #65

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2022 Simons Foundation
# Copyright (c) 2018-2024 Simons Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/_impl_basic_array_view_common.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Olivier Parcollet, Nils Wentzell
// Authors: Thomas Hahn, Miguel Morales, Olivier Parcollet, Nils Wentzell

// ------------------------------- data access --------------------------------------------

Expand Down
30 changes: 15 additions & 15 deletions c++/nda/basic_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ namespace nda {
explicit basic_array(basic_array<ValueType, Rank, LayoutPolicy, AlgebraOther, ContainerPolicyOther> x) noexcept
: lay(x.indexmap()), sto(std::move(x.storage())) {}

/**
* Construct with a shape [i0, is ...].
/**
* Construct with a shape [i0, is ...].
* Int are integers (convertible to long), and there must be exactly R arguments.
*
*
* @param i0, is ... are the extents (lengths) in each dimension
*/
template <std::integral... Int>
Expand All @@ -135,9 +135,9 @@ namespace nda {
assign_from_scalar(val);
}

/**
/**
* Construct with the given shape and default construct elements
*
*
* @param shape Shape of the array (lengths in each dimension)
*/
template <std::integral Int = long>
Expand All @@ -153,7 +153,7 @@ namespace nda {
/// Construct from the layout and existing memory
explicit basic_array(layout_t const &layout, storage_t &&storage) noexcept : lay{layout}, sto{std::move(storage)} {}

/**
/**
* Constructs from a.shape() and then assign from the evaluation of a
*/
template <ArrayOfRank<Rank> A>
Expand All @@ -174,9 +174,9 @@ namespace nda {
}
}

/**
* Initialize with any type modelling ArrayInitializer, typically a
* delayed operation (mpi operation, matmul) that requires
/**
* Initialize with any type modelling ArrayInitializer, typically a
* delayed operation (mpi operation, matmul) that requires
* the knowledge of the data pointer to execute
*
*/
Expand Down Expand Up @@ -348,7 +348,7 @@ namespace nda {
return *this;
}

/**
/**
* Resizes the array (if necessary).
* Invalidates all references to the storage.
*
Expand All @@ -362,7 +362,7 @@ namespace nda {
return *this;
}

/**
/**
* Resizes the array (if necessary).
* Invalidates all references to the storage.
*
Expand All @@ -378,8 +378,8 @@ namespace nda {
return *this;
}

/**
*
/**
*
*/
template <ArrayInitializer<basic_array> Initializer>
basic_array &operator=(Initializer const &initializer) noexcept {
Expand All @@ -389,7 +389,7 @@ namespace nda {
}

//------------------ resize -------------------------
/**
/**
* Resizes the array.
* Invalidates all references to the storage.
* Content is undefined, makes no copy of previous data.
Expand All @@ -402,7 +402,7 @@ namespace nda {
resize(std::array<long, Rank>{long(extent)...});
}

/**
/**
* Resizes the array.
* Invalidates all references to the storage.
* Content is undefined, makes no copy of previous data.
Expand Down
20 changes: 10 additions & 10 deletions c++/nda/basic_array_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ namespace nda {
explicit(requires_runtime_check<typename std::decay_t<A>::layout_policy_t>) basic_array_view(A &&a) noexcept
: lay(a.indexmap()), sto(a.storage()) {}

/**
/**
* [Advanced] From a pointer to **contiguous data**, and a shape.
* NB : no control on the dimensions given.
* NB : no control on the dimensions given.
*
* @param p Pointer to the data
* @param shape Shape of the view (contiguous)
*/
basic_array_view(std::array<long, Rank> const &shape, ValueType *p) noexcept : basic_array_view(layout_t{shape}, p) {}

/**
* [Advanced] From a pointer to data, and an idx_map
* NB : no control obvious on the dimensions given.
/**
* [Advanced] From a pointer to data, and an idx_map
* NB : no control obvious on the dimensions given.
*
* @param p Pointer to the data
* @param p Pointer to the data
* @param idxm Index Map (view can be non contiguous). If the offset is non zero, the view starts at p + idxm.offset()
*/
basic_array_view(layout_t const &idxm, ValueType *p) noexcept : lay(idxm), sto{p} {}
Expand Down Expand Up @@ -184,11 +184,11 @@ namespace nda {

/**
* Copies the content of rhs into the view.
* Pseudo code :
* Pseudo code :
* for all i,j,k,l,... : this[i,j,k,l,...] = rhs(i,j,k,l,...)
*
* The dimension of RHS must be large enough or behaviour is undefined.
*
*
* If NDA_BOUNDCHECK is defined, the bounds are checked.
*
* @tparam RHS A scalar or an object modeling the concept NDArray
Expand All @@ -213,8 +213,8 @@ namespace nda {
return *this;
}

/**
*
/**
*
*/
template <ArrayInitializer<basic_array_view> Initializer>
basic_array_view &operator=(Initializer const &initializer) noexcept {
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/basic_functions.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Olivier Parcollet, Nils Wentzell
// Authors: Dominik Kiese, Miguel Morales, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion c++/nda/blas/interface/cublas_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022-2023 Simons Foundation
// Copyright (c) 2022-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/blas/interface/cublas_interface.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 Simons Foundation
// Copyright (c) 2022-2023 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales
// Authors: Miguel Morales, Nils Wentzell

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions c++/nda/blas/interface/cxx_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2022 Simons Foundation
// Copyright (c) 2019-2023 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Olivier Parcollet, Nils Wentzell
// Authors: Thomas Hahn, Henri Menke, Miguel Morales, Olivier Parcollet, Nils Wentzell

#include <nda/nda.hpp>
#include <nda/exceptions.hpp>
Expand Down
2 changes: 1 addition & 1 deletion c++/nda/blas/interface/cxx_interface.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2022 Simons Foundation
// Copyright (c) 2019-2023 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c++/nda/clef/clef.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c++/nda/clef/io.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2021 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c++/nda/gtest_tools.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2021 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/h5.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell
// Authors: Thomas Hahn, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions c++/nda/lapack.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell
// Authors: Jason Kaye, Olivier Parcollet, Nils Wentzell

#pragma once
#include <complex>
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/lapack/gelss.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2022 Simons Foundation
// Copyright (c) 2020-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell
// Authors: Thomas Hahn, Jason Kaye, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions c++/nda/lapack/gelss_worker.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 Simons Foundation
// Copyright (c) 2020-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell
// Authors: Jason Kaye, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
6 changes: 3 additions & 3 deletions c++/nda/lapack/geqp3.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2022 Simons Foundation
// Copyright (c) 2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell, Jason Kaye
// Authors: Jason Kaye, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down Expand Up @@ -45,7 +45,7 @@ namespace nda::lapack {
* The scalar factors of the elementary reflectors.
*
* [return] info is INTEGER
* = 0: successful exit.
* = 0: successful exit.
* < 0: if INFO = -i, the i-th argument had an illegal value.
*
* @note If one wishes to carry out the column pivoted QR algorithm, the array
Expand Down
2 changes: 1 addition & 1 deletion c++/nda/lapack/gesvd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Olivier Parcollet, Nils Wentzell
// Authors: Thomas Hahn, Miguel Morales, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion c++/nda/lapack/getri.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Nils Wentzell
// Authors: Thomas Hahn, Miguel Morales, Nils Wentzell

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion c++/nda/lapack/interface/cusolver_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales
// Authors: Miguel Morales, Nils Wentzell

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions c++/nda/lapack/interface/cxx_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2023 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Olivier Parcollet, Nils Wentzell
// Authors: Jason Kaye, Olivier Parcollet, Nils Wentzell

#include <nda/nda.hpp>
#include <nda/macros.hpp>
Expand Down
4 changes: 2 additions & 2 deletions c++/nda/lapack/interface/cxx_interface.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2022 Simons Foundation
// Copyright (c) 2019-2024 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: Miguel Morales, Olivier Parcollet, Nils Wentzell
// Authors: Jason Kaye, Miguel Morales, Olivier Parcollet, Nils Wentzell

#pragma once

Expand Down
Loading
Loading