NICE
Northeastern Interactive Clustering Engine
Static Public Member Functions | List of all members
Nice::GpuOperations< T > Class Template Reference

#include <gpu_operations.h>

Static Public Member Functions

static Matrix< T > Multiply (const Matrix< T > &a, const T &scalar)
 
static Matrix< T > Multiply (const Matrix< T > &a, const Matrix< T > &b)
 
static Matrix< T > Add (const Matrix< T > &a, const T &scalar)
 
static Matrix< T > Add (const Matrix< T > &a, const Matrix< T > &b)
 
static Matrix< T > Subtract (const Matrix< T > &a, const T &scalar)
 
static Matrix< T > Subtract (const Matrix< T > &a, const Matrix< T > &b)
 
static Matrix< T > Inverse (const Matrix< T > &a)
 
static Vector< T > Norm (const Matrix< T > a, const int &p=2, const int &axis=0)
 
static T Determinant (const Matrix< T > &a)
 
static int Rank (const Matrix< T > &a)
 
static T FrobeniusNorm (const Matrix< T > &a)
 
static T Trace (const Matrix< T > &a)
 
static T DotProduct (const Vector< T > &a, const Vector< T > &b)
 
static Matrix< T > OuterProduct (const Vector< T > &a, const Vector< T > &b)
 

Member Function Documentation

template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Add ( const Matrix< T > &  a,
const T &  scalar 
)
inlinestatic

This function calculates the sum of the input Matrix and scalar

Parameters
aInput Matrix
scalarInput scalar of type T
Returns
This function returns a Matrix of type T
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Add ( const Matrix< T > &  a,
const Matrix< T > &  b 
)
inlinestatic

This function calculates the sum of the input Matricies

Parameters
aInput Matrix 1
bInput Matrix 2
Returns
This function returns a Matrix of type T
template<typename T >
static T Nice::GpuOperations< T >::Determinant ( const Matrix< T > &  a)
inlinestatic
template<typename T >
static T Nice::GpuOperations< T >::DotProduct ( const Vector< T > &  a,
const Vector< T > &  b 
)
inlinestatic
template<typename T >
static T Nice::GpuOperations< T >::FrobeniusNorm ( const Matrix< T > &  a)
inlinestatic
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Inverse ( const Matrix< T > &  a)
inlinestatic

Return the inversion of a matrix Computation all done in GPU

Parameters
aAn arbitrary matrix
Returns
Inversed matrix
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Multiply ( const Matrix< T > &  a,
const T &  scalar 
)
inlinestatic
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Multiply ( const Matrix< T > &  a,
const Matrix< T > &  b 
)
inlinestatic
template<typename T >
static Vector<T> Nice::GpuOperations< T >::Norm ( const Matrix< T >  a,
const int &  p = 2,
const int &  axis = 0 
)
inlinestatic
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::OuterProduct ( const Vector< T > &  a,
const Vector< T > &  b 
)
inlinestatic
template<typename T >
static int Nice::GpuOperations< T >::Rank ( const Matrix< T > &  a)
inlinestatic

Return the rank of a matrix Computation all done in GPU

Parameters
aAn arbitrary matrix
Returns
Rank of the input matrix
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Subtract ( const Matrix< T > &  a,
const T &  scalar 
)
static
template<typename T >
static Matrix<T> Nice::GpuOperations< T >::Subtract ( const Matrix< T > &  a,
const Matrix< T > &  b 
)
inlinestatic
template<typename T >
static T Nice::GpuOperations< T >::Trace ( const Matrix< T > &  a)
inlinestatic

Return the trace of a matrix Computation all done in GPU

Parameters
aAn arbitrary matrix
Returns
Trace of the input matrix

The documentation for this class was generated from the following file: