1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
   Appellation: core <library>
   Contrib: FL03 <jo3mccain@icloud.com>
*/
#![cfg_attr(not(feature = "std"), no_std)]
#![crate_name = "concision_core"]

#[cfg(feature = "alloc")]
extern crate alloc;
extern crate ndarray as nd;
#[cfg(feature = "rand")]
extern crate ndarray_rand as ndrand;

pub use self::error::{Error, ErrorKind, PredictError};
pub use self::nn::Module;
pub use self::{primitives::*, traits::prelude::*, types::prelude::*, utils::prelude::*};

#[cfg(feature = "rand")]
pub use self::rand::{GenerateRandom, RandomExt};

#[macro_use]
pub(crate) mod macros;
pub(crate) mod primitives;

pub mod error;
pub mod func;
pub mod nn;
pub mod ops;
pub mod params;
#[cfg(feature = "rand")]
pub mod rand;
pub mod traits;
pub mod types;
pub mod utils;

pub mod prelude {
    pub(crate) use super::primitives::rust::*;

    pub use super::error::prelude::*;
    pub use super::func::prelude::*;
    pub use super::nn::prelude::*;
    pub use super::ops::prelude::*;
    pub use super::params::prelude::*;
    pub use super::primitives::*;
    #[cfg(feature = "rand")]
    pub use super::rand::prelude::*;
    pub use super::traits::prelude::*;
    pub use super::types::prelude::*;
    pub use super::utils::prelude::*;
}