All Projects → STEllAR-GROUP → blaze_tensor

STEllAR-GROUP / blaze_tensor

Licence: other
3D Tensors for Blaze (https://bitbucket.org/blaze-lib/blaze)

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to blaze tensor

Pseudospectra.jl
Julia package for matrix pseudospectra and related quantities
Stars: ✭ 21 (-27.59%)
Mutual labels:  linear-algebra
Julia-data-science
Data science and numerical computing with Julia
Stars: ✭ 54 (+86.21%)
Mutual labels:  linear-algebra
Introduction-to-Python-Numerical-Analysis-for-Engineers-and-Scientist
Introduction to Python: Numerical Analysis for Engineers and Scientist. In 2017, Python became the world's most popular programming language. This course covers the basic syntax, linear algebra, plotting, and more to prepare students for solving numerical problems with Python.
Stars: ✭ 110 (+279.31%)
Mutual labels:  linear-algebra
shapesafe
SHAPE/S∀F∃: static prover/type-checker for N-D array programming in Scala, a use case of intuitionistic type theory
Stars: ✭ 17 (-41.38%)
Mutual labels:  linear-algebra
PDMats.jl
Uniform Interface for positive definite matrices of various structures
Stars: ✭ 97 (+234.48%)
Mutual labels:  linear-algebra
bandicoot-code
Bandicoot: GPU accelerator add-on for the Armadillo C++ linear algebra library
Stars: ✭ 21 (-27.59%)
Mutual labels:  linear-algebra
pressio
Model reduction for linear and nonlinear dynamical systems: core C++ library
Stars: ✭ 35 (+20.69%)
Mutual labels:  linear-algebra
Tensor
A library and extension that provides objects for scientific computing in PHP.
Stars: ✭ 146 (+403.45%)
Mutual labels:  linear-algebra
Mathter
A flexible and fast matrix, transform and geometry library.
Stars: ✭ 105 (+262.07%)
Mutual labels:  linear-algebra
lubeck
High level linear algebra library for Dlang
Stars: ✭ 57 (+96.55%)
Mutual labels:  linear-algebra
Mathematics for Machine Learning
Notes and step-by-step exercises resolution to aid students learning the base math for machine learning. Content summed up from the the course from the Imperial London College in Coursera.
Stars: ✭ 44 (+51.72%)
Mutual labels:  linear-algebra
Linear-Algebra-and-Its-Applications-notes
《线性代数及其应用》笔记
Stars: ✭ 196 (+575.86%)
Mutual labels:  linear-algebra
Mathematics for Machine Learning
Learn mathematics behind machine learning and explore different mathematics in machine learning.
Stars: ✭ 28 (-3.45%)
Mutual labels:  linear-algebra
zlm
Zig linear mathemathics
Stars: ✭ 67 (+131.03%)
Mutual labels:  linear-algebra
mfi
Modern Fortran Interfaces to BLAS and LAPACK
Stars: ✭ 31 (+6.9%)
Mutual labels:  linear-algebra
MLweb
Machine learning and scientific computing (linear algebra, statistics, optimization) javascript libraries, with an online lab.
Stars: ✭ 85 (+193.1%)
Mutual labels:  linear-algebra
LinAlg
实现一个线性代数库,为Python写扩展。《程序猿的数学3 线性代数》读后笔记
Stars: ✭ 17 (-41.38%)
Mutual labels:  linear-algebra
vg
Vector-geometry toolbelt for 3D points and vectors
Stars: ✭ 106 (+265.52%)
Mutual labels:  linear-algebra
numphp
PHP tools for matrix computation
Stars: ✭ 25 (-13.79%)
Mutual labels:  linear-algebra
qdldl
A free LDL factorisation routine
Stars: ✭ 54 (+86.21%)
Mutual labels:  linear-algebra

3D Tensors for Blaze

This project implements 3D datastructures (tensors) that integrate well with the Blaze library.

All the highlights listed for Blaze apply to BlazeTensor as well:

  • high performance through the integration of BLAS libraries and manually tuned HPC math kernels
  • vectorization by SSE, SSE2, SSE3, SSSE3, SSE4, AVX, AVX2, AVX-512, FMA, and SVML
  • parallel execution by OpenMP, HPX, C++11 threads and Boost threads
  • the intuitive and easy to use API of a domain specific language
  • unified arithmetic with dense 3D tensors
  • thoroughly tested 3D tensor arithmetic
  • completely portable, high quality C++ source code

The implemented facilities are verified using a thorough testing environment. The CircleCI contiguous integration service tracks the current build status for the master branch: CircleCI.

What's implemented:

Datastructures

  • blaze::DynamicArray<N, T>: a resizable, row-major ND dense array data structure of arbitrary types
  • blaze::CustomArray<N, T, ...>: a non-owning ND dense array data structure usable to refer to some other ND dense array
  • blaze::DynamicTensor<T>: a resizable, row-major 3D dense array data structure of arbitrary types
  • blaze::CustomTensor<T, ...>: a non-owning 3D dense array data structure usable to refer to some other 3D dense array
  • blaze::StaticTensor<T, O, M, N>: a statically sized 3D dense array data structure of arbitrary types
  • blaze::UniformTensor<T>: a dynamically sized uniform (all elements have the same value) 3D dense array data structure of arbitrary types

Views

  • blaze::SubTensor<...>: a view representing a contigous subregion of a dense 3D array that is statically or dynamically sized
  • blaze::PageSlice<...>: a view representing a slice of 'thickness' one along the row/column plane of a 3D dense array
  • blaze::ColumnSlice<...>: a view representing a slice of 'thickness' one along the page/column plane of a 3D dense array
  • blaze::RowSlice<...>: a view representing a slice of 'thickness' one along the column/page plane of a 3D dense array
  • blaze::DilatedSubvector<...>: a view representing a sub-vector of any Blaze vector-like data structure with an additional 'dilation' (step-size between the elements of the underlying vector)
  • blaze::DilatedSubmatrix<...>: a view representing a sub-matrix of any Blaze matrix-like data structure with two additional argumnts: 'rowdilation' and 'columndilation' (step-size between the rows and the columns of the underlying matrix, respectively).
  • blaze::DilatedSubtensor<...>: a view representing a sub-tensor of any Blaze tensor-like data structure with three additional argumnts: 'pagedilation',
    'rowdilation' and 'columndilation' (step-size between the pages, rows and the columns of the underlying tensor, respectively).
  • blaze::QuatSlice<...>: a view representing a slice of 'thickness' one along the page/row/column tensor of a 4D dense array

Operations

  • All element-wise arithmetic operations that are supported by the Blaze library: element-wise addition, subtraction, division, Schur-multiplication, scalar multiplication, boolean comparison operations, and many mathematical operations like sqrt, cqrt, abs, sign, floor, etc.
  • Reduction operations like min and max, also unary and binary overloads for blaze::map.
  • Matrix expand operations that produce tensors from expanding (broadcasting) matrices in page direction (blaze::expand()).
  • Matrix and Tensor flattening (blaze::ravel()).

We have created a list of things that need to be implemented: TODO: Things to implement. This is a good starting point if you would like to help developing BlazeTensor.

Building and installing BlazeTensor

In order to use BlazeTensor you will need a proper installation of the Blaze library. Please see here for instructions on how to install it. Please note that you will need a very recent version (preferrably top of master) of Blaze. If you want to run the BlazeTensor tests you will also need the Blaze source directory.

  1. Clone this repository
  2. Create a build directory
    $ mkdir build
    $ cd build
    
  3. Call cmake with the relevant options:
    $ cmake -DCMAKE_INSTALL_PREFIX=/opt/BlazeTensor -Dblaze_DIR=<blaze_dir> <srcdir>
    
    here: <blaze_dir> should refer to the directory that contains the file blaze-config.cmake that was created during installation of Blaze.
  4. Build and install:
    $ make
    $ make install
    
  5. If you want to build the tests, additionally specify -DBLAZETENSOR_WITH_TESTS=ON and -Dblazetest_DIR=<blazesrc/blazetest> on the cmake command line. Run the tests with make tests.

BlazeTensor is a header only C++ library. Projects depending on it should make sure the headers are being found by the compiler. If your depending project uses cmake, just add find_package(BlazeTensor) to your scripts and refer to the target named BlazeTensor::BlazeTensor.

Communication

A channel on the freenode IRC network is used for discussions on BlazeTensor: #ste||ar on freenode (via SSL). Feel free to use the Github issue tracker for questions, bug reports, and feature requests.

License

BlazeTensor is released under the terms of the New (Revised) BSD license.

Acknowledgements

We would like to acknowledge the NSF, DoD, and the Center for Computation and Technology (CCT) at Louisiana State University (LSU).

BlazeTensor is currently funded by:

  • The National Science Foundation through awards 1737785 (Phylanx).

    Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

  • The Defense Technical Information Center (DTIC) under contract FA8075-14-D-0002/0007

    Neither the United States Government nor any agency thereof, nor any of their employees makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].