Namespaces | Functions
Submatrix.h File Reference

Header file for the implementation of the Submatrix view. More...

#include <blaze/math/Aliases.h>
#include <blaze/math/AlignmentFlag.h>
#include <blaze/math/constraints/MutableDataAccess.h>
#include <blaze/math/constraints/RequiresEvaluation.h>
#include <blaze/math/expressions/DeclExpr.h>
#include <blaze/math/expressions/MatEvalExpr.h>
#include <blaze/math/expressions/MatMapExpr.h>
#include <blaze/math/expressions/MatMatAddExpr.h>
#include <blaze/math/expressions/MatMatMapExpr.h>
#include <blaze/math/expressions/MatMatMultExpr.h>
#include <blaze/math/expressions/MatMatSubExpr.h>
#include <blaze/math/expressions/Matrix.h>
#include <blaze/math/expressions/MatScalarDivExpr.h>
#include <blaze/math/expressions/MatScalarMultExpr.h>
#include <blaze/math/expressions/MatSerialExpr.h>
#include <blaze/math/expressions/MatTransExpr.h>
#include <blaze/math/expressions/MatVecMultExpr.h>
#include <blaze/math/expressions/SchurExpr.h>
#include <blaze/math/expressions/TVecMatMultExpr.h>
#include <blaze/math/expressions/VecTVecMultExpr.h>
#include <blaze/math/InversionFlag.h>
#include <blaze/math/shims/IsDefault.h>
#include <blaze/math/shims/Serial.h>
#include <blaze/math/traits/AddTrait.h>
#include <blaze/math/traits/ColumnTrait.h>
#include <blaze/math/traits/DivTrait.h>
#include <blaze/math/traits/MultTrait.h>
#include <blaze/math/traits/RowTrait.h>
#include <blaze/math/traits/SubmatrixTrait.h>
#include <blaze/math/traits/SubTrait.h>
#include <blaze/math/typetraits/HasConstDataAccess.h>
#include <blaze/math/typetraits/HasMutableDataAccess.h>
#include <blaze/math/typetraits/IsAligned.h>
#include <blaze/math/typetraits/IsLower.h>
#include <blaze/math/typetraits/IsRestricted.h>
#include <blaze/math/typetraits/IsStrictlyLower.h>
#include <blaze/math/typetraits/IsStrictlyUpper.h>
#include <blaze/math/typetraits/IsUpper.h>
#include <blaze/math/views/submatrix/BaseTemplate.h>
#include <blaze/math/views/submatrix/Dense.h>
#include <blaze/math/views/submatrix/Sparse.h>
#include <blaze/math/views/Subvector.h>
#include <blaze/util/algorithms/Max.h>
#include <blaze/util/algorithms/Min.h>
#include <blaze/util/DisableIf.h>
#include <blaze/util/FunctionTrace.h>
#include <blaze/util/IntegralConstant.h>
#include <blaze/util/TrueType.h>
#include <blaze/util/Types.h>
#include <blaze/util/typetraits/RemoveReference.h>

Go to the source code of this file.

Namespaces

 blaze
 Namespace of the Blaze C++ math library.
 

Functions

template<typename MT , bool SO>
decltype(auto) blaze::submatrix (Matrix< MT, SO > &matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given matrix. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::submatrix (const Matrix< MT, SO > &matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given constant matrix. More...
 
template<typename MT , bool SO>
decltype(auto) blaze::submatrix (Matrix< MT, SO > &&matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given temporary matrix. More...
 
template<bool AF, typename MT , bool SO>
Submatrix< MT, AF > blaze::submatrix (Matrix< MT, SO > &matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given matrix. More...
 
template<bool AF, typename MT , bool SO>
const Submatrix< const MT, AF > blaze::submatrix (const Matrix< MT, SO > &matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given constant matrix. More...
 
template<bool AF, typename MT , bool SO>
Submatrix< MT, AF > blaze::submatrix (Matrix< MT, SO > &&matrix, size_t row, size_t column, size_t m, size_t n)
 Creating a view on a specific submatrix of the given temporary matrix. More...
 
Submatrix operators
template<typename MT , bool AF, bool SO, bool DF>
void blaze::reset (Submatrix< MT, AF, SO, DF > &sm)
 Resetting the given submatrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
void blaze::reset (Submatrix< MT, AF, SO, DF > &&sm)
 Resetting the given temporary submatrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
void blaze::reset (Submatrix< MT, AF, SO, DF > &sm, size_t i)
 Reset the specified row/column of the given submatrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
void blaze::clear (Submatrix< MT, AF, SO, DF > &sm)
 Clearing the given matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
void blaze::clear (Submatrix< MT, AF, SO, DF > &&sm)
 Clearing the given temporary matrix. More...
 
template<bool RF, typename MT , bool AF, bool SO, bool DF>
bool blaze::isDefault (const Submatrix< MT, AF, SO, DF > &sm)
 Returns whether the given submatrix is in default state. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isIntact (const Submatrix< MT, AF, SO, DF > &sm) noexcept
 Returns whether the invariants of the given submatrix are intact. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isSymmetric (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is symmetric. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isHermitian (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is Hermitian. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isLower (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is a lower triangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isUniLower (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is a lower unitriangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isStrictlyLower (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is a strictly lower triangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isUpper (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is an upper triangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isUniUpper (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is an upper unitriangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isStrictlyUpper (const Submatrix< MT, AF, SO, DF > &sm)
 Checks if the given submatrix is a strictly upper triangular matrix. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isSame (const Submatrix< MT, AF, SO, DF > &a, const Matrix< MT, SO > &b) noexcept
 Returns whether the given matrix and submatrix represent the same observable state. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isSame (const Matrix< MT, SO > &a, const Submatrix< MT, AF, SO, DF > &b) noexcept
 Returns whether the given matrix and submatrix represent the same observable state. More...
 
template<typename MT , bool AF, bool SO, bool DF>
bool blaze::isSame (const Submatrix< MT, AF, SO, DF > &a, const Submatrix< MT, AF, SO, DF > &b) noexcept
 Returns whether the two given submatrices represent the same observable state. More...
 

Detailed Description

Header file for the implementation of the Submatrix view.

Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved

This file is part of the Blaze library. You can redistribute it and/or modify it under the terms of the New (Revised) BSD License. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the names of the Blaze development group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.