Scythe-1.0.3
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
scythe::Matrix< T_type, ORDER, STYLE >::Matrix ( T_type  element) [inline]

Parameterized type constructor.

Creates a 1x1 matrix (scalar).

Parameters:
elementThe scalar value of the constructed Matrix.
See also:
Matrix()
Matrix(uint, uint, bool, T_type)
Matrix(uint, uint, T_iterator)
Matrix(const std::string&)
Matrix(const Matrix&)
Matrix(const Matrix<T_type, O, S> &)
Matrix(const Matrix<S_type, O, S> &)
Matrix(const Matrix<T_type, O, S>&, uint, uint, uint, uint)
Exceptions:
scythe_alloc_error(Level 1)

Example:

#include <scythestat/matrix.h>
using namespace scythe;

int main ()
{
  // create a scalar equal to 4.5
  Matrix<> A(4.5); 

  // Create an integer scalar matrix
  Matrix<int> B(10); 

  // Create a matrix of strings, containing only one string
  Matrix<const char*> C("some words");

  return 0;
}