59 template<
typename dtype>
89 for (
int16 i = 2; i < inPower; ++i)
91 returnArray =
dot(returnArray, inArrayDouble);
99 for (
int16 i = 2; i < inPower; ++i)
101 returnArray =
dot(returnArray, inverse);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4591
A Shape Class for NdArrays.
Definition Core/shape.hpp:41
uint32 rows
Definition Core/shape.hpp:44
uint32 cols
Definition Core/shape.hpp:45
Definition cholesky.hpp:41
NdArray< double > inv(const NdArray< dtype > &inArray)
Definition inv.hpp:54
NdArray< double > matrix_power(const NdArray< dtype > &inArray, int16 inPower)
Definition matrix_power.hpp:60
std::int16_t int16
Definition Types.hpp:37
NdArray< dtype > dot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition dot.hpp:48
NdArray< dtypeOut > astype(const NdArray< dtype > inArray)
Definition astype.hpp:45
NdArray< dtype > identity(uint32 inSquareSize)
Definition identity.hpp:47